Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up[ANN] scollector adapter #652
Comments
This comment has been minimized.
This comment has been minimized.
|
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? |
This comment has been minimized.
This comment has been minimized.
|
To answer that, I'd need better understanding what names are allowed in prometheus, and what names are produced by scollector :) |
This comment has been minimized.
This comment has been minimized.
|
https://github.com/prometheus/graphite_exporter/blob/dynamic-name/mapper.go#L27 identifierRE and validNameRE should cover you. |
This comment has been minimized.
This comment has been minimized.
|
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) |
This comment has been minimized.
This comment has been minimized.
|
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). |
This comment has been minimized.
This comment has been minimized.
oliver006
commented
Apr 28, 2015
|
Not to hijack this issue but is there a place where 3rd party collectors/exporters are normally announced/listed? |
This comment has been minimized.
This comment has been minimized.
|
We're planning on listing all the 3rd party exporters we're aware of on the website, see prometheus/docs#68 |
This comment has been minimized.
This comment has been minimized.
oliver006
commented
Apr 28, 2015
|
Thanks Brian, I'll add them to prometheus/docs#68 |
This comment has been minimized.
This comment has been minimized.
|
Closing as this is linked in the docs now. |
fabxc
closed this
Jul 6, 2015
This comment has been minimized.
This comment has been minimized.
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. |
tgulacsi commentedApr 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.