Skip to content

Commit

Permalink
Merge f6619a7 into 6246677
Browse files Browse the repository at this point in the history
  • Loading branch information
rv404674 committed Oct 10, 2020
2 parents 6246677 + f6619a7 commit f526812
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions prometheus.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
global:
scrape_interval: 15s # By default, scrape targets every 15 seconds.
evaluation_interval: 15s # By default, scrape targets every 15 seconds.

# NOTE: use this to validate config file
# ./promtool check config prometheus.yml

# Alertmanager configuration
alerting:
alertmanagers:
Expand Down Expand Up @@ -26,5 +33,11 @@ scrape_configs:
- job_name: 'golang_app'
# will give application metrics
metrics_path: /metrics
# scrape_interval defines after how much time, targets will be scraped for metrics.
# scrape_timeout - Prometheus will try for 30s to scrape the metrics, if it can't scrap in this time,
# it will timeout.

# scrape_interval: 30s
# scrape_timeout: 20s
static_configs:
- targets: ['localhost:8080']

0 comments on commit f526812

Please sign in to comment.