-
Notifications
You must be signed in to change notification settings - Fork 1
/
prometheus.yml
37 lines (30 loc) · 925 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
36
37
global:
scrape_interval: 15s # By default, scrape targets every 15 seconds.
evaluation_interval: 15s # Evaluate rules every 15 seconds.
# Attach these extra labels to all timeseries collected by this Prometheus instance.
external_labels:
monitor: 'scalyr-blog'
rule_files:
- 'prometheus.rules.yml'
scrape_configs:
- job_name: 'traefik'
static_configs:
- targets: ['traefik:8080']
- job_name: 'node_exporter'
static_configs:
- targets: ['51.159.6.21:9100']
- job_name: 'jenkins'
metrics_path: '/prometheus'
static_configs:
- targets: ['jenkins:8080']
basic_auth:
username: 'jenkinsAdmin'
password: 'WOrhzN7SD08fWv'
- job_name: 'cadvisor-docker'
scrape_interval: 5s
static_configs:
- targets: ['cadvisor:8080']
- job_name: 'prometheus'
scrape_interval: 10s
static_configs:
- targets: ['prometheus:9090']