You've already forked authentication-service
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:
@@ -251,6 +251,9 @@ pub enum Resource {
|
||||
/// Healthcheck endpoint (/health)
|
||||
Health,
|
||||
|
||||
/// Prometheus metrics endpoint (/metrics)
|
||||
Prometheus,
|
||||
|
||||
/// OIDC discovery endpoints
|
||||
Discovery,
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user