Extend configuration for customMetrics (#202)

This commit is contained in:
Kevin Tibi
2023-08-07 12:42:16 +02:00
committed by GitHub
parent 05589cdd52
commit e6083b163f
7 changed files with 37 additions and 31 deletions
+8 -5
View File
@@ -170,11 +170,14 @@ In the module `module "workloads_infra" {` add the following config (make sure t
enable_custom_metrics = true
custom_metrics_config = {
# list of applications ports (example)
ports = [8000, 8080]
# list of series prefixes you want to discard from ingestion
dropped_series_prefixes = ["go_gcc"]
custom_app_1 = {
enableBasicAuth = true
path = "/metrics"
basicAuthUsername = "username"
basicAuthPassword = "password"
ports = ".*:(8080)$"
droppedSeriesPrefixes = "(unspecified.*)$"
}
}
```