Skip to main content
What you’ll get: ewake searches and reads your dashboards, evaluates their panels over the time of an incident, and learns your alert rules. Through the same Grafana, it also queries the Prometheus, Thanos, VictoriaMetrics, Loki, Tempo, Jaeger and ClickHouse datasources you select.
This page lets ewake read Grafana. To have ewake investigate your Grafana alerts as they fire, see Alertmanager & Grafana alerts.

How ewake uses Grafana

Grafana shows up in two places on the Integrations page of your dashboard. You don’t expose any backend to ewake: every request goes through Grafana, with one service account token. Connect the Grafana card first, then connect the datasources from it.

Prerequisites

  • A Grafana instance (Cloud or self-hosted)
  • Admin access to create a service account

Configuration

1

Create a service account in Grafana

In Grafana, go to Administration → Service Accounts → click Add service account.Set the role to Viewer, ewake only needs read access.Once the account is created, click Add service account token → copy the token immediately.
Copy the token now, you won’t be able to see it again after closing the modal.
2

Open the Grafana integration in ewake

In your ewake dashboard, go to Integrations and click the Grafana tile under Add more.Connect to Grafana modal in ewake
3

Enter your credentials

4

Test and save

Click Test connection to check what the token can read, then click Save.
Grafana is connected. Ewake can now read your dashboards and alert rules.

Connect its datasources

Once Grafana is connected, its card lists Sources in this Grafana: one row for each kind of datasource ewake can read. Then select the datasources ewake may query.

Connect several Grafanas

Grafana accepts more than one connection. Once one is connected, open the card and use Add instances to connect the next, with its own URL, token and headers.
  • Each instance is named after the host of its URL, for example grafana-eu.acme.com.
  • Ewake names the Grafana it reads in each dashboard search or query, and reads the alert rules of every instance.
  • Each datasource integration can read several Grafanas too. See Several Grafanas.

Behind Cloudflare Access or a proxy

If your Grafana instance sits behind an authenticating proxy, add the credentials it expects under Custom headers in the same dialog. The datasource integrations take the same headers. For a Cloudflare Access service token that means two headers: Ewake sends these with every request. Values are stored encrypted, and are not shown again after saving, leaving the fields empty when you edit the connection keeps the headers you already saved.
Without this, a connection test against a proxied endpoint fails with an authentication or redirect error even though the URL and API key are both correct. It’s the most common cause of a test failing on a working instance.

Ewake only requires read-only access to Grafana. It never modifies dashboards, alert rules or datasources.