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

Prometheus lint errors in operator metrics #17789

Merged
merged 1 commit into from Nov 29, 2021

Conversation

krishgobinath
Copy link
Contributor

Promtool identified following lint errors when running against operator metrics

  1. cilium_operator_identity_gc_entries_total non-counter metrics should not have "_total" suffix
  2. cilium_operator_identity_gc_runs_total non-counter metrics should not have "_total" suffix

Fixing both the non-counter metrics.

Signed-off-by: Gobinath Krishnamoorthy gobinathk@google.com

@krishgobinath krishgobinath requested a review from a team as a code owner November 5, 2021 01:08
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Nov 5, 2021
Copy link
Member

@joestringer joestringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that in general we should conform to promtool recommendations like this, so I'm fine with this from that perspective. If these are already in released versions of Cilium then we should also mention that the metrics are being renamed in the Upgrade guide. There should be examples like that already in the docs.

@pchaigno pchaigno added area/metrics Impacts statistics / metrics gathering, eg via Prometheus. area/operator Impacts the cilium-operator component release-note/minor This PR changes functionality that users may find relevant to operating Cilium. labels Nov 8, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot removed dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Nov 8, 2021
@aanm
Copy link
Member

aanm commented Nov 11, 2021

@krishgobinath could you add the information mentioned by Joe here in the upgrade guide? thank you

@aanm aanm added needs-backport/1.11 release-note/bug This PR fixes an issue in a previous release of Cilium. and removed release-note/minor This PR changes functionality that users may find relevant to operating Cilium. labels Nov 22, 2021
@krishgobinath krishgobinath requested a review from a team as a code owner November 23, 2021 01:02
Documentation/operations/upgrade.rst Outdated Show resolved Hide resolved
Copy link
Member

@qmonnet qmonnet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good for me (pending Joe's comments are addressed, of course).

Documentation/operations/upgrade.rst Outdated Show resolved Hide resolved
Promtool identified following lint errors when running against operator metrics
 1) cilium_operator_identity_gc_entries_total non-counter metrics should not have "_total" suffix
 2) cilium_operator_identity_gc_runs_total non-counter metrics should not have "_total" suffix

Add relevant changes in upgrade documentation for 1.10 and 1.11

Fixing both the non-counter metrics.

Signed-off-by: Gobinath Krishnamoorthy <gobinathk@google.com>
@joestringer joestringer merged commit 65a46b5 into cilium:master Nov 29, 2021
@qmonnet qmonnet mentioned this pull request Nov 30, 2021
18 tasks
@nathanjsweet nathanjsweet added backport-done/1.11 The backport for Cilium 1.11.x for this PR is done. and removed backport-pending/1.11 labels Dec 2, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Backport done to v1.11 in 1.11.0 Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/metrics Impacts statistics / metrics gathering, eg via Prometheus. area/operator Impacts the cilium-operator component backport-done/1.11 The backport for Cilium 1.11.x for this PR is done. release-note/bug This PR fixes an issue in a previous release of Cilium.
Projects
No open projects
1.11.0
Backport done to v1.11
Development

Successfully merging this pull request may close these issues.

None yet

7 participants