Our next-gen architecture is built to help you make sense of your ever-growing data. Watch a 4-min demo video!

Back to All Docs

Grafana Plugin Grafana Plugin

Last Updated: Jul. 14, 2024

Configure your hosted Grafana installation to interface with Coralogix data.

Overview

Visualize your logs and metrics with familiar functions while accessing all Coralogix data sources automatically and without needing plugins (recommended).

For those wishing to use the Grafana plugin, this tutorial demonstrates how to connect and view your logs and metrics in your Coralogix dashboard using Grafana version 7+.

Connect your logs

STEP 1. Navigate to Home > Connection > Data sources > Add data source

STEP 2. Select Elasticsearch as your data source.

STEP 3. Input the following fields:

  • Name. Select a name for your data source.
  • URL. Input the OpenSearch endpoint associated with your Coralogix domain.
  • Skip TLS certification verification. Check to activate.
  • HTTP headers:
    • Header: Authorization
    • Value: Bearer <API-Key> [Input your Coralogix Logs Query Key as API-Key. Access it by navigating to Data Flow > API Keys in your Coralogix toolbar.]
  • Index name: *
  • Pattern: No pattern
  • Time field name: coralogix.timestamp

STEP 6. Click Save & test.

A popup message will inform you if you have configured your data source successfully.

Connect your metrics

As part of Coralogix’s metrics offering, we support querying metric data through the most prevalent time-series query language: PromQL. This allows you to use Coralogix as your metrics backend, add it as a Prometheus data source to your Grafana instance, and update existing dashboards without changing the queries or syntax.

Configure a Prometheus data source in Grafana:

STEP 1. Navigate to Home > Connection > Add new connection. Enter Prometheus data source.

STEP 2. Click Add new data source.

STEP 3. Input the following fields:

Connection

Authentication

  • HTTP headers:
    • Header: Authorization
    • Value: Bearer <API-Key> (as mentioned in the Authentication section above)

Advanced Settings

  • Performance
    • Prometheus type: Prometheus
    • Prometheus version: 2.24.x

STEP 4. Click Save & test. You should receive a message confirming a successful query to the Prometheus API.

Find out more here.

Useful Docker commands

If you have Grafana installed on a Docker container, use these useful commands to interact with Grafana:

  • List all docker containers
docker ps -a
  • Log in to your Grafana container
sudo docker exec -it "Grafana container ID" /bin/bash
  • Restart Grafana
docker restart "Grafana container ID"

Support

Need help?

Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.

Feel free to contact us via our in-app chat or by emailing support@coralogix.com.

On this page