Skip to content

Commit

Permalink
prometehus: scrape loki metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
gsanchietti committed Mar 5, 2024
1 parent b14b603 commit 4276f2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions imageroot/actions/configure-module/20configure
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ with open('prometheus.yml', 'w', encoding='utf-8') as fp:
fp.write(' file_sd_configs:\n')
fp.write(' - files:\n')
fp.write(' - "/prometheus/prometheus.d/*.yml"\n')
fp.write(' - job_name: "loki"\n')
fp.write(' static_configs:\n')
fp.write(' - targets:\n')
fp.write(f' - 127.0.0.1:{ports[5]}\n')

# Grafana configuration
with open('local.yml', 'w') as fp:
Expand Down

0 comments on commit 4276f2e

Please sign in to comment.