idealista / prom2teams

prom2teams is an HTTP server built with Python that receives alert notifications from a previously configured Prometheus Alertmanager instance and forwards it to Microsoft Teams using defined connectors
Apache License 2.0
268 stars 84 forks source link

#309 fix metrics in UWsgi mode #310

Closed santi-eidu closed 1 year ago

santi-eidu commented 1 year ago

Requirements

Description of the Change

Change prometheus metrics function to use Uwsgi with the variable prometheus_multiproc_dir to store the metrics.

Benefits

Metrics share a directory with metrics info.

Possible Drawbacks

No wsgi modes can be affected

Applicable Issues

309

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication