Add clickhouse replication, exclude bad prom metrics (#3344)

This commit is contained in:
Jai Agrawal
2025-03-05 15:40:46 -08:00
committed by GitHub
parent 0d223e3ab5
commit c1bb934fc6
6 changed files with 31 additions and 9 deletions

View File

@@ -92,7 +92,10 @@ async fn main() -> std::io::Result<()> {
let prometheus = PrometheusMetricsBuilder::new("labrinth")
.endpoint("/metrics")
.exclude_regex(r"^/api/v1/.*$")
.exclude_regex(r"^/maven/.*$")
.exclude("/_internal/launcher_socket")
.mask_unmatched_patterns("UNKNOWN")
.build()
.expect("Failed to create prometheus metrics middleware");