Skip to content
Snippets Groups Projects
Commit 91354245 authored by Jan David Mol's avatar Jan David Mol
Browse files

expose metrics as lowercase

parent 9eb58d00
No related branches found
No related tags found
1 merge request!1458Add custom monitoring points to LTA ingest, TMSS backend, and scheduling service
......@@ -41,7 +41,7 @@ def metric_track_duration(prefix: str = "", doc: str | None = None):
def inner(func):
func_name = func.__qualname__.replace(".", "_")
metric = Histogram(f"{prefix}{func_name}_duration", doc or f"Duration of {func_name}")
metric = Histogram(f"{prefix}{func_name.lower()}_duration", doc or f"Duration of {func_name}")
@wraps(func)
def metric_wrapper(*args, **kwargs):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment