Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename metrics without units #34

Merged
merged 3 commits into from
Nov 27, 2023
Merged

Rename metrics without units #34

merged 3 commits into from
Nov 27, 2023

Conversation

vmercierfr
Copy link
Collaborator

@vmercierfr vmercierfr commented Nov 14, 2023

Objective

Specify units for rds_replication_slot_disk_usage_average and rds_usage_allocated_storage_average

Why

According to Prometheus metrics best practices, these metrics should contain the _bytes suffix instead of _average

rds_usage_allocated_storage_average was specified in Gigabytes while it should be in Bytes.

How

  • Rename rds_replication_slot_disk_usage_average to rds_replication_slot_disk_usage_bytes
  • Rename rds_usage_allocated_storage_average to rds_usage_allocated_storage_bytes

Issue was reported by end-user in #32

Release plan

  • Merge this PR
  • Update metrics in Grafana dashboards
  • Update alerts in Database Monitoring Framework

@vmercierfr vmercierfr added this to the 0.4.0 milestone Nov 14, 2023
@vmercierfr vmercierfr self-assigned this Nov 14, 2023
@vmercierfr vmercierfr force-pushed the fix-values branch 2 times, most recently from a250a5d to b7a3b13 Compare November 14, 2023 21:55
@vmercierfr vmercierfr linked an issue Nov 14, 2023 that may be closed by this pull request
@vmercierfr
Copy link
Collaborator Author

#sre

README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@dcupif dcupif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 🚀

internal/app/rds/rds_test.go Outdated Show resolved Hide resolved
@vmercierfr vmercierfr force-pushed the fix-values branch 2 times, most recently from edbaa7a to 24d4fdd Compare November 24, 2023 14:36
@vmercierfr vmercierfr added the enhancement New feature or request label Nov 27, 2023
Copy link

Code Coverage

Package Line Rate Health
github.com/qonto/prometheus-rds-exporter/internal/app/cloudwatch 88%
github.com/qonto/prometheus-rds-exporter/internal/app/ec2 88%
github.com/qonto/prometheus-rds-exporter/internal/app/rds 79%
github.com/qonto/prometheus-rds-exporter/internal/app/servicequotas 51%
github.com/qonto/prometheus-rds-exporter/internal/app/unit 100%
Summary 82% (523 / 640)

Minimum allowed line rate is 60%

@vmercierfr vmercierfr merged commit 0594ff7 into main Nov 27, 2023
8 checks passed
@vmercierfr vmercierfr deleted the fix-values branch November 27, 2023 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

description of metrics
4 participants