View a markdown version of this page

Reading from Grafana entities - AWS Glue

Reading from Grafana entities

Prerequisites

A Grafana object you want to read from. For the available entities, see the following supported entities table.

Supported entities for source

EntityCan be filteredSupports limitSupports select *Supports order bySupports partitioning
access-control-rolesNoYesYesNoNo
annotationsNoYesYesNoNo
dashboard-snapshotsNoYesYesNoNo
dashboardsYesYesYesNoNo
dashboards-tagsNoYesYesNoNo
datasourcesNoYesYesNoNo
foldersNoYesYesNoNo
org-usersNoYesYesNoNo
playlistsNoYesYesNoNo
provisioning-alert-rulesNoYesYesNoNo
provisioning-contact-pointsYesYesYesNoNo
provisioning-mute-timingsNoYesYesNoNo
provisioning-notification-templatesNoYesYesNoNo
team-membersNoYesYesNoNo
teams-searchNoYesYesNoNo

The team-members entity is scoped to a parent team. To read it, set ENTITY_NAME to team-members/teamId, for example team-members/1. You can also use the id column of the teams-search entity.

Example – Reading from a Grafana entity

The following example reads from the access-control-roles entity. Replace connectionName with the name of your Grafana connection:

read_df = glueContext.create_dynamic_frame.from_options( connection_type="grafana", connection_options={ "connectionName": "connectionName", "ENTITY_NAME": "access-control-roles" } )