

# Connect to a Splunk Infrastructure Monitoring data source
<a name="AMG-datasource-splunkinfra"></a>

Provides support for Splunk Infrastructure Monitoring (formerly SignalFx).

**Note**  
This data source is for Grafana Enterprise only. For more information, see [Manage access to Enterprise plugins](upgrade-to-enterprise-plugins.md).  
Additionally, in workspaces that support version 9 or newer, this data source might require you to install the appropriate plugin. For more information, see [Extend your workspace with plugins](grafana-plugins.md).

## Adding the data source
<a name="bigquery-adding-the-data-source"></a>

1.  Open the Grafana console in the Amazon Managed Grafana workspace and make sure you are logged in. 

1.  In the side menu under **Configuration** (the gear icon), choose **Data Sources**. 

1.  Choose **Add data source**. 
**Note**  
 If you don't see the **Data Sources** link in your side menu, it means that your current user does not have the `Admin` role. 

1.  Select **Splunk Infrastructure Monitoring** from the list of data sources. 

1. Enter the following information:
   + For **Access Token**, enter the token that is generated by your SignalFx account. For more information, see [Authentication Tokens](https://docs.signalfx.com/en/latest/admin-guide/tokens.html).
   + **Realm** A self-contained deployment that hosts your organization. You can find your realm name on your profile page when signed in to the SignalFx user interface.

## Using the query editor
<a name="splunkinfra-query"></a>

The query editor accepts a [ SignalFlow](https://dev.splunk.com/observability/docs/signalflow/) program/query.

For labels, a Signalflow label `publish(label = 'foo')` is applied as metadata to the results: **"label":"foo"**

For query type template variables, there is no **Query** field. Instead, you select one of the following query types:
+ Dimensions
+ Metrics
+ Tags

Ad-hoc filters are supported, allowing global filters using dimensions.

Grafana annotations are supported. When you create annotations, use SignalFlow Alerts or Events queries.

Example of getting alerts for a detector:

```
alerts(detector_name='Deployment').publish();
```

Example of getting custom Events by type:

```
events(eventType='simulated').publish();
```