Add support for LoadBalancing metrics #60
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
resolves: #51
Description
This PR enables support for CloudFlare LoadBalancer metrics.
Introduces the following changes:
This commit enables support for exporting LoadBalancer analytics
metrics. LoadBalancer's pool health is reported:
as long as the number of requests each pool receives from each CFL
network location[1]
Export browser_map_page_views_count requests metric
Test plan
All changes have been tested locally with a local monitoring stack pulling metrics.
LoadBalancers pool health:
![Screenshot 2022-04-11 at 2 32 00 PM](https://user-images.githubusercontent.com/24883189/162730984-cc0ded55-637f-4c6d-b684-3a618b4404b4.png)
Browser map page views per family
![Screenshot 2022-04-11 at 2 37 49 PM](https://user-images.githubusercontent.com/24883189/162731789-e3ac5674-279d-4498-b5fe-9ace8e27c788.png)