Skip to content

Commit

Permalink
Correcting Prometheus scrape configuration for Multi-Cluster.
Browse files Browse the repository at this point in the history
  • Loading branch information
fragglehunter committed Jan 15, 2025
1 parent 4d32ac6 commit 01cd60a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions linkerd.io/content/2-edge/tasks/external-prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,20 @@ with direct values for the below configuration to work.
- source_labels: [__meta_kubernetes_pod_container_name]
action: replace
target_label: component

- job_name: 'linkerd-service-mirror'
kubernetes_sd_configs:
- role: pod
relabel_configs:
- source_labels:
- __meta_kubernetes_pod_label_linkerd_io_control_plane_component
- __meta_kubernetes_pod_label_component
- __meta_kubernetes_pod_container_port_name
action: keep
regex: linkerd-service-mirror;admin-http$
- source_labels: [__meta_kubernetes_pod_container_name]
action: replace
target_label: component

- job_name: 'linkerd-proxy'
kubernetes_sd_configs:
- role: pod
Expand Down
6 changes: 3 additions & 3 deletions linkerd.io/content/2.15/tasks/external-prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,20 @@ with direct values for the below configuration to work.
- source_labels: [__meta_kubernetes_pod_container_name]
action: replace
target_label: component

- job_name: 'linkerd-service-mirror'
kubernetes_sd_configs:
- role: pod
relabel_configs:
- source_labels:
- __meta_kubernetes_pod_label_linkerd_io_control_plane_component
- __meta_kubernetes_pod_label_component
- __meta_kubernetes_pod_container_port_name
action: keep
regex: linkerd-service-mirror;admin-http$
- source_labels: [__meta_kubernetes_pod_container_name]
action: replace
target_label: component

- job_name: 'linkerd-proxy'
kubernetes_sd_configs:
- role: pod
Expand Down
6 changes: 3 additions & 3 deletions linkerd.io/content/2.16/tasks/external-prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,20 @@ with direct values for the below configuration to work.
- source_labels: [__meta_kubernetes_pod_container_name]
action: replace
target_label: component

- job_name: 'linkerd-service-mirror'
kubernetes_sd_configs:
- role: pod
relabel_configs:
- source_labels:
- __meta_kubernetes_pod_label_linkerd_io_control_plane_component
- __meta_kubernetes_pod_label_component
- __meta_kubernetes_pod_container_port_name
action: keep
regex: linkerd-service-mirror;admin-http$
- source_labels: [__meta_kubernetes_pod_container_name]
action: replace
target_label: component

- job_name: 'linkerd-proxy'
kubernetes_sd_configs:
- role: pod
Expand Down
6 changes: 3 additions & 3 deletions linkerd.io/content/2.17/tasks/external-prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,20 @@ with direct values for the below configuration to work.
- source_labels: [__meta_kubernetes_pod_container_name]
action: replace
target_label: component

- job_name: 'linkerd-service-mirror'
kubernetes_sd_configs:
- role: pod
relabel_configs:
- source_labels:
- __meta_kubernetes_pod_label_linkerd_io_control_plane_component
- __meta_kubernetes_pod_label_component
- __meta_kubernetes_pod_container_port_name
action: keep
regex: linkerd-service-mirror;admin-http$
- source_labels: [__meta_kubernetes_pod_container_name]
action: replace
target_label: component

- job_name: 'linkerd-proxy'
kubernetes_sd_configs:
- role: pod
Expand Down

0 comments on commit 01cd60a

Please sign in to comment.