-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprometheus.yml
53 lines (50 loc) · 1.35 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'blackbox'
metrics_path: /probe
params:
module: [http_2xx]
static_configs:
- targets:
- https://example.com
- https://api.example.com
- https://www.observeinc.com/
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: localhost:9115
- job_name: 'ssl_expiry'
metrics_path: /probe
params:
module: [ssl]
static_configs:
- targets:
- example.com:443
- api.example.com:443
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: localhost:9115
remote_write:
- url: "https://{OBSERVE_TENANT_ID}}1.collect.observeinc.com/v1/prometheus"
authorization:
type: "Bearer"
credentials: "OBSERVE_API_KEY"
write_relabel_configs:
- source_labels: [__name__]
regex: '(.+)'
target_label: metric_name
replacement: '$1'
remote_timeout: 30s
queue_config:
capacity: 2500
max_shards: 200
max_samples_per_send: 500
batch_send_deadline: 5s