question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve configuration/composition of Prometheus metric collection

See original GitHub issue

As of now, our Prometheus collectors are hard-coded into their respective submodules. This makes it hard to make changes to the metrics we expose. In particular, I see two use cases where better configuration/composability would benefit users:

  1. Some of the metrics we expose are very detailed and mostly useful for debugging and development purpose. Since there is a cost to each collected metric (in terms of storage, processing time, or $ spent on Cloud services), it would be helpful to be able to configure which (sets of) metrics we want to expose for scraping.
  2. Extensions or plugins may want to expose additional metrics, see the WorkStealingMetricCollector as an example. For these, having an easy way to (un)register collectors would be great.

The first point seems to be related to the second one. If we had an easy way to (un)register collectors, we could have a variety of optional collectors that users could register if desired.

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
crusaderkycommented, Dec 15, 2022

+1 from me. It would let us clean up a lot of secondary steps for collection, drop crick entirely, and remove ugly hacks like the local maximums that are wiped clean at every collection.

0reactions
crusaderkycommented, Dec 16, 2022

We need a proper deprecation/versioning system.

Do we have a sense for how widely used these metrics are?

Discussion here: https://github.com/dask/distributed/issues/7385

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration - Prometheus.io
If honor_timestamps is set to "true", the timestamps of the metrics exposed ... On large setup it might be a good idea to...
Read more >
Prometheus Metrics: A Practical Guide - Tigera
Prometheus is an open-source tool for collecting metrics and sending alerts. ... Recording a value that only increases; Assessing the rate of increase...
Read more >
Reducing Prometheus metrics usage with relabeling - Grafana
source_labels : Select one or more labels from the available set · separator : Concatenate selected label values using this character · regex...
Read more >
An introduction to Prometheus metrics and performance ...
Prometheus is a metrics collection and alerting tool developed and released to open ... If you need or want better graphing capabilities, ...
Read more >
A Deep Dive Into the Four Types of Prometheus Metrics
There are four types of metrics collected by Prometheus as part of its ... Counter metrics are used for measurements that only increase....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found