Skip to content

Prometheus metrics for stork extender and monitor#710

Merged
ram-infrac merged 6 commits intomasterfrom
metrics
Oct 19, 2020
Merged

Prometheus metrics for stork extender and monitor#710
ram-infrac merged 6 commits intomasterfrom
metrics

Conversation

@ram-infrac
Copy link
Copy Markdown
Contributor

What type of PR is this?

feature

What this PR does / why we need it:
Adds prometheus metrics for stork extender and monitor

Does this PR change a user-facing CRD or CLI?:
no

Is a release note needed?:
yes, will be put in final pr part for stork prometheus metrics

@ram-infrac ram-infrac added the feature The change adds a new feature label Sep 2, 2020
@ram-infrac ram-infrac added this to the 2.6.0 milestone Sep 2, 2020
@ram-infrac ram-infrac self-assigned this Sep 2, 2020
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 3, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@7428dcb). Click here to learn what that means.
The diff coverage is 58.92%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #710   +/-   ##
=========================================
  Coverage          ?   71.15%           
=========================================
  Files             ?       35           
  Lines             ?     3668           
  Branches          ?        0           
=========================================
  Hits              ?     2610           
  Misses            ?      809           
  Partials          ?      249           
Impacted Files Coverage Δ
pkg/extender/extender.go 77.09% <56.60%> (ø)
pkg/monitor/monitor.go 63.87% <100.00%> (ø)

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 7428dcb...93f80fe. Read the comment docs.

Ram added 3 commits September 24, 2020 19:07
 - added prometheus metrics for stork extenders which
   covers hyper,non and semi-hyperconverged pod counter
 - added stork monitor metrics for no of pod rescheduled
   by stork monitor

Signed-off-by: Ram <ram.suradkar@portworx.com>
Signed-off-by: Ram <ram.suradkar@portworx.com>
Signed-off-by: Ram <ram.suradkar@portworx.com>
@ram-infrac ram-infrac force-pushed the metrics branch 2 times, most recently from 7e203ec to 3568181 Compare September 28, 2020 06:11
@disrani-px disrani-px added the release-note Information about this change needs to be added to the release note label Oct 5, 2020
require.NoError(t, err, "failed to create pod")

time.Sleep(3 * time.Second)
require.Equal(t, testutil.ToFloat64(NonHyperConvergePodsCounter), float64(1), "non_hyperconverged_pods_total not matched")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you add test cases to delete the pods and make sure the 3 counters go to 0.

Also, can you verify the labels on the counter

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

testutil needs to be updated with latest release for label check & 0 in ToFloat64()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

As discussed this will be done in a separate PR since it required some vendor updates which have conflicts

Ram added 2 commits October 8, 2020 19:19
Signed-off-by: Ram <ram.suradkar@portworx.com>
Signed-off-by: Ram <ram.suradkar@portworx.com>
@ram-infrac ram-infrac merged commit 82b35ea into master Oct 19, 2020
@ram-infrac ram-infrac deleted the metrics branch October 19, 2020 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature The change adds a new feature release-note Information about this change needs to be added to the release note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants