question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Publishing to prometheus pushgateway fails with Bad Request

See original GitHub issue

Publishing 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:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cdsapcommented, Aug 29, 2019

hi @vipsy, thanks for the report. Checking now.

0reactions
cdsapcommented, Sep 10, 2019

solved

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found