Grafana Data Source monitoring

138 views
Skip to first unread message

ma...@keao.cloud

unread,
May 17, 2016, 2:20:20 AM5/17/16
to Prometheus Developers
Hi All,

I was wondering is there any easy way to scrape an application that exports itself as a Grafana Data Source to have its metrics collected via Prometheus?

Grafana can now use Apache Ambari as a Data Source (like it does with Prometheus) however, it would be nice if we could first collect the metrics via Prometheus so that we can monitor and alert from one place, then just use Grafana to do the Visualisation piece.

Regards

Mark

Björn Rabenstein

unread,
May 17, 2016, 5:00:41 AM5/17/16
to ma...@keao.cloud, Prometheus Developers
On 17 May 2016 at 08:20, <ma...@keao.cloud> wrote:
> I was wondering is there any easy way to scrape an application that exports itself as a Grafana Data Source to have its metrics collected via Prometheus?
>
> Grafana can now use Apache Ambari as a Data Source (like it does with Prometheus) however, it would be nice if we could first collect the metrics via Prometheus so that we can monitor and alert from one place, then just use Grafana to do the Visualisation piece.

The way it's done in the Prometheus world is to write a separate
little program called exporter. Such a program reads metrics from
system X and exposes them as Prometheus metrics.

It seems there is no "Grafana data source" format but Grafana is just
able to speak many formats. So in your case, you would like to write
an "Ambari exporter". See
https://prometheus.io/docs/instrumenting/writing_exporters/ for a
starter.

--
Björn Rabenstein, Engineer
http://soundcloud.com/brabenstein

SoundCloud Ltd. | Rheinsberger Str. 76/77, 10115 Berlin, Germany
Managing Director: Alexander Ljung | Incorporated in England & Wales
with Company No. 6343600 | Local Branch Office | AG Charlottenburg |
HRB 110657B
Reply all
Reply to author
Forward
0 new messages