You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Description
Adding a ServiceMonitor for retina-operator
* parameterized & applied retina-operator name
* adding service & serviceMonitor CRD's for retina-operator
* applied appropriate relabeling & metric relabeling config to align
with retina-jobs additional scrape config
## Related Issue
retina-operator wasn't being scraped for metrics by prometheus.
Initially it was appearing in the 'retina-pods' job and failing as
reported in this issue:
#738
Partial fix was merged to remove the operator pod from the list here:
#770
## Checklist
- [x] I have read the [contributing
documentation](https://retina.sh/docs/contributing).
- [x] I signed and signed-off the commits (`git commit -S -s ...`). See
[this
documentation](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification)
on signing commits.
- [x] I have correctly attributed the author(s) of the code.
- [x] I have tested the changes locally.
- [x] I have followed the project's style guidelines.
- [x] I have updated the documentation, if necessary.
- [x] I have added tests, if applicable.
## Screenshots (if applicable) or Testing Completed
![image](https://github.com/user-attachments/assets/b1722546-d013-4ab3-8565-1c0357eea0da)
Operator specific metrics with job='retina-operator' selector:
![image](https://github.com/user-attachments/assets/821bc2ae-3d16-40a5-a527-4b36ecbb82e4)
## Additional Notes
Proposed next steps is to align the way we add scrap configs:
#847
---
Please refer to the [CONTRIBUTING.md](../CONTRIBUTING.md) file for more
information on how to contribute to this project.
Current State
retina-agent pods are being scraped by an additional prometheus scrape config.
ServiceMonitor support was added in this PR: #695
Using ServicMonitors should be the recommended way for adding scrape jobs
Proposed Update:
Replace 'retina-pod's job scrape with ServiceMonitor.
The text was updated successfully, but these errors were encountered: