Skip to content

Commit

Permalink
relabelings for loki - issue #60
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Kleinlercher <johannes.kleinlercher@suxess-it.com>
  • Loading branch information
jkleinlercher committed Apr 19, 2024
1 parent e835cb1 commit ea185bb
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions platform-apps/charts/kube-prometheus-stack/values-k3d.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ kube-prometheus-stack:
annotations: {}

## Additional labels for PrometheusRule alerts
additionalRuleLabels: {}
additionalRuleLabels:
cluster: sx-loki

## Additional annotations for PrometheusRule alerts
additionalRuleAnnotations: {}
Expand Down Expand Up @@ -1377,6 +1378,12 @@ kube-prometheus-stack:
- action: replace
sourceLabels: [__metrics_path__]
targetLabel: metrics_path
- action: replace
replacement: sx-loki
targetLabel: cluster
- targetLabel: "instance"
sourceLabels:
- "node"
# - sourceLabels: [__meta_kubernetes_pod_node_name]
# separator: ;
# regex: ^(.*)$
Expand Down Expand Up @@ -2055,7 +2062,13 @@ kube-prometheus-stack:
## RelabelConfigs to apply to samples before scraping
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
##
relabelings: []
relabelings:
- action: replace
replacement: sx-loki
targetLabel: cluster
- targetLabel: "instance"
sourceLabels:
- "__meta_kubernetes_pod_node_name"
# - sourceLabels: [__meta_kubernetes_pod_node_name]
# separator: ;
# regex: ^(.*)$
Expand Down Expand Up @@ -2145,7 +2158,13 @@ kube-prometheus-stack:
## RelabelConfigs to apply to samples before scraping
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#relabelconfig
##
relabelings: []
relabelings:
- action: replace
replacement: sx-loki
targetLabel: cluster
- targetLabel: "instance"
sourceLabels:
- "__meta_kubernetes_pod_node_name"
# - sourceLabels: [__meta_kubernetes_pod_node_name]
# separator: ;
# regex: ^(.*)$
Expand Down Expand Up @@ -3286,7 +3305,10 @@ kube-prometheus-stack:

# relabel configs to apply to samples before ingestion.
##
relabelings: []
relabelings:
- action: replace
replacement: sx-loki
targetLabel: cluster
# - sourceLabels: [__meta_kubernetes_pod_node_name]
# separator: ;
# regex: ^(.*)$
Expand Down

0 comments on commit ea185bb

Please sign in to comment.