#prometheus (2020-04)
Archive: https://archive.sweetops.com/prometheus/
2020-04-01
![Abel Luck avatar](https://secure.gravatar.com/avatar/0f605397e0ead93a68e1be26dc26481a.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0001-72.png)
Abel Luck
I’m writing a small exporter for a custom service, does anyone know what an exporter’s /metrics
should return when requests to the underlying service fail entirely, and so no metrics can be returned?
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
Erik Osterman (Cloud Posse)
Hrm… presumably a 50x status code. Found this, but it might be fore the general promethus api a dn not the exporter api. https://prometheus.io/docs/prometheus/latest/querying/api/
HTTP API | Prometheus
An open-source monitoring system with a dimensional data model, flexible query language, efficient time series database and modern alerting approach.
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
Erik Osterman (Cloud Posse)
Writing exporters | Prometheus
An open-source monitoring system with a dimensional data model, flexible query language, efficient time series database and modern alerting approach.
1