scripts/metricsdocgen generates this list of available metrics. However, it relies on a static dump of metrics from scripts/metricsdocgen/metrics; this means that new metrics are not automatically detected.
We can generate this list of metrics more reliably by calling CODER_PROMETHEUS_ENABLE=true coder server and add some kind of flag to force a dump of metrics like so:
scripts/metricsdocgen
generates this list of available metrics. However, it relies on a static dump of metrics fromscripts/metricsdocgen/metrics
; this means that new metrics are not automatically detected.We can generate this list of metrics more reliably by calling
CODER_PROMETHEUS_ENABLE=true coder server
and add some kind of flag to force a dump of metrics like so:This won't catch any metrics for which there have not been any collected values yet, however, but it's a step closer.
@mtojek what do you think?