Define Coralogix as an additional data source to your Grafana for maximum flexibility in metric data visualizations
Add Coralogix as data source to Grafana version 7 and up.
log in to Grafana and click on the gear icon, and click add source
Click to blue button ADD a Source.
Type in the search Elasticsearch.
Click select.
Choose a name to your data source. you can give it any name you like.
In the URL please enter your end point (Choose your endpoint from the table below).
Choose “Skip TLS Verify”
Name the header: “token” and insert to the value your Coralogix Logs API Key
Name the index name “coralogix”, Under Patterns choose: “No Pattern”, time field name: “coralogix.timestamp” and Version “7.0+”
Available endpoints:
Cluster | Index | Log2metrics |
Europe |
|
|
India |
|
|
Add Coralogix as data source to Grafana version lower than version 7.
Download the Grafana plugin YAML
Add your company name under the “name key”
Add your Coralogix Logs API Key (Which you can find under Settings –> Account –> API Access)
Copy the file to your data source provisioning folder in your Grafana server (default: /etc/grafana/provisioning/datasources)
Restart Grafana
Useful commands in case you have Grafana installed on docker container.
List all your docker containers
docker ps -aCopy
log in to your Grafana container
sudo docker exec -it "Grafana container ID" /bin/bashCopy
restart Grafana
docker restart "Grafana container ID"Copy
We recommend checking out the following documentation for writing queries: http://docs.grafana.org/features/datasources/elasticsearch/#metric-query-editor