Skip to content

Error from prometheus when scraping /_stcore/metrics #14432

@olconstant

Description

@olconstant

Checklist

  • I have searched the existing issues for similar issues.
  • I added a very descriptive title to this issue.
  • I have provided sufficient information below to help reproduce this issue.

Summary

Error from prometheus when scraping /_stcore/metrics:
Error scraping target: unit "seconds" not a suffix of metrics "session_duration_seconds_total"

I believe the unit seconds should be at the end:
"session_duration_total_seconds"

Reproducible Code Example

Steps To Reproduce

  1. Scrape /_stcore/metrics endpoint with prometheus
  2. Check the error in prometheus > Status > Target health

Expected Behavior

Target health status in prometheus up.

Current Behavior

Target health status in prometheus down. Error scraping target: unit "seconds" not a suffix of metrics "session_duration_seconds_total"

Is this a regression?

  • Yes, this used to work in a previous version.

Debug info

  • Streamlit version: 1.55.0
  • Python version: 3.13
  • Operating System: linux
  • Browser: chrome

Additional Information

No response

Metadata

Metadata

Assignees

Labels

area:backendRelated to Python backendpriority:P3Medium prioritystatus:confirmedBug has been confirmed by the Streamlit teamtype:bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions