Skip to content

Remove contradictory state labels from snapshot metrics - #1256

Open
wangyusheng1985 wants to merge 1 commit into
prometheus-community:masterfrom
wangyusheng1985:contribution-786
Open

wangyusheng1985 wants to merge 1 commit into
prometheus-community:masterfrom
wangyusheng1985:contribution-786

Conversation

@wangyusheng1985

Copy link
Copy Markdown

Fixes #786

Last-snapshot numeric metrics used {repository,state,version} for every series, so elasticsearch_snapshot_stats_snapshot_failed_shards could be labeled state="SUCCESS".

  • Keep repository-level metrics labeled {repository} only
  • Label last-snapshot counts and timestamps {repository,version}
  • Expose last-snapshot state as elasticsearch_snapshot_stats_snapshot_state{repository,state,version} 1

This is a breaking label change for the last-snapshot series.

Last-snapshot numeric metrics no longer carry a state label, which
incorrectly put state="SUCCESS" on failed-shard series. State is now
exposed as elasticsearch_snapshot_stats_snapshot_state.

Fixes prometheus-community#786

Signed-off-by: yusheng.wang <yusheng.wang@chaitin.com>
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.

Clean Up Snapshot Metrics and Labels

1 participant