Created
November 18, 2019 19:40
-
-
Save serverok/83a622e7577da36384f87fe60c9930af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@web:~# cat /etc/prometheus/prometheus.yml | |
# my global config | |
global: | |
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute. | |
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute. | |
# scrape_timeout is set to the global default (10s). | |
# Alertmanager configuration | |
alerting: | |
alertmanagers: | |
- static_configs: | |
- targets: | |
# - alertmanager:9093 | |
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'. | |
rule_files: | |
# - "first_rules.yml" | |
# - "second_rules.yml" | |
# A scrape configuration containing exactly one endpoint to scrape: | |
# Here it's Prometheus itself. | |
scrape_configs: | |
- job_name: 'prometheus' | |
static_configs: | |
- targets: ['localhost:9090'] | |
- job_name: 'server' | |
static_configs: | |
- targets: ['web.sratim-il.com:9100','s1-m0.sratim-il.com:9100','s1-m1.sratim-il.com:9100','s2-m0.sratim-il.com:9100','s2-m1.sratim-il.com:9100','s4-m0.sratim-il.com:9100','s4-m1.sratim-il.com:9100','s3-m1.sratim-il.com:9100','s3-m2.sratim-il.com:9100','s3-m3.sratim-il.com:9100','s3-m4.sratim-il.com:9100','s3-m5.sratim-il.com:9100','s3-m6.sratim-il.com:9100','s3-m7.sratim-il.com:9100','s3-m8.sratim-il.com:9100','s3-m9.sratim-il.com:9100','s3-m10.sratim-il.com:9100','s3-m11.sratim-il.com:9100','s3-m12.sratim-il.com:9100','s3-m13.sratim-il.com:9100'] | |
root@web:~# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment