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

Implemented Last-Modified HTTP header metric #407

Merged
merged 1 commit into from
Jan 17, 2019

Conversation

joker234
Copy link
Contributor

This feature returns a probe_http_last_modified metric with the content of the Last-Modified HTTP response header, if it is set by the server.

That feature would be nice for (blackbox) monitoring, if a service that should regularly update a website, is working or not.


P.S.: someone encountered me to the fact, that registering the gauges shouldn't be repeated in each probe, but only at initializing the exporter. This isn't part of this PR.

registry.MustRegister(durationGaugeVec)
registry.MustRegister(contentLengthGauge)
registry.MustRegister(redirectsGauge)
registry.MustRegister(isSSLGauge)
registry.MustRegister(statusCodeGauge)
registry.MustRegister(probeHTTPVersionGauge)
registry.MustRegister(probeFailedDueToRegex)

prober/http.go Outdated Show resolved Hide resolved
This feature returns a probe_http_last_modified metric with the content
of the Last-Modified HTTP response header, if it is set by the server.

Signed-off-by: Johannes Visintini <[email protected]>
@brian-brazil brian-brazil merged commit 844641a into prometheus:master Jan 17, 2019
@brian-brazil
Copy link
Contributor

Thanks!

@joker234 joker234 deleted the http-last-modified branch January 17, 2019 10:59
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.

2 participants