-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest.yml
42 lines (39 loc) · 951 Bytes
/
test.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
38
39
40
41
---
- hosts: all
sudo: true
roles:
- role: prometheus
prometheus_global_labels:
a: b
prometheus_target_jobs:
- job_name: 'web-server'
scrape_interval: '5s'
scrape_timeout: '10s'
target_groups:
targets:
- "localhost:9090"
labels:
a: b
- job_name: 'service_from_consul'
scrape_interval: '5s'
scrape_timeout: '10s'
consul_sd_configs:
- server: "localhost:8400"
datacenter: "dc1"
scheme: "rpc"
token: ""
username: ""
password: ""
services:
- myservicename
tag_separator: ":"
- job_name: 'service_from_consul'
scrape_interval: 5s
scrape_timeout: 10s
consul_sd_configs:
- server: "localhost"
datacenter: taku
services:
- prometheus_machine
- prometheus_haproxy
tag_separator: ":"