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

Emit Reconciliation Metrics #65

Closed
johnsonj opened this issue Dec 2, 2019 · 9 comments
Closed

Emit Reconciliation Metrics #65

johnsonj opened this issue Dec 2, 2019 · 9 comments
Assignees

Comments

@johnsonj
Copy link
Contributor

johnsonj commented Dec 2, 2019

A user should be able to emit metrics on the Prometheus metrics endpoint. Metrics should be written to the controller-runtime Prometheus Registry

The library should emit a metric for:

  • P1: How many times in the last X seconds has reconciliation happened? How many times has it failed? 

    • Implement as two CounterVec metrics. ReconcileCount, ReconcileFailedCount. Use labels that identify the object type (eg CoreDNS) and namespace/name. These can be directly defined in reconciler.go
  • P2: How many objects (and what type) are being managed by the operator?

    • Unclear how to implement this. A GaugeVec (with type/namespace/name labels) may work for this if the reconciler can keep track which types are created/destroyed.

/cc @annp1987

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 1, 2020
@johnsonj
Copy link
Contributor Author

johnsonj commented Mar 2, 2020 via email

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 2, 2020
@vanou
Copy link
Contributor

vanou commented Mar 23, 2020

I'll take it.
/assign

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 21, 2020
@vanou
Copy link
Contributor

vanou commented Jun 21, 2020

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 21, 2020
@vanou
Copy link
Contributor

vanou commented Jul 28, 2020

I think this issue got closed.
/close

@k8s-ci-robot
Copy link
Contributor

@vanou: You can't close an active issue/PR unless you authored it or you are a collaborator.

In response to this:

I think this issue got closed.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@atoato88
Copy link
Contributor

Thank you to deal this.
I think so too.
/close

@k8s-ci-robot
Copy link
Contributor

@atoato88: Closing this issue.

In response to this:

Thank you to deal this.
I think so too.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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

No branches or pull requests

5 participants