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

Add canary paused / failed metrics #56

Merged
merged 2 commits into from
Nov 3, 2020

Conversation

xornivore
Copy link
Contributor

@xornivore xornivore commented Nov 2, 2020

What does this PR do?

Adds a new eds_status_canary_paused gauge metric to identify canary in paused state along with the reason.
Adds a new eds_status_canary_failed gauge metric to identify canary in failed state along with the reason.

Motivation

Canary metrics

Describe your test plan

Check the metrics are exported correctly for canaries in active and paused state.

@xornivore xornivore added the enhancement New feature or request label Nov 2, 2020
@xornivore xornivore added this to the v0.4 milestone Nov 2, 2020
@xornivore xornivore requested a review from a team November 2, 2020 21:29
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This pull request contains a valid label.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This pull request contains a valid label.

@clamoriniere
Copy link
Collaborator

Nice work 👍
Could you add also a metrics for failed status ?

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This pull request contains a valid label.

@celenechang
Copy link
Contributor

celenechang commented Nov 3, 2020

worth keeping in mind that the failed status will be manually resolved when the EDS is reset

@codecov-io
Copy link

codecov-io commented Nov 3, 2020

Codecov Report

Merging #56 into master will decrease coverage by 0.88%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #56      +/-   ##
==========================================
- Coverage   37.54%   36.65%   -0.89%     
==========================================
  Files          29       29              
  Lines        1537     1574      +37     
==========================================
  Hits          577      577              
- Misses        886      923      +37     
  Partials       74       74              
Flag Coverage Δ
unittests 36.65% <0.00%> (-0.89%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
controllers/extendeddaemonset/metrics.go 0.61% <0.00%> (-0.19%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f0fff1b...68a311b. Read the comment docs.

@ahmed-mez ahmed-mez changed the title Add canary paused metric Add canary paused / failed metrics Nov 3, 2020
@ahmed-mez ahmed-mez merged commit 4720595 into master Nov 3, 2020
@ahmed-mez ahmed-mez deleted the xornivore/add-canary-paused-state-metric branch November 3, 2020 09:14
This was referenced Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants