Skip to content

Commit

Permalink
These metrics can go up/down, set the type to gauge
Browse files Browse the repository at this point in the history
  • Loading branch information
DragoonAethis committed Feb 25, 2022
1 parent 9a99a9a commit 6c0d94f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion events/views/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def prometheus_status(request, slug, key):

output_metrics.extend([
f"# HELP {counter[0]} {counter[1]}",
f"# TYPE {counter[0]} counter",
f"# TYPE {counter[0]} gauge",
f"{counter[0]} {value}"
])

Expand Down

0 comments on commit 6c0d94f

Please sign in to comment.