1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Export Prometheus metrics on regular listeners

This commit is contained in:
Quentin Gliech
2022-10-04 10:52:52 +02:00
parent 84ac87f551
commit 014a8366ed
6 changed files with 101 additions and 83 deletions

View File

@@ -251,6 +251,9 @@ pub enum Resource {
/// Healthcheck endpoint (/health)
Health,
/// Prometheus metrics endpoint (/metrics)
Prometheus,
/// OIDC discovery endpoints
Discovery,

View File

@@ -237,11 +237,9 @@ pub enum MetricsExporterConfig {
endpoint: Option<Url>,
},
/// Export metrics by exposing a Prometheus-compatible endpoint
Prometheus {
/// IP and port on which the Prometheus endpoint should be exposed
address: String,
},
/// Export metrics via Prometheus. An HTTP listener with the `prometheus`
/// resource must be setup to expose the Promethes metrics.
Prometheus,
}
impl Default for MetricsExporterConfig {