Skip to content

Dbp 1037 setup privacyidea monitring #140

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

Merged
merged 42 commits into from
Dec 2, 2024

Conversation

sahassou
Copy link
Contributor

Description

This PR focuses on creating a robust monitoring setup for PrivacyIDEA by developing a custom exporter that collects vital statistics from PrivacyIDEA's database and exposes them in a format that Prometheus can scrape.
Custom Exporter Configuration
The custom exporter will follow this chain of communication:

  1. Prometheus sends requests for metrics.
  2. Nginx forwards Prometheus requests to uWSGI using a socket.
  3. uWSGI routes these requests to a Flask application.
  4. Flask fetches the metrics from PrivacyIDEA’s database and sends the response back through the chain to Prometheus.

@sahassou sahassou self-assigned this Nov 22, 2024
@sahassou sahassou requested review from simoncolincap, aimee-889, mcpovel and a team November 22, 2024 11:01
@@ -63,3 +63,4 @@
path: "/tmp/certificate_sync_key_*"
state: absent
delegate_to: localhost
ignore_errors: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for ignoring errors here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed. We have a separate ticket for this problem: https://ticketsystem.dbildungscloud.de/browse/DBP-1097
Can probably be fixed by setting become to false. If we don't want to do that now, I think we could limit the ignore to AWX runs by replacing true with awx_job_id is defined.

@sahassou sahassou requested review from YannickEvers and a team November 29, 2024 07:36
@sahassou sahassou merged commit dd7c61e into master Dec 2, 2024
@sahassou sahassou deleted the DBP-1037-setup-privacyidea-monitring branch December 2, 2024 11:12
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.

4 participants