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

Descriptions of started and ready time metrics contain time units but the unit may change when the metrics are exported #36507

Closed
wants to merge 1 commit into from

Conversation

fzyzcjy
Copy link
Contributor

@fzyzcjy fzyzcjy commented Jul 23, 2023

When using this metric in Grafana/Prometheus, it is a bit confusing, because as the screenshot below shows, it is application_started_time_seconds (ends with "seconds"), and the value is really measured in seconds, but the hint text say it is "ms" not "s".

I guess this is because micrometer is smart enough to convert ms to s, since spring already tells micrometer it is ms.

image

@pivotal-cla
Copy link

@fzyzcjy Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@fzyzcjy Thank you for signing the Contributor License Agreement!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 23, 2023
@wilkinsona wilkinsona added this to the 2.7.x milestone Jul 24, 2023
@wilkinsona wilkinsona changed the title Tiny change: remove confusing "ms" description Descriptions of started and ready time metrics contain time units but the unit may change when the metrics are exported Jul 24, 2023
@wilkinsona wilkinsona added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 24, 2023
@snicoll snicoll self-assigned this Jul 24, 2023
snicoll pushed a commit that referenced this pull request Jul 24, 2023
@snicoll snicoll closed this in abf2f8a Jul 24, 2023
@snicoll snicoll modified the milestones: 2.7.x, 2.7.15 Jul 24, 2023
@snicoll
Copy link
Member

snicoll commented Jul 24, 2023

@fzyzcjy good catch, thanks for making your first contribution to Spring Boot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants