Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Labels support for pmwebd and pmdaprometheus #336

Closed
wants to merge 2 commits into from

Conversation

jronak
Copy link
Contributor

@jronak jronak commented Aug 15, 2017

No description provided.

@fche
Copy link
Contributor

fche commented Aug 15, 2017

Curious about what y'all have planned with respect to labels support in the pwmebd prometheus-exporter code. There was a marker in the code where the current labels could be fetched & relayed.

@natoscott
Copy link
Member

@jronak I've merged the PMDA changes into the labels branch, they all look good - thanks!

I think the cleanest web API extension will involve adding a new _labels API rather than adding to just _metric and _indom. Those are only parts of the label hierarchy, so don't really make sense exported on their own like that. The API response change for _metric and _indom might cause headaches for some users too I imagine.

Similarly the Prometheus side of things will need more work than we have currently - the code only pmGet*'s labels for leaf nodes of the hierarchy, which doesn't represent the situation correctly (more details in the pmLookupLabels(3) and pmMergeLabelSets(3) man pages).

In general though, I think we have the cart before the horse here. There's alot of missing foundation code we still need (archive support, optional context labels, fetch protocol extension, query support) that we need to have in place before we can decide how best to tackle the higher level things like pmwebd.

So for now let's set the web API aspects aside and continue on with that core functionality first, then circle back to the web APIs later.

@natoscott natoscott closed this Aug 16, 2017
@fche
Copy link
Contributor

fche commented Aug 16, 2017

Of all those foundational missing pieces, which ones impact pmwebd's ability to fetch labels for a given metric/instance? Archives and queries don't relate. What do you have in mind with respect to fetches? Any new PMAPI?

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.

None yet

3 participants