Skip to content

Cherry-pick #8621 to 6.x: Enhanced Heartbeat Telemetry#8719

Merged
andrewvc merged 1 commit intoelastic:6.xfrom
andrewvc:backport_8621_6.x
Oct 24, 2018
Merged

Cherry-pick #8621 to 6.x: Enhanced Heartbeat Telemetry#8719
andrewvc merged 1 commit intoelastic:6.xfrom
andrewvc:backport_8621_6.x

Conversation

@andrewvc
Copy link
Contributor

Cherry-pick of PR #8621 to 6.x branch. Original message:

Add heartbeat telemetry. We now track:

  1. The total number of active monitors
  2. The total number of active monitors per protocol
  3. The total number of checked endpoints per protocol

One note for reviewers, I changed the signature of the create function used by heartbeat plugins to return the number of endpoints for the given monitor.

An alternate approach I considered was refactoring from the FP style for plugins to a more OO style where the stats could be pulled after creation by navigating a map of monitor objects. I considered this to be a more minimal change, but would welcome some feedback.

Add heartbeat telemetry.

We now track:

1. The total number of active monitors
2. The total number of active monitors per protocol
3. The total number of checked endpoints per protocol
4. Counter versions of the above stats for the stats endpoint

This also removes an accidentally comitted test case that tests nothing that broke with these refactors.

(cherry picked from commit 596a0dd)
@andrewvc andrewvc merged commit 7e9de94 into elastic:6.x Oct 24, 2018
@andrewvc andrewvc deleted the backport_8621_6.x branch October 24, 2018 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants