Skip to content

wip: enable gc metric collection#255

Closed
gmodena wants to merge 5 commits intowikimedia:masterfrom
gmodena:enable-gc-metric-collection
Closed

wip: enable gc metric collection#255
gmodena wants to merge 5 commits intowikimedia:masterfrom
gmodena:enable-gc-metric-collection

Conversation

@gmodena
Copy link

@gmodena gmodena commented Mar 15, 2024

I am opening this WIP PR to validate direction and collect feedback on an approach to enable prometheus default metrics collection.

Happy to drop / rebase atop other work we might have in flight.

Implementation details have been discussed in:

Bug: https://phabricator.wikimedia.org/T350180

Version bump prom-client.

Add a config option to collect default metrics
(including GC). This should be enable only when
running with no workers.
Throw an excpetion if metrics.prometheus.collect_default
is enabled in cluster mode.
Add a noop type of metric not registered by service-runner Metric interface.
This is used to delegate collection of default prometheus
metrics to prom-client.collectDefaultMetrics.
@gmodena gmodena requested review from jdforrester and ottomata March 15, 2024 16:53
Copy link
Member

@jdforrester jdforrester left a comment

Choose a reason for hiding this comment

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

This seems reasonable; shall we try it and see?

"prom-client": "^11.5.3",
"prom-client": "^12.0.0",
"semver": "^7.1.2",
"service-runner": "^3.1.0",
Copy link
Member

Choose a reason for hiding this comment

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

We shouldn't load ourself. :-)

@jdforrester
Copy link
Member

Have pushed a rebase version as #256 (as I can't push to your fork).

@jdforrester
Copy link
Member

Overtaken by #256.

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.

2 participants