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

fix(bug): update scrapeConfig to filer retina container specifically #770

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

SRodi
Copy link
Member

@SRodi SRodi commented Sep 23, 2024

Description

  • update additionalScrapeConfigs to filter containers named retina (retina agent)
  • this will exclude retina-operator container in retina-operator pod

Related Issue

If this pull request is related to any issue, please mention it here. Additionally, make sure that the issue is assigned to you before submitting this pull request.

fix #177

Checklist

  • I have read the contributing documentation.
  • I signed and signed-off the commits (git commit -S -s ...). See this documentation on signing commits.
  • I have correctly attributed the author(s) of the code.
  • I have tested the changes locally.
  • I have followed the project's style guidelines.
  • I have updated the documentation, if necessary.
  • I have added tests, if applicable.

Screenshots (if applicable) or Testing Completed

Deployed unmanaged Prometheus as per doc instructions, see here

The target for retina-operator is no longer appearing since it is no longer scraped

image

Please add any relevant screenshots or GIFs to showcase the changes made.

Additional Notes

Add any additional notes or context about the pull request here.


Please refer to the CONTRIBUTING.md file for more information on how to contribute to this project.

@SRodi SRodi self-assigned this Sep 23, 2024
@SRodi SRodi requested a review from a team as a code owner September 23, 2024 12:55
@nddq nddq linked an issue Sep 23, 2024 that may be closed by this pull request
@SRodi SRodi force-pushed the fix/unhealthy-prom-target branch from 1a22a79 to 94ebdcb Compare September 23, 2024 13:59
@SRodi SRodi force-pushed the fix/unhealthy-prom-target branch from 94ebdcb to c6f3ead Compare September 24, 2024 08:04
Signed-off-by: Simone Rodigari <srodigari@microsoft.com>
@SRodi SRodi force-pushed the fix/unhealthy-prom-target branch from c6f3ead to e1fd50e Compare September 24, 2024 08:18
@SRodi SRodi added this pull request to the merge queue Sep 24, 2024
Merged via the queue into microsoft:main with commit f1b8345 Sep 24, 2024
22 checks passed
@SRodi SRodi deleted the fix/unhealthy-prom-target branch September 24, 2024 10:09
github-merge-queue bot pushed a commit that referenced this pull request Oct 15, 2024
# 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.
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

Successfully merging this pull request may close these issues.

retina-operator shows up as unhealthy in Prometheus targets
2 participants