discourse / prometheus_exporter

A framework for collecting and aggregating prometheus metrics
MIT License
525 stars 153 forks source link

Add /ping endpoint which only returns PONG #226

Closed n-rodriguez closed 2 years ago

n-rodriguez commented 2 years ago

So users can set an healthcheck in their docker-compose.yml file :

    healthcheck:
      test: ["CMD", "curl", "--silent", "--show-error", "--fail", "--max-time", "3", "http://0.0.0.0:9394/ping"]
      timeout: 3s
      interval: 10s
      retries: 5
SamSaffron commented 2 years ago

:+1:

I am fine with this but I would like a test and for it to be documented in the readme

n-rodriguez commented 2 years ago

I am fine with this but I would like a test and for it to be documented in the readme

sure!

n-rodriguez commented 2 years ago

I am fine with this but I would like a test and for it to be documented in the readme

done!

SamSaffron commented 2 years ago

Thanks heaps @n-rodriguez !