Connect Axiom with Grafana
Learn how to extend the functionality of Grafana by installing the Axiom data source plugin.

What’s a Grafana data source plugin?
Grafana is an open-source tool for time-series analytics, visualization, and alerting. It’s frequently used in DevOps and IT Operations roles to provide real-time information on system health and performance.
Data sources in Grafana are the actual databases or services where the data is stored. Grafana has a variety of data source plugins that connect Grafana to different types of databases or services. This enables Grafana to query those sources from display that data on its dashboards. The data sources can be anything from traditional SQL databases to time-series databases or metrics, and logs from Axiom.
A Grafana data source plugin extends the functionality of Grafana by allowing it to interact with a specific type of data source. These plugins enable users to extract data from a variety of different sources, not just those that come supported by default in Grafana.
Prerequisites
- Create an Axiom account.
- Create a dataset in Axiom where you send your data.
- Create an advanced API token in Axiom with permissions to query data from the dataset you have created. Basic API tokens only allow data ingestion and won't work with Grafana.
Install the Axiom Grafana data source plugin on Grafana Cloud
-
In Grafana, click Administration > Plugins in the side navigation menu to view installed plugins.
-
In the filter bar, search for the Axiom plugin
-
Click on the plugin logo.
-
Click Install.

When the update is complete, a confirmation message is displayed, indicating that the installation was successful.
- The Axiom Grafana Plugin is also installable from the Grafana Plugins page

Install the Axiom Grafana data source plugin on local Grafana
The Axiom data source plugin for Grafana is open source on GitHub. It can be installed via the Grafana CLI, or via Docker.
Install the Axiom Grafana Plugin using Grafana CLI
Install Via Docker
- Add the plugin to your
docker-compose.ymlorDockerfile - Set the environment variable
GF_INSTALL_PLUGINSto include the plugin
Example:
GF_INSTALL_PLUGINS="axiomhq-axiom-datasource"
Configuration
-
Add a new data source in Grafana
-
Select the Axiom data source type.

-
In API Token, enter the advanced API token you created earlier. The plugin doesn’t accept personal access tokens.
-
In API URL, keep the default value
https://api.axiom.co. -
In Edge URL, enter
https://AXIOM_DOMAIN. The plugin sends all queries to this URL. -
Save and test the data source.
Configure the data source with provisioning
If you provision the Axiom data source with a configuration file, set the Edge URL in jsonData.edgeURL. For example:
Upgrade from plugin versions earlier than 0.7.0
Version 0.7.0 of the Axiom data source plugin introduces the following breaking changes:
- The plugin doesn’t accept personal access tokens. If an existing data source uses a personal access token and an org ID, replace them with an advanced API token before you upgrade. Otherwise, dashboards that use the data source fail to authenticate.
- The plugin sends all queries to the Edge URL. If an existing data source doesn’t have an Edge URL, the plugin uses
https://us-east-1.aws.edge.axiom.co. If your data is stored in an edge deployment other thanUS East 1 (AWS), set the Edge URL of the data source to your edge deployment. Otherwise, your queries don’t return data.
Build Queries with Query Editor
The Axiom data source Plugin provides a custom query editor to build and visualize your Axiom event data. After configuring the Axiom data source, start building visualizations from metrics and logs stored in Axiom.
- Create a new panel in Grafana by clicking on Add visualization

- Select the Axiom data source.

- Use the query editor to choose the desired metrics, dimensions, and filters.

MPL queries
Starting with plugin version 0.7.0, the Axiom Grafana data source supports MPL queries in panels and dashboard variables, including metric selectors and tag lookup.
Recommended: Use plugin version 0.7.3 or later for variable and tag-value fixes.
Query limits
The Axiom data source doesn’t have a setting for the number of rows that a query returns. The limits of APL queries apply: if your query doesn’t contain limit, Axiom applies a default limit of 1,000 rows to the query result. To return more rows, for example in panels that cover a long time range, add limit to the end of your APL query. The maximum value is 50,000.
When a limit truncates the query result, Axiom returns a warning such as default_limit_warning: A default limit of 1000 was applied. To see the warning, open the query inspector in Grafana.
For more information, see Default and maximum limits.
Benefits of the Axiom Grafana data source plugin
The Axiom Grafana data source plugin allows users to display and interact with their Axiom data directly from within Grafana. By doing so, it provides several advantages:
- Unified visualization: The Axiom Grafana data source plugin allows users to utilize Grafana’s powerful visualization tools with Axiom’s data. This enables users to create, explore, and share dashboards which visually represent their Axiom logs and metrics.

-
Rich Querying Capability: Grafana has a powerful and flexible interface for building data queries. With the Axiom plugin, and leverage this capability to build complex queries against your Axiom data.
-
Customizable Alerting: Grafana’s alerting feature allows you to set alerts based on your queries' results, and set up custom alerts based on specific conditions in your Axiom log data.
-
Sharing and Collaboration: Grafana’s features for sharing and collaboration can help teams work together more effectively. Share Axiom data visualizations with others, collaborate on dashboards, and discuss insights directly in Grafana.
