The LogicMonitor Devices data source plugin for Grafana allows you to query and visualize data from LogicMonitor in Grafana.
Note
Grafana LogicMonitor Devices enterprise data source plugin is currently in public preview. Grafana Labs offers limited support, and breaking changes might occur prior to the feature being made generally available.
Key features
The LogicMonitor Devices data source plugin enables you to query and visualize Device Instance Data
, and to list Devices
, Datasources
, and Instances
directly within Grafana.
Requirements
This plugin has the following requirements:
- A LogicMonitor account’s REST API v3 bearer token
- Any free or paid Grafana Cloud plan, or an activated on-prem Grafana Enterprise license. Contracted Cloud customers should refer to their specific agreements.
Known Limitations
The LogicMonitor Devices plugin currently supports only Device Instance Data. Additional query types are not supported at this time due to limitations in the LogicMonitor Public API. Expanded query capabilities will be introduced as the LogicMonitor API evolves and provides broader access.
Install the plugin
To install the data source, refer to the Installation guide.
Configure the data source in Grafana
Follow the add a data source guide and fill out the following fields:
Basic fields
Authentication fields
This plugin supports bearer token–based authentication. To create a token:
- Log in to your LogicMonitor portal.
- Navigate to Settings > Users and Roles.
- (Optional) Add a new user with a
readonly
role if one does not already exist. - Go to the Bearer Tokens tab.
- Create a new token for the associated user.
Configure the data source with provisioning
You can configure this data source using configuration files with Grafana’s provisioning system. For more information, refer to Provisioning Grafana data sources.
Example provisioning configuration using bearer token authentication:
apiVersion: 1
datasources:
- name: LogicMonitor
type: grafana-logicmonitor-datasource
jsonData:
variables:
account_name: <account_name>
authMethod: bearer
secureJsonData:
logicmonitor.token: <token>
Replace <account_name> with your LogicMonitor account_name and
Query the data source
The query editor allows you to run Device Instance Data
queries by selecting the action type and entering the required and optional parameters as needed.
You can also use Devices
, Datasources
, and Instances
to list data in table format.
Explore view
The Explore view allows you to run queries and visualize the results as logs or charts for metrics. For more information about Explore, refer to Explore.
Templates and variables
To add a new LogicMonitor query variable, refer to
Add a query variable. Use your LogicMonitor data source and fill out the Query
field with your desired LogicMonitor query.
After creating a variable, you can use it in your LogicMonitor queries using Variable syntax. For more information about variables, refer to Templates and variables.
Learn more
- Add Annotations.
- Configure and use Templates and variables.
- Add Transformations.
- Set up alerting; refer to Alerts overview.