Skip to content
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
21 changes: 21 additions & 0 deletions charts/linkerd-control-plane/templates/podmonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ spec:
- __meta_kubernetes_pod_container_name
action: replace
targetLabel: component
{{- with $podMonitor.controller.extraRelabelings }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $podMonitor.controller.extraMetricRelabelings }}
metricRelabelings:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- if and $podMonitor.enabled $podMonitor.serviceMirror.enabled }}
---
Expand Down Expand Up @@ -80,6 +87,13 @@ spec:
- __meta_kubernetes_pod_container_name
action: replace
targetLabel: component
{{- with $podMonitor.serviceMirror.extraRelabelings }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $podMonitor.serviceMirror.extraMetricRelabelings }}
metricRelabelings:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- if and $podMonitor.enabled $podMonitor.proxy.enabled }}
---
Expand Down Expand Up @@ -142,4 +156,11 @@ spec:
regex: __tmp_pod_label_linkerd_io_(.+)
- action: labelmap
regex: __tmp_pod_label_(.+)
{{- with $podMonitor.proxy.extraRelabelings }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $podMonitor.proxy.extraMetricRelabelings }}
metricRelabelings:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
15 changes: 15 additions & 0 deletions charts/linkerd-control-plane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -725,19 +725,34 @@ podMonitor:
# -- Sets honorTimestamps for the control-plane PodMonitor endpoint. When set to false
# Prometheus uses scrape time instead of exporter-provided timestamps.
honorTimestamps: false
# -- Additional relabelings, appended after the relabelings the chart already sets
# on the control-plane PodMonitor endpoint
extraRelabelings: []
# -- Metric relabelings to set on the control-plane PodMonitor endpoint
extraMetricRelabelings: []
serviceMirror:
# -- Enables the creation of PodMonitor for the Service Mirror component
enabled: true
# -- Sets honorTimestamps for the Service Mirror PodMonitor endpoint. When set to false,
# Prometheus uses scrape time instead of exporter-provided timestamps.
honorTimestamps: false
# -- Additional relabelings, appended after the relabelings the chart already sets
# on the Service Mirror PodMonitor endpoint
extraRelabelings: []
# -- Metric relabelings to set on the Service Mirror PodMonitor endpoint
extraMetricRelabelings: []
proxy:
# -- Enables the creation of PodMonitor for the data-plane
enabled: true
# -- Sets honorTimestamps for the proxy PodMonitor endpoint. When set to false,
# Prometheus uses scrape time instead of exporter-provided timestamps,
# preventing duplicate timestamp drops in clusters with frequent pod restarts.
honorTimestamps: false
# -- Additional relabelings, appended after the relabelings the chart already sets
# on the proxy PodMonitor endpoint
extraRelabelings: []
# -- Metric relabelings to set on the proxy PodMonitor endpoint
extraMetricRelabelings: []


# Egress related configuration
Expand Down
6 changes: 6 additions & 0 deletions cli/cmd/testdata/install_controlplane_tracing_output.golden

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions cli/cmd/testdata/install_custom_domain.golden

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions cli/cmd/testdata/install_custom_registry.golden

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions cli/cmd/testdata/install_default.golden

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions cli/cmd/testdata/install_default_token.golden

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions cli/cmd/testdata/install_gid_output.golden

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions cli/cmd/testdata/install_ha_output.golden

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions cli/cmd/testdata/install_ha_with_overrides_output.golden

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions cli/cmd/testdata/install_heartbeat_disabled_output.golden

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions cli/cmd/testdata/install_helm_control_plane_output.golden

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading