strangelove-ventures / sl-exporter

Strangelove Prometheus Exporter
Apache License 2.0
3 stars 1 forks source link

feat: Export task error total #48

Closed DavidNix closed 1 year ago

DavidNix commented 1 year ago

This allows us to check the health of the exporter itself.

Example:

# HELP sl_exporter_reference_api_error_total Number of errors encountered while making external calls to an API to gather reference data.
# TYPE sl_exporter_reference_api_error_total counter
sl_exporter_reference_api_error_total{host="lcd.osmosis.zone",reason="timeout"} 16
sl_exporter_reference_api_error_total{host="osmosis-api.polkachu.com",reason="520"} 2
sl_exporter_reference_api_error_total{host="osmosis-api.polkachu.com",reason="timeout"} 16
# HELP sl_exporter_task_error_total Number of failed sl-exporter tasks. A task is a generalized unit of work such as querying validator signing status.
# TYPE sl_exporter_task_error_total counter
sl_exporter_task_error_total{group="osmosis-1"} 11

The last line indicates there could be something wrong with our osmosis-1 config such as we need to find different REST-API nodes.