Using Grafana with Metricfire

The easiest and fastest way to see your Metricfire data is in Grafana, which comes with your  Metricfire account. It's also possible to view your Metricfire data in a locally hosted Grafana.

Prometheus provide some clear documentation and helpful guides on creating queries here:

Your Grafana in  Metricfire

Your Metricfire account comes with a blank Grafana instance, with a datasource configured. This allows you to immediately graph the data you've sent us. Check out your Grafana here –

Configuring a local Grafana instance to show Metricfire data

If you already have Grafana set up in your organisation, you can view your  Metricfire data in it by adding  Metricfire as a datasource.


1. Add new Prometheus datasource:

In Grafana's configuration menu, click on Data Sources and select Prometheus

2. Apply the following settings:

Http URL

Select Basic Auth and provide Account ID and API key found in your Account Details at

    User: [your-account-ID]


3. Click Save and Test:

After clicking on Save and Test, a green confirmation should appear stating that Data source is working.

Configuring a local Prometheus as a Metricfire datasource

It's possible, though not necessary, to use a local Prometheus as a datasource for your Metricfire Grafana.

Recommended Setup

The recommended way to add your Prometheus as a datasource to our Grafana as a service would be to first make it accessible over https (required) with basic authentication enabled (suggested). Some useful links on these things:

1. Generate your certificate:

One option is something like:

2. Add your certificate to your webserver to set up HTTPS:

Most web servers have some documentation on this. The examples in Prometheus use Nginx, so we recommend having a look at the nginx documentation:

3. Combine with Nginx Basic Auth:

Prometheus provides a guide for enabling this:

After this is all configured, your prometheus should be accessible over https. When you're happy with it, go to and add a new Prometheus datasource.

That's complicated, I just want to test the Metricfire Grafana quickly

If you just want to graph a locally running prometheus you can expose it with ngrok (, a tool for exposing localhost through a NAT or firewall quickly and securely. It isn't a permanent solution; the url for the datasource will change every time you restart Prometheus and you will need to edit your Metricfire Grafana datasource.