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

Operator Metrics #150

Open
r65535 opened this issue Aug 24, 2022 · 2 comments
Open

Operator Metrics #150

r65535 opened this issue Aug 24, 2022 · 2 comments
Labels
community enhancement New feature or request

Comments

@r65535
Copy link
Contributor

r65535 commented Aug 24, 2022

Is your feature request related to a problem?

We should add a prometheus metrics endpoint, so the nifikop operator can be monitored

Describe the solution you'd like to see

Some custom metrics, similar to the prometheus operator

Things like total reconcile operations, error count etc

This could help spot operator bugs

Describe alternatives you've considered

No response

Additional context

No response

@mh013370
Copy link
Member

I discovered through working on this that most of the metrics in the linked Prometheus example are already provided by the controller runtime. There may still be additional metrics we'd like to capture but we can specify those in this issue before raising another PR.

https://book.kubebuilder.io/reference/metrics-reference.html

@mh013370
Copy link
Member

Off the top of my head, we could capture metrics around the following:

  • Number, response code, and duration of requests-by-API-endpoint to NiFi nodes/clusters
  • Number of CRDs a nifikop pod is actively watching

We can use a similar Metrics setup as i used in #154

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants