feat(promtail): split node to seperate promtail service monitor
this allows the mixins to work, specifically promtail !4
This commit is contained in:
@ -113,6 +113,8 @@ This helm chart started off with components from multiple open-source projects.
|
||||
|
||||
- Prometheus-Adaptor
|
||||
|
||||
- Promtail
|
||||
|
||||
- Thanos
|
||||
|
||||
- kyverno policies _(optional, set in values.yaml)_
|
||||
|
@ -16,6 +16,8 @@ data:
|
||||
metrics:
|
||||
wal_directory: /tmp/wal
|
||||
|
||||
|
||||
|
||||
logs:
|
||||
positions_directory: "/tmp"
|
||||
|
||||
@ -254,7 +256,6 @@ data:
|
||||
netclass_ignored_devices: "^(veth.*|cali.*|[a-f0-9]{15})$"
|
||||
netdev_device_exclude: "^(veth.*|cali.*|[a-f0-9]{15})$"
|
||||
|
||||
scrape_integration: true
|
||||
|
||||
include_exporter_metrics: true
|
||||
enable_collectors:
|
||||
|
@ -35,6 +35,42 @@ spec:
|
||||
sourceLabels:
|
||||
- __meta_kubernetes_pod_node_name
|
||||
targetLabel: node
|
||||
metricRelabelings:
|
||||
- action: drop
|
||||
sourceLabels: [__name__]
|
||||
regex: '(promtail_).*'
|
||||
|
||||
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
|
||||
interval: 5s
|
||||
honorLabels: true
|
||||
path: /metrics
|
||||
port: grafana-metrics
|
||||
scheme: http
|
||||
relabelings:
|
||||
- action: replace
|
||||
regex: (.*)
|
||||
replacement: $1
|
||||
sourceLabels:
|
||||
- __meta_kubernetes_pod_node_name
|
||||
targetLabel: instance
|
||||
- targetLabel: "job"
|
||||
replacement: "promtail"
|
||||
- action: replace
|
||||
regex: (.*)
|
||||
replacement: $1
|
||||
sourceLabels:
|
||||
- __meta_kubernetes_pod_node_name
|
||||
targetLabel: node
|
||||
- action: replace
|
||||
separator: /
|
||||
sourceLabels:
|
||||
- namespace
|
||||
- job
|
||||
targetLabel: job
|
||||
metricRelabelings:
|
||||
- action: keep
|
||||
sourceLabels: [__name__]
|
||||
regex: '(promtail_).*'
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/instance: k8s
|
||||
|
Reference in New Issue
Block a user