-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathconfig.yml
83 lines (81 loc) · 2.4 KB
/
config.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
global:
scrape_interval: 10s
scrape_configs:
- job_name: 'temporalmetrics'
metrics_path: /metrics
scheme: http
static_configs:
# Server metrics target
- targets:
- 'host.docker.internal:8000'
- 'host.docker.internal:8001'
- 'host.docker.internal:8002'
- 'host.docker.internal:8003'
- 'host.docker.internal:8004'
- 'host.docker.internal:8005'
- 'host.docker.internal:8006'
- 'host.docker.internal:8007'
labels:
group: 'server-metrics'
# Local app targets (if configured)
- targets:
- 'host.docker.internal:8077'
- 'host.docker.internal:8078'
labels:
group: 'sdk-metrics'
# Docker metrics
- targets:
- 'host.docker.internal:9323'
labels:
group: 'docker-metrics'
# Postgres Exporter
- targets:
- 'host.docker.internal:9187'
labels:
group: 'postgres-metrics'
# HAProxy Metrics
- targets:
- 'host.docker.internal:8404'
labels:
group: 'haproxy-metrics'
# Envoy Metrics
- targets:
- 'host.docker.internal:9901'
labels:
group: 'envoy-metrics'
# this show how to drop certain metrics, for example here all metrics for temporal_system namespace
metric_relabel_configs:
- source_labels: [ namespace ]
regex: "temporal_system"
action: drop
- job_name: 'springbootjavasdk'
metrics_path: /actuator/prometheus
scheme: http
static_configs:
- targets:
- 'host.docker.internal:3030'
- 'host.docker.internal:19994'
- 'host.docker.internal:19995'
- 'host.docker.internal:19996'
- 'host.docker.internal:19997'
- 'host.docker.internal:19998'
- 'host.docker.internal:19999'
labels:
group: 'spring-boot-metrics'
## sample when cloud prom endpoint support it
# - job_name: 'temporalcloud'
# metrics_path: /federate
# params:
# 'match[]':
# - '{job!=""}'
# tls_config:
# ca_file: /etc/prometheus/TihoClient.crt
# cert_file: /etc/prometheus/TihoClient.pem
# key_file: /etc/prometheus/TihoClient.key
# insecure_skip_verify: true
# scheme: https
# static_configs:
# - targets:
# - 'a2dd6.tmprl.cloud'
# labels:
# group: 'cloud-metrics'