Skip to content

charts: make honorTimestamps configurable for linkerd-proxy PodMonitor#15080

Open
bezarsnba wants to merge 1 commit intolinkerd:mainfrom
bezarsnba:add-honortimestamps
Open

charts: make honorTimestamps configurable for linkerd-proxy PodMonitor#15080
bezarsnba wants to merge 1 commit intolinkerd:mainfrom
bezarsnba:add-honortimestamps

Conversation

@bezarsnba
Copy link
Contributor

When scraping linkerd-proxy metrics with Prometheus, samples are sometimes dropped due to duplicate timestamps with different values, producing warnings like:

Error on ingesting samples with different value but same timestamp scrape_pool=podMonitor/linkerd/linkerd-proxy

This is especially common in large clusters with frequent pod restarts and short scrape intervals, causing operational noise and alert fatigue. Add an optional honorTimestamps field to the proxy and serviceMirror PodMonitor endpoints in the linkerd-control-plane Helm chart. When set to false, Prometheus uses the scrape time instead of exporter-provided timestamps, preventing duplicate timestamp drops while keeping backward compatibility for users who do not set the field.

Usage:

  podMonitor:
    proxy:
      honorTimestamps: false
    serviceMirror:
      honorTimestamps: false

Existing behavior is preserved when the field is not configured.

Fixes #14905

Signed-off-by: bezarsnba@gmail.com

@bezarsnba bezarsnba requested a review from a team as a code owner March 21, 2026 13:41
Add `honorTimestamps` field to the `PodMonitorComponent` struct and
expose it as a configurable Helm value for the `proxy` and
`serviceMirror` PodMonitor endpoints.

When set to false, Prometheus uses the scrape time instead of
exporter-provided timestamps, preventing duplicate timestamp drops
in clusters with frequent pod restarts and short scrape intervals.

Closes linkerd#14905

Signed-off-by: bezarsnba <bezarsnba@gmail.com>
@bezarsnba bezarsnba force-pushed the add-honortimestamps branch from 9f3e232 to e44acbb Compare March 21, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make honorTimestamps configurable for linkerd-proxy PodMonitor

1 participant