-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathprometheus.yml
35 lines (33 loc) · 976 Bytes
/
prometheus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Global Config
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_timeout: 10s
# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets: ['<< add your pubic ip>>:9093']
rule_files:
- alert_rules.yml
#to monitor prometheus itself or any other end points
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['<< add your pubic ip>>:9090']
- job_name: 'alertmanager'
static_configs:
- targets: [ '<< add your pubic ip>>:9093' ]
- job_name: 'nodeExporter'
static_configs:
- targets: [ '<< add your pubic ip>>:9100' ]
- job_name: 'cadvidor'
static_configs:
- targets: [ '<< add your pubic ip>>:8085' ]
- job_name: 'grafana'
static_configs:
- targets: [ '<< add your pubic ip>>:3000' ]
#to monitor your VM/server
- job_name: 'Linux_VM1'
static_configs:
- targets: ['<< add your pubic ip>>:9100']