Skip to content
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

Grafana dashboard #4

Open
asad-awadia opened this issue Dec 13, 2019 · 1 comment
Open

Grafana dashboard #4

asad-awadia opened this issue Dec 13, 2019 · 1 comment

Comments

@asad-awadia
Copy link

Trying this out - but nothing shows up in the grafana dashboard

Is it still working?

e.Use(echoprometheus.NewMetric())
	e.GET("/metrics", echo.WrapHandler(promhttp.Handler()))

http://localhost:1323/metrics does show

# HELP echo_http_request_duration_seconds HTTP request latencies in seconds.
# TYPE echo_http_request_duration_seconds summary
echo_http_request_duration_seconds_sum{host="localhost:1323",method="GET",url="/metrics"} 0.012348164
echo_http_request_duration_seconds_count{host="localhost:1323",method="GET",url="/metrics"} 18
echo_http_request_duration_seconds_sum{host="localhost:1323",method="GET",url="/ping"} 0.0030877769999999986
echo_http_request_duration_seconds_count{host="localhost:1323",method="GET",url="/ping"} 355

but the grafana dashboard is blank

@wpjunior
Copy link
Member

wpjunior commented Dec 13, 2019

Hi @asad-awadia, Are you sure about is using this library?, we don't use host and URL labels, look at this line: https://github.com/globocom/echo-prometheus/blob/master/middleware.go#L95, we use a handler to specify the path of service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants