Skip to content

api: add metrics support #57

Merged
oleg-jukovec merged 1 commit intomasterfrom
oleg-jukovec/gh-55-metrics
Jun 16, 2023
Merged

api: add metrics support #57
oleg-jukovec merged 1 commit intomasterfrom
oleg-jukovec/gh-55-metrics

Conversation

@oleg-jukovec
Copy link
Contributor

@oleg-jukovec oleg-jukovec commented Jun 5, 2023

The patch adds the ability to export statistics to metrics >= 0.11.0.
sharded_queue does not require the metrics package itself and tries
to use an installed one.

It also adds a new API method api.cfg({options}).

Exported metric values are similar to api.statistics(tube) call:

  • sharded_queue_calls
  • sharded_queue_tasks

Closes #55

@oleg-jukovec oleg-jukovec requested review from AnaNek and GRISHNOV June 5, 2023 16:33
@oleg-jukovec oleg-jukovec marked this pull request as draft June 5, 2023 16:34
@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/gh-55-metrics branch 2 times, most recently from 0fb5ebb to e3cf94d Compare June 13, 2023 13:20
@oleg-jukovec oleg-jukovec marked this pull request as ready for review June 13, 2023 13:26
Copy link
Member

@DifferentialOrange DifferentialOrange left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the updates. Seems mostly fine, I'll approve the PR after resolving remaining comments.

The patch adds the ability to export statistics to metrics >= 0.11.0.
sharded_queue does not require the metrics package itself and tries
to use an installed one.

It also adds a new API method api.cfg({options}).

Exported metric values are similar to api.statistics(tube) call:

 * sharded_queue_calls
 * sharded_queue_tasks

Closes #55
@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/gh-55-metrics branch from e3cf94d to 4878b95 Compare June 15, 2023 11:22
@oleg-jukovec oleg-jukovec merged commit 7c98cc1 into master Jun 16, 2023
@oleg-jukovec oleg-jukovec deleted the oleg-jukovec/gh-55-metrics branch June 16, 2023 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add metrics for queue stats

3 participants