Skip to content

Commit

Permalink
Add standard labels to request duration metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
fheinecke committed May 29, 2024
1 parent 190f582 commit 32e8735
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aws_quota/prometheus.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ async def get_limits_job(self):
try:
with self.timeit_gauge(
name,
documentation=f'Time to collect {check.description} Limit'
documentation=f'Time to collect {check.description} Limit',
labels=self.default_labels | labels
):
value = check.maximum

Expand Down Expand Up @@ -166,7 +167,8 @@ async def get_currents_job(self):
try:
with self.timeit_gauge(
name,
documentation=f'Time to collect {check.description}'
documentation=f'Time to collect {check.description}',
labels=self.default_labels | labels
):
value = check.current

Expand Down

0 comments on commit 32e8735

Please sign in to comment.