Skip to content

metrics formating error breaks prometheus parsing #12087

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

Open
9R opened this issue Jun 4, 2025 · 0 comments · May be fixed by #12084
Open

metrics formating error breaks prometheus parsing #12087

9R opened this issue Jun 4, 2025 · 0 comments · May be fixed by #12084
Labels
25.04 bug Something isn't working regression Something that was working in the past, but not now

Comments

@9R
Copy link

9R commented Jun 4, 2025

Describe the Bug

When accessing /cool/getMetrics some of the metrics seem to be misformatted (missing white space between key and value).
See example below.

The strange thing is, not all metrics are affected but this formatting error in a single line will break parsing in prometheus.

Error message in prometheus:

Error scraping target: expected value after metric, got "\n" ("INVALID") while parsing: "kit_thread_count_total2\n"

Steps to Reproduce

  1. Add example.com/cool/getMetrics to prometheus as metrics endpoint
  2. Receive error messages about failed parsing because of invalid metrics value ("\n")

Alternative Steps to Reproduce

  1. access metrics-url with browser or curl and notice missing white space in some lines.

Expected Behavior

metrics line should look like this:

kit_thread_count_total 2

Actual Behavior

line looks like this:

kit_thread_count_total2

Server

  • Coolwsd version: 25.04.2.2 (git hash: 636e10a2b1)
  • Collabora Officeversion: 25.04.2.2 (git hash: b678ed7469)
  • OS and version: Archlinux
  • Prometheus version: 3.3.1
@9R 9R added bug Something isn't working unconfirmed 25.04 labels Jun 4, 2025
@meven meven added C++ regression Something that was working in the past, but not now and removed unconfirmed C++ labels Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
25.04 bug Something isn't working regression Something that was working in the past, but not now
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants