Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
91354245
Commit
91354245
authored
7 months ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
expose metrics as lowercase
parent
9eb58d00
No related branches found
No related tags found
Tags containing commit
1 merge request
!1458
Add custom monitoring points to LTA ingest, TMSS backend, and scheduling service
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
LCS/PyCommon/metrics.py
+1
-1
1 addition, 1 deletion
LCS/PyCommon/metrics.py
with
1 addition
and
1 deletion
LCS/PyCommon/metrics.py
+
1
−
1
View file @
91354245
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment