prometheus/discovery/linode
TJ Hoplock 7baf084092
optimize Linode SD by polling for event changes during refresh (#8980)
* optimize Linode SD by polling for event changes during refresh

Most accounts are fairly "static", in the sense that they're not cycling
through instances constantly. So rather than do a full refresh every
interval and potentially make several behind-the-scenes paginated API
calls, this will now poll the `/account/events/` endpoint every minute
with a list of events that we care about. If a matching event is found,
we then do a full refresh.

Co-authored-by: William Smith <wsmith@linode.com>
Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>
Signed-off-by: William Smith <wsmith@linode.com>
2021-08-04 12:05:49 +02:00
..
linode.go optimize Linode SD by polling for event changes during refresh (#8980) 2021-08-04 12:05:49 +02:00
linode_test.go optimize Linode SD by polling for event changes during refresh (#8980) 2021-08-04 12:05:49 +02:00
mock_test.go optimize Linode SD by polling for event changes during refresh (#8980) 2021-08-04 12:05:49 +02:00