prometheus/discovery/linode
TJ Hoplock c40e269c3e
feat: add linode SD failure count metric (#10673)
This commit introduces a new metric to count the number of failed
requests to Linode's API when using Linode SD. Resolves #10672, inspired
by #10476.

_Note_: this doens't count failures when polling the `/account/events`
endpoint, as a `401` there is how we determine if the supplied token has
the needed API scopes to do event polling vs full refreshes each
interval.

Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>
2022-05-11 16:54:08 +02:00
..
linode_test.go fix: linode SD tests (#9773) 2021-11-16 23:42:30 +01:00
linode.go feat: add linode SD failure count metric (#10673) 2022-05-11 16:54:08 +02:00
mock_test.go optimize Linode SD by polling for event changes during refresh (#8980) 2021-08-04 12:05:49 +02:00