Skip to content

fix: use lowercase units for clock drift metrics - #329

Open
ay901246 wants to merge 1 commit into
cloudfoundry:mainfrom
ay901246:clock-drift-monitoring
Open

fix: use lowercase units for clock drift metrics#329
ay901246 wants to merge 1 commit into
cloudfoundry:mainfrom
ay901246:clock-drift-monitoring

Conversation

@ay901246

Copy link
Copy Markdown
Contributor

Loggregator automatically appends the unit tag to the metric name. Using Seconds resulted in awkward metric names like clock_drift_system_time_offset_seconds_Seconds. This changes the units to lowercase (seconds, ppm, stratum) so they match the standard Loggregator emission format.

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>

@jorbaum jorbaum left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Sensible and straight forward fix.

AFAICS strictly speaking this would be a breaking change now as we have released your newly added clock drift feature in v3.0.29. I do not think we need to be strict here though.

Side-note: At some point it might make sense to release a new minor-release (i.e. 3.1.X) as we have added some new features over the last few weeks?

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

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants