How to read metrics from an API endpoint:?

Say I have an endpoint on my host that returns metrics in JSON format, something like

$curl localhost:8080
  "key": value

How could I get these metrics into Grafana?


You maybe can use the Simple JSON Datasource plugin. You need to tweak your endpoint so that it returns data in a format that the Simple JSON Datasource understands.