Note Information for plugin developers is at the end of this document.
This page describes the sumologic-grafana-datasource (old name sumologic-metrics-grafana-datasource) plugin, a datasource plugin for Grafana that can deliver metrics from your Sumo deployment to Grafana. After installing and configuring the plugin, you can query and visualize metrics from Sumo in the Grafana user interface. You initiate a query from the Grafana UI, the search runs on Sumo, and results are returned to Grafana.
The Grafana backend will proxy all requests from the browser, and send them on to the data source.
- Grafana version support
- Install the plugin
- Configure the plugin
- Query metrics in Grafana
- Plugin development
Note This plugin is community-supported. For support, add a request in the issues tab.
The plugin supports Grafana starting from the v9.
The master branch attempts to track Grafana development as much as possible.
This is the master branch.
For specific version families, please have a look at the accordingly named branches.
The GA version of sumologic-grafana-datasource will be available on https://grafana.com/plugins. At that point, the plugin will be installable using the Grafana command-line interface.
To build the beta version, please run following steps:
- Run
yarn install
to fetch all the dependencies. - Run
yarn build
in order to run webpack, you are ready to start development - Copy
./dist
content tografana/plugins/sumologic-grafana-datasource
- Ensure that
GF_DEFAULT_APP_MODE=development
environment variable is set (required for unsigned plugins) for the Grafana. - Restart the Grafana.
-
In Sumo, generate an Access ID and Key. For instructions, see Access Keys. Save the ID and Key, as you will enter them later in this procedure. If you would like to use Browser Data Source in Grafana, then please ensure that you have added your Grafana domain in the Allowlisted CORS Domains list.
-
Enter a name for the plugin in the Name field.
-
Deselect the Default checkbox/switch, unless you want to make the Sumo Logic datasource your default datasource type.
-
We recommend to change Access to Browser. For this you would need proper entry in Allowlisted CORS Domains which you filled in step 1.
-
In the URL field, enter the API endpoint for your deployment. To determine the API endpoint, see Sumo Logic Endpoints and Firewall Security in Sumo help.
-
In the Auth section, select the Basic auth checkbox. The Basic Auth Details section appears.
-
In the Basic Auth Details section:
- In the User field, enter the Access ID you generated in step 1.
- In the Password field, enter the Access Key you generated in step 1.
-
If you are using old Grafana version, there are few more points need to be taken into account:
- Select Sumo Logic Metrics from the Type dropdown.
- In the Access field, leave "proxy" selected.
-
Click Add to save the new data source.
You can query your Sumo metrics using the same query syntax you use in the Sumo UI. For more information, see Metrics Queries in Sumo help.
This plugin supports Grafana template variables.
The plugin allows you to define variables based on a metric query. However, to use it, you need to ask your CSM to enable Metadata Catalog API, which is currently unavailable to all customers.
You can query your Sumo Logs using the same query syntax you use in the Sumo UI. For more information, see Logs Queries in Sumo help.
- Run
yarn install
to fetch all the dependencies. - Run
docker-compose up
in order to get local grafana setup - Run
yarn dev
in order to run webpack, you are ready to start development
Sumo Logic only accepts connections from clients using TLS version 1.2 or greater. To utilize the content of this repo, ensure that it's running in an execution environment that is configured to use TLS 1.2 or greater.