On Wed 2 Aug 2017 at 00:02, John Hovell <jhov...@sunrunhome.com> wrote:
> From the docs: > > > https://wiki.jenkins.io/display/JENKINS/Metrics+Plugin > > > "The Healthcheck servlet runs the healthchecks defined against the Metrics > API and returns the detailed status in JSON (or JSONP) format, while the > high level status is reported by the HTTP status code. > > These servlets are protected by security controls in order to ensure that > they are not abused" > > > So, not sure how to configure it for use with a load balancer / reverse > proxy. Typically I've seen healthchecks that will not respond to a request > that has an x-forwarded-for header. This allows the load balancer (or > anyone with direct access to the server port) to call the healthcheck but > not for any entity in front of a load balancer. > Define a metrics api key in the global config. Then access the health check using that key, e.g. Instead of https://jenkins.example.com/metrics/currentUser/... replace currentUser by the api key you generated HTH > > > On Monday, June 5, 2017 at 2:36:51 AM UTC-7, Light Stark wrote: >> >> >> Hey Daniel, After performing the check where does this plugin report the >> result of the check? >> I am writing a http liveness probe and i need an endpoint url. >> On Monday, September 5, 2016 at 3:10:28 AM UTC+5:30, Daniel Beck wrote: >>> >>> A real health check is provided by >>> https://wiki.jenkins-ci.org/display/JENKINS/Metrics+Plugin >>> >>> >>> -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/05768419-78e9-47bc-9259-6b5510a69924%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/05768419-78e9-47bc-9259-6b5510a69924%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Sent from my phone -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMwsV-6Fwu_UN4W3QdxvCTMQWYnjTd3Hg%2Bz2TyTBXP9csQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.