-
Notifications
You must be signed in to change notification settings - Fork 13
Support prometheus metrics #73
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
base: main
Are you sure you want to change the base?
Changes from all commits
23c22aa
79b8abe
d3aa751
339aec3
81eaeda
2e85438
76af829
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -47,6 +47,7 @@ import ( | |||||||||
| internalapi "github.com/cert-manager/csi-lib/internal/api" | ||||||||||
| internalapiutil "github.com/cert-manager/csi-lib/internal/api/util" | ||||||||||
| "github.com/cert-manager/csi-lib/metadata" | ||||||||||
| "github.com/cert-manager/csi-lib/metrics" | ||||||||||
| "github.com/cert-manager/csi-lib/storage" | ||||||||||
| ) | ||||||||||
|
|
||||||||||
|
|
@@ -89,6 +90,9 @@ type Options struct { | |||||||||
|
|
||||||||||
| // RenewalBackoffConfig configures the exponential backoff applied to certificate renewal failures. | ||||||||||
| RenewalBackoffConfig *wait.Backoff | ||||||||||
|
|
||||||||||
| // Metrics is used for exposing Prometheus metrics | ||||||||||
| Metrics *metrics.Metrics | ||||||||||
| } | ||||||||||
|
|
||||||||||
| // NewManager constructs a new manager used to manage volumes containing | ||||||||||
|
|
@@ -241,6 +245,7 @@ func NewManager(opts Options) (*Manager, error) { | |||||||||
| metadataReader: opts.MetadataReader, | ||||||||||
| clock: opts.Clock, | ||||||||||
| log: *opts.Log, | ||||||||||
| metrics: opts.Metrics, | ||||||||||
|
|
||||||||||
| generatePrivateKey: opts.GeneratePrivateKey, | ||||||||||
| generateRequest: opts.GenerateRequest, | ||||||||||
|
|
@@ -375,6 +380,9 @@ type Manager struct { | |||||||||
| // No thread safety is added around this field, and it MUST NOT be used for any implementation logic. | ||||||||||
| // It should not be used full-stop :). | ||||||||||
| doNotUse_CallOnEachIssue func() | ||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can/should this field be removed now, or is this a follow-up? Ref. Lines 382 to 385 in f3a2df0
|
||||||||||
|
|
||||||||||
| // metrics is used to expose Prometheus | ||||||||||
|
||||||||||
| // metrics is used to expose Prometheus | |
| // metrics is used to expose Prometheus metrics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // metrics is used to expose Prometheus | |
| // metrics is used for Prometheus metrics collection |
Uh oh!
There was an error while loading. Please reload this page.