[PR #5] [MERGED] JIRA-3733 - Prometheus last connection #7

Closed
opened 2026-03-02 03:44:36 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dignajar/another-ldap/pull/5
Author: @dignajar
Created: 2/14/2022
Status: Merged
Merged: 2/16/2022
Merged by: @dignajar

Base: mainHead: JIRA-3733/prometheus-last-connection


📝 Commits (3)

📊 Changes

5 files changed (+72 additions, -8 deletions)

View changed files

📝 Dockerfile (+1 -1)
📝 files/aldap/logs.py (+7 -3)
files/aldap/prometheus.py (+47 -0)
📝 files/main.py (+15 -3)
📝 files/requirements.txt (+2 -1)

📄 Description

  • New Prometheus class to send the data to Redis
  • Env variable PROMETHEUS to enable or disable Prometheus metrics
  • Env variable REDIS_HOST and REDIS_PORT to configure the Redis server, where the metrics will be push
  • Env variable REDIS_METRIC_EXPIRATION to configure the expiration time of the metric
  • Update Python 3.9.10 and Docker base image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dignajar/another-ldap/pull/5 **Author:** [@dignajar](https://github.com/dignajar) **Created:** 2/14/2022 **Status:** ✅ Merged **Merged:** 2/16/2022 **Merged by:** [@dignajar](https://github.com/dignajar) **Base:** `main` ← **Head:** `JIRA-3733/prometheus-last-connection` --- ### 📝 Commits (3) - [`59b3cfc`](https://github.com/dignajar/another-ldap/commit/59b3cfc00600754ded48bc99f693f2d12ac42728) Prometheus last connection - [`95baedf`](https://github.com/dignajar/another-ldap/commit/95baedff302ff177edf1045888e604bc686c0c15) fix issues detected by deepsource - [`b9e65b8`](https://github.com/dignajar/another-ldap/commit/b9e65b824146a03ea819991496515bf90e637e47) fix styling ### 📊 Changes **5 files changed** (+72 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+1 -1) 📝 `files/aldap/logs.py` (+7 -3) ➕ `files/aldap/prometheus.py` (+47 -0) 📝 `files/main.py` (+15 -3) 📝 `files/requirements.txt` (+2 -1) </details> ### 📄 Description - New Prometheus class to send the data to Redis - Env variable `PROMETHEUS` to enable or disable Prometheus metrics - Env variable `REDIS_HOST` and `REDIS_PORT` to configure the Redis server, where the metrics will be push - Env variable `REDIS_METRIC_EXPIRATION` to configure the expiration time of the metric - Update Python 3.9.10 and Docker base image --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem closed this issue 2026-03-02 03:44:37 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/another-ldap#7
No description provided.