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.

curl http://localhost:8080/metrics return nothing

See original GitHub issue

Expected behavior

Following instructions in this page:

curl http://localhost:8080/metrics should return some metrics info.

Actual behavior

nothing returned.

Steps to reproduce

  1. start pulsar standalone
  2. use bin/pulsar-admin broker-stats monitoring-metrics could return metrics info.
  3. use curl http://localhost:8080/metrics returns nothing

System configuration

Pulsar version: 2.2

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

xiaozongyangcommented, Jun 30, 2021

It seems that this problem hasn’t been fixed in release 2.8.0. Is there any plan to make the path /metrics return data?

ambition119commented, Jan 7, 2019

@merlimat is right.

$curl -v -L http://localhost:8080/metrics 
$wget -q -O - http://localhost:8080/metrics

these shell command could return metrics info.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the curl error 52 "empty reply from server"?
I have a cron job setup on one server to run a backup script in PHP that is hosted on another server. The...
Read more >
Prometheus is able to return metrics, but the host itself can't ...
Prometheus is able to return metrics, but the host itself can't curl the endpoint.
Read more >
How to catch curl response in Jenkins Pipeline?
In this blog post, I explain why you may want to use curl command in your Jenkinsfile, how to catch curl response and...
Read more >
Spring Boot Actuator Web API Documentation
Retrieving All Metrics. To retrieve all metrics, make a GET request to /actuator/prometheus , as shown in the following curl-based ...
Read more >
Micrometer Metrics - Quarkus
To view metrics, execute curl localhost:8080/q/metrics/. The Micrometer extension automatically times HTTP server requests. Following Prometheus naming ...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found