Closed 204Constie closed 1 year ago
Internal ticket for tracking: FSSDK-9412
Hi @204Constie Thanks for the PR. Could you please update your branch with the master branch?
Hi @204Constie Thanks for the idea about collecting Prometheus metrics. However, the feature is added here https://github.com/optimizely/agent/pull/348. Please reach out if you have anything.
Summary
dirty PR that presents the idea of exposing metrics to prometheus via the use of custom prometheus collector
an implementation of the collector interface https://github.com/prometheus/client_golang/blob/main/prometheus/collector.go#L27 similar to this collector: https://github.com/prometheus/client_golang/blob/main/prometheus/expvar_collector.go it is not an ideal solution as the documentation states ( https://pkg.go.dev/github.com/prometheus/client_golang/prometheus/collectors#NewExpvarCollector )