You've already forked AstralRinth
forked from didirus/AstralRinth
Add clickhouse replication, exclude bad prom metrics (#3344)
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user