forked from open-telemetry/opentelemetry-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyroscope-server-values.yml
69 lines (68 loc) · 2.7 KB
/
pyroscope-server-values.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
---
rbac:
create: true
pyroscopeConfigs:
log-level: debug
remote-write:
enabled: true
disable-local-writes: true
targets:
bar:
address: https://ingest.pyroscope.cloud
auth-token: <REPLACE THIS WITH YOUR API KEY from https://pyroscope.cloud/settings/api-keys>
scrape-configs:
# Example scrape config for pods
#
# The relabeling allows the actual pod scrape endpoint to be configured via the
# following annotations:
#
# * `pyroscope.io/scrape`: Only scrape pods that have a value of `true`.
# * `pyroscope.io/application-name`: Name of the application being profiled.
# * `pyroscope.io/scheme`: If the metrics endpoint is secured then you will need
# to set this to `https` & most likely set the `tls_config` of the scrape config.
# * `pyroscope.io/port`: Scrape the pod on the indicated port.
# * `pyroscope.io/profile-{profile_name}-path`: Specifies URL path exposing pprof profile.
# * `pyroscope.io/profile-{profile_name}-param-{param_key}`: Overrides scrape URL parameters.
#
# Kubernetes labels will be added as Pyroscope labels on metrics via the
# `labelmap` relabeling action.
- job-name: 'kubernetes-pods'
enabled-profiles: [cpu, mem]
kubernetes-sd-configs:
- role: pod
relabel-configs:
- source-labels: [__meta_kubernetes_pod_annotation_pyroscope_io_scrape]
action: keep
regex: true
- source-labels:
[__meta_kubernetes_pod_annotation_pyroscope_io_application_name]
action: replace
target-label: __name__
- source-labels:
[__meta_kubernetes_pod_annotation_pyroscope_io_spy_name]
action: replace
target-label: __spy_name__
- source-labels: [__meta_kubernetes_pod_annotation_pyroscope_io_scheme]
action: replace
regex: (https?)
target-label: __scheme__
- source-labels:
[__address__, __meta_kubernetes_pod_annotation_pyroscope_io_port]
action: replace
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
target-label: __address__
- action: labelmap
regex: __meta_kubernetes_pod_label_(.+)
- source-labels: [__meta_kubernetes_namespace]
action: replace
target-label: kubernetes_namespace
- source-labels: [__meta_kubernetes_pod_name]
action: replace
target-label: kubernetes_pod_name
- source-labels: [__meta_kubernetes_pod_phase]
regex: Pending|Succeeded|Failed|Completed
action: drop
- action: labelmap
regex: __meta_kubernetes_pod_annotation_pyroscope_io_profile_(.+)
replacement: __profile_$1