Push metrics data to Grafana


I am trying to figure out how to push json data to Grafana. I am using AppMetrics, it does PostAsync to http://grafana-server-url:8080/metrics, but Grafana responds with

t=2019-06-03T11:10:20-0400 lvl=info msg=“Request Completed” logger=context userId=0 orgId=1 uname= method=POST path=/metrics status=404 remote_addr=[::1] time_ms=2 size=23519 referer=

I am not sure I am doing it right or how this works, do I need to config Grafana API to accept post to the path /metrics?

Appreciate your help.


Grafana doesn’t accept metrics. You need to push your mertics on to some other datasource and grafana becomes the UI/Dashboard for that datasource. I’m not familiar with App Metics, but it may be able to be a datasource even for Grafana, in that case you’d add it to Grafana in the Datasources section (/datasources).

I see the point. Thank you.