Docs
DocumentationQuery ReferenceAPI Reference
Open Console→→
DocumentationQuery ReferenceAPI Reference

Platform overview

What is Axiom?QuickstartArchitectureFeatures
Fundamentals
Datasets
Edge deployments
Limits
Performance
Optimize usage
Requirements
Semantic conventions
Glossary
Tour
SecurityRoadmap

Send data

Reference architecturesMethods

Understand data

Console
Query
Builder
Editor
Query results
Visualize
Traces
Metrics
Correlations
Save queries
Stream
Dashboard
Create
Elements
Create
Configure
Element types
Gauge
Heatmap
Log stream
Monitor list
Note
Pie chart
Scatter plot
Statistic
Table
Time series
Sections
Configure
Filter
Monitor
Overview
View status
Configure
Examples
Monitor types
Anomaly
Match
New values
Threshold
Alerting
Overview
Configure
Notifier types
Amp
ChatGPT Workspace Agent
Claude Code
Cursor
Custom Webhook
Discord
Email
incident.io
Jira Service Management
Microsoft Teams
Opsgenie
PagerDuty
Slack
Annotations
Command Menu
Manage
Datasets
Overview
Views
Virtual fields
Access
RBAC
Tokens
CLI
Organization
Labels
Audit log
Settings
Usage and billing
Profile
Extend
Overview
AWS Lambda
AWS PrivateLink
Cloudflare Workers
Cloudflare Logpush
Convex
Grafana
Hex
Netlify
Supabase
Supabase metrics
Tailscale
Terraform
Unkey
Vercel
Intelligence
Overview
Spotlight
AI agents
Overview
MCP Server
Overview
Tools
Query cost limits
Agent-created orgs
Skills
Overview
Axiom alerting
Build dashboards
Control costs
SRE
Translate SPL to APL
Splunk
Overview
Splunk app
Install and configure
Commands
Traces
Examples
Portal
How it works
Set up standard mode
Set up transparent mode
Observability Cloud
OCSF data
OCSF as CIM
SPL command support
Examples
Monitor and troubleshoot

Use cases

ObservabilityProduct analytics
OCSF security data
Overview
Send data
Query data
LLM observability
Overview
Use Vercel AI SDK
Manual instrumentation
OpenAI Agents SDK
GenAI attributes
Redaction policies

Miscellaneous

LLMs
Overview
List of docs pages
Full docs
Query reference
FAQs
Legal
Acceptable use policy
Axiom for Startups terms
Committed use terms
Cookies
Data processing
HIPAA
Partner agreement
Partner program guide
Privacy policy
SLA
Terms of service
Terms of use
Understand data/Console

Connect Axiom with Grafana

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

Data visualisation
└Data visualisation

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.

Add new layer
└Add new layer

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
Add new layer
└Add new layer

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

shell
grafana-cli plugins install axiomhq-axiom-datasource

Install Via Docker

  • Add the plugin to your docker-compose.yml or Dockerfile
  • Set the environment variable GF_INSTALL_PLUGINS to include the plugin

Example: GF_INSTALL_PLUGINS="axiomhq-axiom-datasource"

Configuration

  • Add a new data source in Grafana

  • Select the Axiom data source type.

Add new layer
└Add new layer
  • 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.

    Info

    Replace AXIOM_DOMAIN with the base domain of your edge deployment. For more information, see Edge deployments.

  • 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:

YAML
apiVersion: 1

datasources:
  - name: Axiom
    type: axiomhq-axiom-datasource
    access: proxy
    jsonData:
      apiHost: https://api.axiom.co
      edgeURL: https://AXIOM_DOMAIN
    secureJsonData:
      accessToken: API_TOKEN
Info

Replace AXIOM_DOMAIN with the base domain of your edge deployment. For more information, see Edge deployments.

Replace API_TOKEN with the advanced API token you created earlier.

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 than US 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
Build queries
└Build queries
  • Select the Axiom data source.
Axiom data source
└Axiom data source
  • Use the query editor to choose the desired metrics, dimensions, and filters.
APL query in Grafana with a graph and results table
└Axiom query editor in Grafana

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:

  1. 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.
Grafana dashboard showing Lambda invocations, execution time, and errors
└AWS Lambda dashboard in Grafana
  1. 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.

  2. 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.

  3. 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.

Rich querying
└Rich querying
Was this page helpful?
Suggest edits on GitHub
PreviousConnect Axiom with ConvexNextMap location data with Axiom and Hex
On this page
What’s a Grafana data source plugin?PrerequisitesInstall the Axiom Grafana data source plugin on Grafana CloudInstall the Axiom Grafana data source plugin on local GrafanaInstall the Axiom Grafana Plugin using Grafana CLIInstall Via DockerConfigurationConfigure the data source with provisioningUpgrade from plugin versions earlier than 0.7.0Build Queries with Query EditorMPL queriesQuery limitsBenefits of the Axiom Grafana data source plugin