-
Notifications
You must be signed in to change notification settings - Fork 79
[Neutron] Add PodMonitor and replace uwsgi-datadog exporter with uWSG… #9950
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: master
Are you sure you want to change the base?
Conversation
…I stats exporter This change enables the uWSGI stats server, allowing metrics to be fetched via HTTP. It replaces the deprecated uwsgi-datadog exporter, which was based on an unmaintained open-source project. As before, each uWSGI worker thread now exposes its own metrics, which can be aggregated without any loss of functionality. The new uWSGI exporter is forked from https://github.com/timonwong/uwsgi_exporter and written in Go. It scrapes the uWSGI stats endpoint when the /metrics endpoint is called. A PodMonitor resource has been added to configure Prometheus to scrape these new endpoints.
|
Sample uwsgi stat server response: |
| {{- end }} | ||
| {{- end }} | ||
| - name: uwsgi-exporter | ||
| image: {{.Values.global.registry}}/uwsgi-exporter:20241009155526 |
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.
The latest tag would be 20251021090402. Also, should we make this a value (e.g. imageVersionUSWSGIExporter), such that we can bump the image via values instead of having a change here in the charts?
|
|
||
| # uWSGI Stats Server | ||
| stats = :{{ .Values.api.uwsgi_stats_port }} | ||
| stats-http = true |
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.
I discussed out of band that it might make sense to have the change behind a feature flag, so we can do a staged rollout or disable the exporter in case of performance issues.
|
Before we merge this PR:
|
…I stats exporter
This change enables the uWSGI stats server, allowing metrics to be fetched via HTTP. It replaces the deprecated uwsgi-datadog exporter, which was based on an unmaintained open-source project.
As before, each uWSGI worker thread now exposes its own metrics, which can be aggregated without any loss of functionality.
The new uWSGI exporter is forked from https://github.com/timonwong/uwsgi_exporter and written in Go. It scrapes the uWSGI stats endpoint when the /metrics endpoint is called.
A PodMonitor resource has been added to configure Prometheus to scrape these new endpoints.