Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add support for exporting metrics to a pushgateway#13

Closed
mmoya wants to merge 6 commits intoprometheus:masterprometheus/client_python:masterfrom
mmoya:push-to-gatewayCopy head branch name to clipboard
Closed

Add support for exporting metrics to a pushgateway#13
mmoya wants to merge 6 commits intoprometheus:masterprometheus/client_python:masterfrom
mmoya:push-to-gatewayCopy head branch name to clipboard

Conversation

@mmoya
Copy link
Contributor

@mmoya mmoya commented Mar 18, 2015

Add support for exporting metrics to a pushgateway. By default the fqdn is sent is instance wasn't provided.

Copy link
Contributor

Choose a reason for hiding this comment

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

As painful as it is, we should stick to urllib for the broadest possible compatibility. I want to avoid any dependencies outside of core cpython, so that there's no friction to instrumenting code.

@brian-brazil
Copy link
Contributor

I've been holding off on adding this until prometheus/pushgateway#18 is resolved, as the 'instance' handling isn't quite compatible with the usual use cases.

@mmoya
Copy link
Contributor Author

mmoya commented Mar 19, 2015

Resubmitted using urllib2. Once prometheus/pushgateway#18 is sorted out, I'll update the PR. The use_fqdn_as_instance param was a hack to overcome it.

README.md Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

This should all be one method

@mmoya mmoya closed this Mar 23, 2015
@mmoya mmoya deleted the push-to-gateway branch March 23, 2015 19:47
@mmoya mmoya restored the push-to-gateway branch March 23, 2015 20:09
@mmoya
Copy link
Contributor Author

mmoya commented Mar 23, 2015

I messed this up, deleted the branch by accident and that closed the PR.

@mmoya mmoya reopened this Mar 23, 2015
@juliusv
Copy link
Member

juliusv commented Apr 14, 2015

@brian-brazil @mmoya - just noticed this PR sitting here for almost a month - is it still current?

@brian-brazil
Copy link
Contributor

This is still current, we're waiting on the instance label cleanup on the push_gateway side.

@oliver006
Copy link

Any idea when this might land? Would love to see that functionality.

afefelov added a commit to afefelov/client_python that referenced this pull request Jun 1, 2015
@brian-brazil
Copy link
Contributor

Looks like we're pretty close to having all the required changes elsewhere.

This needs to be updated to set the instance label to the empty string if it's not present already before exporting.

Copy link
Contributor

Choose a reason for hiding this comment

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

This should be prefixed with _ to mark it as internal

@brian-brazil
Copy link
Contributor

This needs to be updated to set the instance label to the empty string if it's not present already before exporting.

Wait, that's not right. No change required there as the pushgateway handles that.

You'll need up pull in the latest changes to the repo, and things have been split into separate files.

@brian-brazil
Copy link
Contributor

I've updated this and merged it. Thanks!

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.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.