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

Report collector success/failure and duration per scrape. #516

Merged
merged 1 commit into from
Mar 16, 2017

Conversation

brian-brazil
Copy link
Contributor

This is in line with best practices, and also saves us
63 timeseries on a default Linux setup.

Copy link
Contributor

@mdlayher mdlayher left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Member

@grobie grobie left a comment

Choose a reason for hiding this comment

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

Looks good to me, people have probably incorrectly tried to aggregate the summaries.

@@ -54,7 +57,7 @@ type NodeCollector struct {

// Describe implements the prometheus.Collector interface.
func (n NodeCollector) Describe(ch chan<- *prometheus.Desc) {
scrapeDurations.Describe(ch)
ch <- scrapeDurationDesc
Copy link
Member

Choose a reason for hiding this comment

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

Add scrapeSuccessDesc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

This is in line with best practices, and also saves us
63 timeseries on a default Linux setup.
@brian-brazil brian-brazil merged commit a02e469 into master Mar 16, 2017
@brian-brazil brian-brazil deleted the scrape-success branch March 16, 2017 17:21
champtar added a commit to champtar/packages that referenced this pull request Nov 15, 2017
…ration per scrape

follow prometheus/node_exporter#516

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
champtar added a commit to champtar/packages that referenced this pull request Nov 15, 2017
…ration per scrape

follow prometheus/node_exporter#516

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
champtar added a commit to champtar/packages that referenced this pull request Dec 9, 2017
As prometheus-node-exporter-lua is a reimplementation of node_exporter,
I'm using "collector" instead of "scraper" and renaming some collectors

put each collector in a separate file

report collector success/failure and duration per scrape
(follow prometheus/node_exporter#516)

allow to filter collectors using "collect[]" params
(see https://github.com/prometheus/node_exporter#filtering-enabled-collectors)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
champtar added a commit to champtar/packages that referenced this pull request Dec 9, 2017
As prometheus-node-exporter-lua is a reimplementation of node_exporter,
I'm using "collector" instead of "scraper" and renaming some collectors

put each collector in a separate file

report collector success/failure and duration per scrape
(follow prometheus/node_exporter#516)

allow to filter collectors using "collect[]" params
(see https://github.com/prometheus/node_exporter#filtering-enabled-collectors)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
pprindeville pushed a commit to pprindeville/packages that referenced this pull request Feb 2, 2018
As prometheus-node-exporter-lua is a reimplementation of node_exporter,
I'm using "collector" instead of "scraper" and renaming some collectors

put each collector in a separate file

report collector success/failure and duration per scrape
(follow prometheus/node_exporter#516)

allow to filter collectors using "collect[]" params
(see https://github.com/prometheus/node_exporter#filtering-enabled-collectors)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
pprindeville pushed a commit to pprindeville/packages that referenced this pull request Feb 7, 2018
As prometheus-node-exporter-lua is a reimplementation of node_exporter,
I'm using "collector" instead of "scraper" and renaming some collectors

put each collector in a separate file

report collector success/failure and duration per scrape
(follow prometheus/node_exporter#516)

allow to filter collectors using "collect[]" params
(see https://github.com/prometheus/node_exporter#filtering-enabled-collectors)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
pprindeville pushed a commit to pprindeville/packages that referenced this pull request Feb 7, 2018
As prometheus-node-exporter-lua is a reimplementation of node_exporter,
I'm using "collector" instead of "scraper" and renaming some collectors

put each collector in a separate file

report collector success/failure and duration per scrape
(follow prometheus/node_exporter#516)

allow to filter collectors using "collect[]" params
(see https://github.com/prometheus/node_exporter#filtering-enabled-collectors)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
lynxis pushed a commit to lynxis/packages that referenced this pull request Jan 3, 2019
As prometheus-node-exporter-lua is a reimplementation of node_exporter,
I'm using "collector" instead of "scraper" and renaming some collectors

put each collector in a separate file

report collector success/failure and duration per scrape
(follow prometheus/node_exporter#516)

allow to filter collectors using "collect[]" params
(see https://github.com/prometheus/node_exporter#filtering-enabled-collectors)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
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