Coder Social home page Coder Social logo

isabella232 / sentry-datasource Goto Github PK

View Code? Open in Web Editor NEW

This project forked from grafana/sentry-datasource

0.0 0.0 0.0 357 KB

Grafana data source plugin for Sentry.

Home Page: https://grafana.com/grafana/plugins/grafana-sentry-datasource/

License: Apache License 2.0

JavaScript 0.68% Go 38.50% TypeScript 60.63% SCSS 0.19%

sentry-datasource's Introduction

Sentry data source plugin with Grafana

The Sentry data source plugin allows you to query and visualize Sentry data within Grafana.

Requirements

The Sentry data source has the following requirements:

  • Grafana user with a server or organization administration role; refer to Permissions.
  • An active Sentry account
  • In Sentry, The Admin, Manager, or Owner role is required to get an internal integration token

Known limitations

With the Grafana Sentry data source plugin, you are able to visualize issues or usage statistics within an organization. For more information, see Issues and Org Stats.

Install the Sentry data source plugin

To install the Sentry data source plugin in your Grafana instance, refer to Installation.

Get an authentication token from Sentry

To configure the Sentry data source plugin within Grafana, get an internal integration token from Sentry:

  1. Go to https://sentry.io.
  2. Navigate to Organization Settings, and then to Developer Settings.
  3. Select New Internal Integration.
  4. Use a valid name such as Grafana.
  5. Go to PERMISSIONS, provide Read permissions to the required resources such as "Project", "Issue and Event", and "Organization".
  6. Copy the token, and then use this token when configuring the data source within Grafana.

Note: In Sentry, The Admin, Manager, or Owner role is required to get an internal integration token

Configure the data source in Grafana

Add a data source by filling in the following fields:

Field name Description
Sentry URL Sentry URL to be used. If left blank, the default is https://sentry.io.
Sentry Org Sentry Org slug. Typically this is in the URL, such as https://sentry.io/organizations/{organization_slug}/.
Sentry Auth Token Sentry Auth token. You can generate this from https://sentry.io/settings/{organization_slug}/developer-settings/) using the steps specified in the previous section.

Configure the data source via provisioning

You can configure data sources to use Grafana’s provisioning system. For more information about how provisioning works, and all of the settings that you can set for data sources, see Provisioning Grafana.

Here is an example for provisioning this data source:

apiVersion: 1
datasources:
  - name: Sentry
    type: grafana-sentry-datasource
    access: proxy
    orgId: 1
    version: 1
    editable: false
    jsonData:
      url: https://sentry.io
      orgSlug: xxxxxxxxxxxxx
    secureJsonData:
      authToken: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Query the data source

The query editor allows you to query Sentry, get sentry issues and stats and display them in Grafana dashboard panels. You can choose one of the following query types, to get the relevant data.

Sentry issues

To get the list of Sentry issues, select Sentry Issues as the query type. Issues are filtered based on Grafana’s selected time range.

Field Description
Query Type Choose Issues as query type.
Projects (optional) Select one or more projects to filter the results.
Environments (optional) Select one or more environments to filter the results.
Query (optional) Enter your sentry query to get the relevant results.
Sort By (optional) Select the order of results you want to display.
Limit (optional) Limit the number of results displayed.

Sentry Org stats

To get the trend of Sentry Org stats, select Stats as the query type. Org stats are filtered based on Grafana’s selected time range.

Field Description
Query Type Choose Stats as query type.
Field Select the field type you want to trend. Currently, you must choose either sum(quantity) or sum(times_seen).
Category Filter Select the category you want to filter the results. You must to choose one the available option there.
Group By (optional) Select one or more fields you want to group the results.
Projects (optional) Select one or more projects to filter the results.
Outcome Filter (optional) Select one of more outcomes to filter the results.
Reason Filter (optional) Enter comma separated list of reasons you want to filter.

Templates and variables

In Grafana dashboards, you can use Sentry entities as dashboard variables. Sentry data source supports following variables:

Variable name Description
Projects Lists the Sentry projects. The project name is used as the display value, and each project ID is used as an actual value.
Environments Lists the Sentry environments for the selected projects. If you do not select a project, all of the applicable environments are listed.

Annotations

Annotations give you the ability to overlay Sentry issues on graphs. In the annotations editor, you have to choose Issues for creating annotations from Sentry issues.

Get the most out of the plugin

sentry-datasource's People

Contributors

joey-grafana avatar yesoreyeram avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.