diff options
author | Ben Kochie <superq@gmail.com> | 2018-08-06 16:54:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-06 16:54:46 +0200 |
commit | 5d23ad0ca7aea9efb4115af73490da6f8e9d7175 (patch) | |
tree | d06f1ef2512fff1b09ce41a074b53a8ecb1d765d /docs | |
parent | 2c52b8c76147f0f0671029e9fd7454b9866ace0d (diff) | |
download | prometheus_node_collector-5d23ad0ca7aea9efb4115af73490da6f8e9d7175.tar.bz2 prometheus_node_collector-5d23ad0ca7aea9efb4115af73490da6f8e9d7175.tar.xz prometheus_node_collector-5d23ad0ca7aea9efb4115af73490da6f8e9d7175.zip |
Fix supervisord collector (#978)
* Replace supervisord xmlrpc library
* Use `github.com/mattn/go-xmlrpc` that doesn't leak goroutines.
* Fix uptime metric
* Use Prometheus best practices for uptime metric.
* Use "start time" rather than "uptime".
* Don't emit a start time if the process is down.
* Add changelog entry.
* Add example compatibility rules.
Signed-off-by: Ben Kochie <superq@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/example-17-compatibility-rules-new-to-old.yml | 5 | ||||
-rw-r--r-- | docs/example-17-compatibility-rules.yml | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/docs/example-17-compatibility-rules-new-to-old.yml b/docs/example-17-compatibility-rules-new-to-old.yml new file mode 100644 index 0000000..c6db522 --- /dev/null +++ b/docs/example-17-compatibility-rules-new-to-old.yml | |||
@@ -0,0 +1,5 @@ | |||
1 | groups: | ||
2 | - name: node_exporter-17-supervisord | ||
3 | rules: | ||
4 | - record: node_supervisord_start_time_seconds | ||
5 | expr: node_supervisord_uptime + time() | ||
diff --git a/docs/example-17-compatibility-rules.yml b/docs/example-17-compatibility-rules.yml new file mode 100644 index 0000000..6fbeaa9 --- /dev/null +++ b/docs/example-17-compatibility-rules.yml | |||
@@ -0,0 +1,5 @@ | |||
1 | groups: | ||
2 | - name: node_exporter-17-supervisord | ||
3 | rules: | ||
4 | - record: node_supervisord_uptime | ||
5 | expr: time() - node_supervisord_start_time_seconds | ||