Publishing to prometheus pushgateway fails with Bad Request
See original GitHub issuePublishing to prometheus pushgateway fails with Bad Request
It is not printing HTTP response code either. There should be more info in the logs to debug.
Output:
================
PushGatewayPublisher
publishBuildMetrics: true
publishTaskMetrics: false
================
http://prometheus-pushgateway:9091/metrics/job/task
== Build Time Summary ==
Bad Request
Here is my configuration
talaiot {
logger = com.cdsap.talaiot.logger.LogTracker.Mode.INFO
publishers {
pushGatewayPublisher {
url = "http://prometheus-pushgateway:9091"
publishBuildMetrics = true
publishTaskMetrics = false
}
}
filter {
threshold {
minExecutionTime = 1000
}
}
}
A direct curl call works and pushes the metrics.
"some_metric 3.14" | curl --data-binary @- http://prometheus-pushgateway:9091/metrics/job/some_job -v
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Prometheus Pushgateways - Everything You Need To Know
Everything you need to know about Prometheus Pushgateways and how ... The actual scraping might fail if you've pushed some invalid metrics.
Read more >Invalid Push metric issue while using Prometheus push ...
Try pushing an empty metric, this issue happens when you try pushing the same metric twice in one push.FOr example adding more that...
Read more >prometheus-pushgateway is flooding with warning messages
The problem is with metric name "go_memstats_sys_bytes" was published by a container telegraf and same metric was pushed StatsD go exporter. As you...
Read more >Prometheus Push Gateway - "improper label name" - Help
I'm not going to pretend I fully understand the problem, but it seems to be because LibreNMS is sending un-escaped parameters to Pushgateway....
Read more >How to push Prometheus metrics in Grafana Cloud?
I am developing an application that is able to send its own metrics or publish an endpoint ready to be scrapped by Prometheus....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hi @vipsy, thanks for the report. Checking now.
solved