-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Negative numbers not extracted by promtail to a Gauge metric #3281
Comments
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This is still a problem for anyone dealing with extractions of GPS numbers, DBm, DB or any other signal type data. |
Fixes grafana#3281 Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
* Fixes negative gauge in Promtail. Fixes #3281 Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com> * got linted. Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Describe the bug
Negative numbers cannot be extracted as Gauge metrics from logs in promtail.
To Reproduce
promtail config:
Expected behavior
Numbers like -10.1234 should be extracted from log lines.
Environment:
Screenshots, Promtail config, or terminal output
logfmt in logql has not problem with negative numbers, but promtail cannot cast the extracted number as a signed float to a Gauge after regex extraction.
The text was updated successfully, but these errors were encountered: