Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Correcting Prometheus scrape configuration for Multi-Cluster. #1910

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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