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

[ANN] scollector adapter #652

Closed
tgulacsi opened this Issue Apr 24, 2015 · 10 comments

Comments

Projects
None yet
5 participants
@tgulacsi
Copy link

tgulacsi commented Apr 24, 2015

Hi, I've some Windows machines, and scollector (bosun.org/scollector) has a nice mature machine-metrics-collecting client. So I've made a silly little adapter, by copying&adapting graphite_exporter: https://github.com/tgulacsi/prometheus_scollector

I've made it under the same license, and willing to "donate" it to Prometheus, if that's easier.

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Apr 24, 2015

Thanks for writing this, we'd be happy to accept that. One question from a quick peek is do you need to add any sanitising of metric and label names to ensure they won't be rejected by prometheus?

@tgulacsi

This comment has been minimized.

Copy link
Author

tgulacsi commented Apr 24, 2015

To answer that, I'd need better understanding what names are allowed in prometheus, and what names are produced by scollector :)
First I'll check that code in graphite_exporter, and include that. Maybe even that name mapper should be borrowed...

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Apr 24, 2015

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Apr 24, 2015

Beware, those regexes are wrong and need updating. This doc contains the spec for what's legal in metric names, label names, and label values:

http://prometheus.io/docs/concepts/data_model/#metric-names-and-labels

See also this comment on the statsd exporter: prometheus/statsd_exporter#10 (comment)

@tgulacsi

This comment has been minimized.

Copy link
Author

tgulacsi commented Apr 24, 2015

Thanks, I've done it with a simple function - I don't use regexes if they're avoidable. See "clearName" in main.go (https://github.com/tgulacsi/prometheus_scollector/blob/master/main.go#L253).

@oliver006

This comment has been minimized.

Copy link

oliver006 commented Apr 28, 2015

Not to hijack this issue but is there a place where 3rd party collectors/exporters are normally announced/listed?
I wrote one for RethinkDB https://github.com/oliver006/rethinkdb_exporter and while it works well I'd appreciate feedback and obviously would like it lsited somewhere so people can find it more easily.

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Apr 28, 2015

We're planning on listing all the 3rd party exporters we're aware of on the website, see prometheus/docs#68

@oliver006

This comment has been minimized.

Copy link

oliver006 commented Apr 28, 2015

Thanks Brian, I'll add them to prometheus/docs#68

@fabxc

This comment has been minimized.

Copy link
Member

fabxc commented Jul 6, 2015

Closing as this is linked in the docs now.

@fabxc fabxc closed this Jul 6, 2015

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.