Skip to content

[v2] refactor; Prometheus to handle null values and clean up#2705

Open
svenvg93 wants to merge 3 commits intoalexjustesen:2.xfrom
svenvg93:v2-refactor-prometheus
Open

[v2] refactor; Prometheus to handle null values and clean up#2705
svenvg93 wants to merge 3 commits intoalexjustesen:2.xfrom
svenvg93:v2-refactor-prometheus

Conversation

@svenvg93
Copy link
Contributor

📃 Description

This PR significantly improves the Prometheus metrics implementation to follow best practices and standard conventions.

🪵 Changelog

➕ Added

  • Added Standard Metrics
    • speedtest_tracker_up - Exporter health indicator (always 1)
    • speedtest_tracker_build_info - Application version metadata
  • registerGaugeIfNotNull function to skip null metrics. (Was already added and used in fix for v1)
  • BREAKING_CHANGES.md to track all the breaking changes during v2 development.

✏️ Changed

  • Cache rendered metrics, only rebuild when speedtest completes
  • Improved Metric Naming:
    • download_bytesdownload_bytes_per_second (explicit rate)
    • upload_bytesupload_bytes_per_second (explicit rate)
    • download_bitsdownload_bits_per_second (explicit rate)
    • upload_bitsupload_bits_per_second (explicit rate)
    • downloaded_bytestest_downloaded_bytes_total (cumulative total)
    • uploaded_bytestest_uploaded_bytes_total (cumulative total)

🗑️ Removed

  • Removed server_id label
  • Removed server_country label

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant