Grafana provides a powerful and elegant way to create, explore, and share dashboards and data with your team and the world. Since release 7, Grafana can communicate with OpenSearch and so allows you to mix data from Logs Data Platform and other data sources like IoT in the same place. This guide will show you how to achieve this.
Requirements
- the ability to send logs on a stream you own (see our Quick Start for Logs Data Platform guide)
- access to port 9200 for your cluster (head to the Home page in OVHcloud Control Panel to know the address of your cluster)
After some training you will be able to create this kind of dashboard:
Instructions
Select your Stream Alias
To access your logs from Grafana, you will need to set up an OpenSearch Alias and link them to your Graylog streams. From the OVHcloud Control Panel:
- Click
Bare Metal Cloud
from the top navigation bar. - Select
Logs Data Platform
and your LDP account.
- Choose the
Alias
tab. - Click on the
+ Add an alias
button - Choose a name and a description for your alias and click
Save
.
- Once the alias has been created. Use the more options
...
button to the right and selectAttach content to the alias
option.
- On the next screen, choose the Graylog streams you want to associate to your alias.
So here you go, now Logs Data Platform knows what stream you want to browse. Now let’s configure Grafana!
Set up Grafana
Get the latest Grafana release here (v11.1.0 at the time of writing). Then follow the Grafana installation guide according to your platform.
Launch it
If everything is set up properly, launch your favorite browser and point it to http://localhost:3000. Once logged in with your Grafana credentials, navigate to the Data Sources panel to set up your Logs Data Platform data source:
NOTE: Please ensure you:
- Set the URL to
https://<your_cluster>.logs.ovh.com:9200
. - Set Basic auth to ON.
- Set your Basic Auth Details as your Logs Data Platform credentials.
NOTE: Please ensure that you...
- Set your Index name to the name of your LDP alias linked to Grafana.
- Set the Time field name to
timestamp
. - Set the Version by clicking
Get Version and Save
.
Click Save & test
. If your configuration is correct, it should display: "Index OK. Time field name OK."
To explore further, you can create a new dashboard and add different styles of visualizations.
If you want to know what you can do with Grafana and OpenSearch, read the official documentation.
Go further
For more information and tutorials, please see our other Logs Data Platform support guides or explore the guides for other OVHcloud products and services.