Customize a Grafana log table
Build a Grafana panel that renders Azion event records as a table, choosing the dataset, the fields, and the time path the panel orders by.
With the Azion data source plugin, you can build a Grafana dashboard panel that shows the Azion data you need. This page covers the panel itself: the data source, the query, the five fields that shape the result, and the visualization type.
Connecting Grafana to your account is a separate task. For more information, refer to Install the Azion plugin for Grafana.
Prerequisites
- A Grafana instance running on your machine. To install one, refer to the Azion Grafana plugin repository.
- The Azion plugin installed on that instance and authorized. For more information, refer to Install the Azion plugin for Grafana.
- A query that returns the Real-Time Events data you want the panel to show.
Build the panel
A panel holds one query and one visualization type. The five fields below map the fields the query returns onto the visualization.
To add a panel that reads Azion data, in Grafana:
Select Dashboards. The dashboard page opens.
Beside the search bar, search, select New > New Dashboard.
On the Data source dropdown, select Azion.
In the code box, enter the query the panel runs. For example queries, refer to GraphQL API.
Five fields complete the setup. Which ones you fill depends on the visualization type and on what the panel shows:
- Data path: enter the value
Events. - Time path: enter a timestamp. The field is dot-delimited.
- Time format: enter a time format in moment.js format.
- Group by: use this field when you want the data grouped in aggregated form.
- Alias by: use this field to change the value and the name a field carries in the legend.
On the Visualization list, select the type the panel uses. To read raw event records in large volume, or a top X query, Azion recommends the Table type. You can combine it with other types of charts and graphs.
Grafana saves the panel, and the dashboard shows the data the query returns.
Grafana documentation
- Create and use dashboards
- Grafana dashboard best practices
- Add and manage variables
- Configuring time series in ISO8601
- Configuring time series in custom format
- Visualizations
- Configuring a legend
- Configuring value mappings
Trademarks
Grafana Cloud is a trademark of Grafana Labs. Azion is not affiliated with, endorsed by, or sponsored by Grafana Labs or its affiliates.