Grafana

Interact with Grafana dashboards, alerts, and annotations

Configuration

List Dashboards

Operation
List Dashboards
Grafana URL*
https://your-grafana.com
Service Account Token*
••••••••
Organization ID
Optional - for multi-org instances
Search Query
Filter dashboards by title
Filter by Tag
tag1, tag2 (comma-separated)
List Dashboards (grafana_list_dashboards)

Search and list all dashboards

Input
ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com\)
organizationIdstringNoOrganization ID for multi-org Grafana instances
querystringNoSearch query to filter dashboards by title
tagstringNoFilter by tag (comma-separated for multiple tags)
folderIdsstringNoFilter by folder IDs (comma-separated)
starredbooleanNoOnly return starred dashboards
limitnumberNoMaximum number of dashboards to return
Output
ParameterTypeDescription
idnumberDashboard ID
uidstringDashboard UID
titlestringDashboard title
urlstringDashboard URL path
tagsarrayDashboard tags

Get Dashboard

Operation
Get Dashboard
Grafana URL*
https://your-grafana.com
Service Account Token*
••••••••
Organization ID
Optional - for multi-org instances
Dashboard UID*
Enter dashboard UID
Get Dashboard (grafana_get_dashboard)

Get a dashboard by its UID

Input
ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com\)
organizationIdstringNoOrganization ID for multi-org Grafana instances
dashboardUidstringYesThe UID of the dashboard to retrieve
Output
ParameterTypeDescription
dashboardjsonThe full dashboard JSON object

Create Dashboard

Operation
Create Dashboard
Grafana URL*
https://your-grafana.com
Service Account Token*
••••••••
Organization ID
Optional - for multi-org instances
Dashboard Title*
Enter dashboard title
Folder UID
Optional - folder to create dashboard in
Tags
tag1, tag2 (comma-separated)
Panels (JSON)
JSON array of panel configurations
Commit Message
Optional version message
Create Dashboard (grafana_create_dashboard)

Create a new dashboard

Input
ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com\)
organizationIdstringNoOrganization ID for multi-org Grafana instances
titlestringYesThe title of the new dashboard
folderUidstringNoThe UID of the folder to create the dashboard in
tagsstringNoComma-separated list of tags
timezonestringNoDashboard timezone (e.g., browser, utc)
refreshstringNoAuto-refresh interval (e.g., 5s, 1m, 5m)
panelsstringNoJSON array of panel configurations
overwritebooleanNoOverwrite existing dashboard with same title
messagestringNoCommit message for the dashboard version
Output
ParameterTypeDescription
idnumberThe numeric ID of the created dashboard
uidstringThe UID of the created dashboard
urlstringThe URL path to the dashboard
statusstringStatus of the operation (success)
versionnumberThe version number of the dashboard

Update Dashboard

Operation
Update Dashboard
Grafana URL*
https://your-grafana.com
Service Account Token*
••••••••
Organization ID
Optional - for multi-org instances
Dashboard UID*
Enter dashboard UID
Folder UID
Optional - folder to create dashboard in
Tags
tag1, tag2 (comma-separated)
Panels (JSON)
JSON array of panel configurations
Commit Message
Optional version message
Update Dashboard (grafana_update_dashboard)

Update an existing dashboard. Fetches the current dashboard and merges your changes.

Input
ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com\)
organizationIdstringNoOrganization ID for multi-org Grafana instances
dashboardUidstringYesThe UID of the dashboard to update
titlestringNoNew title for the dashboard
folderUidstringNoNew folder UID to move the dashboard to
tagsstringNoComma-separated list of new tags
timezonestringNoDashboard timezone (e.g., browser, utc)
refreshstringNoAuto-refresh interval (e.g., 5s, 1m, 5m)
panelsstringNoJSON array of panel configurations
overwritebooleanNoOverwrite even if there is a version conflict
messagestringNoCommit message for this version
Output
ParameterTypeDescription
idnumberThe numeric ID of the updated dashboard
uidstringThe UID of the updated dashboard
urlstringThe URL path to the dashboard
statusstringStatus of the operation (success)
versionnumberThe new version number of the dashboard

Delete Dashboard

Operation
Delete Dashboard
Grafana URL*
https://your-grafana.com
Service Account Token*
••••••••
Organization ID
Optional - for multi-org instances
Dashboard UID*
Enter dashboard UID
Delete Dashboard (grafana_delete_dashboard)

Delete a dashboard by its UID

Input
ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com\)
organizationIdstringNoOrganization ID for multi-org Grafana instances
dashboardUidstringYesThe UID of the dashboard to delete
Output
ParameterTypeDescription
titlestringThe title of the deleted dashboard
messagestringConfirmation message

List Alert Rules

Operation
List Alert Rules
Grafana URL*
https://your-grafana.com
Service Account Token*
••••••••
Organization ID
Optional - for multi-org instances
List Alert Rules (grafana_list_alert_rules)

List all alert rules in the Grafana instance

Input
ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com\)
organizationIdstringNoOrganization ID for multi-org Grafana instances
Output
ParameterTypeDescription
uidstringAlert rule UID
titlestringAlert rule title
conditionstringAlert condition
folderUIDstringParent folder UID
ruleGroupstringRule group name
noDataStatestringState when no data is returned

Get Alert Rule

Operation
Get Alert Rule
Grafana URL*
https://your-grafana.com
Service Account Token*
••••••••
Organization ID
Optional - for multi-org instances
Alert Rule UID*
Enter alert rule UID
Get Alert Rule (grafana_get_alert_rule)

Get a specific alert rule by its UID

Input
ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com\)
organizationIdstringNoOrganization ID for multi-org Grafana instances
alertRuleUidstringYesThe UID of the alert rule to retrieve
Output
ParameterTypeDescription
uidstringAlert rule UID
titlestringAlert rule title
conditionstringAlert condition
datajsonAlert rule query data
folderUIDstringParent folder UID
ruleGroupstringRule group name
noDataStatestringState when no data is returned
execErrStatestringState on execution error
annotationsjsonAlert annotations

Create Alert Rule

Operation
Create Alert Rule
Grafana URL*
https://your-grafana.com
Service Account Token*
••••••••
Organization ID
Optional - for multi-org instances
Folder UID
Optional - folder to create dashboard in
Alert Title
Enter alert rule name
Folder UID
Folder UID for the alert rule
Rule Group
Enter rule group name
Condition
Condition refId (e.g., A)
Query Data (JSON)
JSON array of query/expression data objects
For Duration
5m (e.g., 5m, 1h)
No Data State
Select...
Error State
Select...
Create Alert Rule (grafana_create_alert_rule)

Create a new alert rule

Input
ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com\)
organizationIdstringNoOrganization ID for multi-org Grafana instances
titlestringYesThe title of the alert rule
folderUidstringYesThe UID of the folder to create the alert in
ruleGroupstringYesThe name of the rule group
conditionstringYesThe refId of the query or expression to use as the alert condition
datastringYesJSON array of query/expression data objects
forDurationstringNoDuration to wait before firing (e.g., 5m, 1h)
noDataStatestringNoState when no data is returned (NoData, Alerting, OK)
execErrStatestringNoState on execution error (Alerting, OK)
annotationsstringNoJSON object of annotations
labelsstringNoJSON object of labels
Output
ParameterTypeDescription
uidstringThe UID of the created alert rule
titlestringAlert rule title
folderUIDstringParent folder UID

Update Alert Rule

Operation
Update Alert Rule
Grafana URL*
https://your-grafana.com
Service Account Token*
••••••••
Organization ID
Optional - for multi-org instances
Alert Rule UID*
Enter alert rule UID
Alert Title
Enter alert rule name
Folder UID
Folder UID for the alert rule
Rule Group
Enter rule group name
Condition
Condition refId (e.g., A)
Query Data (JSON)
JSON array of query/expression data objects
For Duration
5m (e.g., 5m, 1h)
No Data State
Select...
Error State
Select...
Update Alert Rule (grafana_update_alert_rule)

Update an existing alert rule. Fetches the current rule and merges your changes.

Input
ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com\)
organizationIdstringNoOrganization ID for multi-org Grafana instances
alertRuleUidstringYesThe UID of the alert rule to update
titlestringNoNew title for the alert rule
folderUidstringNoNew folder UID to move the alert to
ruleGroupstringNoNew rule group name
conditionstringNoNew condition refId
datastringNoNew JSON array of query/expression data objects
forDurationstringNoDuration to wait before firing (e.g., 5m, 1h)
noDataStatestringNoState when no data is returned (NoData, Alerting, OK)
execErrStatestringNoState on execution error (Alerting, OK)
annotationsstringNoJSON object of annotations
labelsstringNoJSON object of labels
Output
ParameterTypeDescription
uidstringThe UID of the updated alert rule
titlestringAlert rule title
folderUIDstringParent folder UID

Delete Alert Rule

Operation
Delete Alert Rule
Grafana URL*
https://your-grafana.com
Service Account Token*
••••••••
Organization ID
Optional - for multi-org instances
Alert Rule UID*
Enter alert rule UID
Delete Alert Rule (grafana_delete_alert_rule)

Delete an alert rule by its UID

Input
ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com\)
organizationIdstringNoOrganization ID for multi-org Grafana instances
alertRuleUidstringYesThe UID of the alert rule to delete
Output

Refer to the block outputs for this operation.


List Contact Points

Operation
List Contact Points
Grafana URL*
https://your-grafana.com
Service Account Token*
••••••••
Organization ID
Optional - for multi-org instances
List Contact Points (grafana_list_contact_points)

List all alert notification contact points

Input
ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com\)
organizationIdstringNoOrganization ID for multi-org Grafana instances
Output
ParameterTypeDescription
uidstringContact point UID
namestringContact point name
typestringNotification type (email, slack, etc.)

Create Annotation

Operation
Create Annotation
Grafana URL*
https://your-grafana.com
Service Account Token*
••••••••
Organization ID
Optional - for multi-org instances
Annotation Text*
Enter annotation text...
Tags
tag1, tag2 (comma-separated)
Dashboard UID*
Enter dashboard UID
Panel ID
Optional - attach to specific panel
Time (epoch ms)
Optional - defaults to now
End Time (epoch ms)
Optional - for range annotations
Create Annotation (grafana_create_annotation)

Create an annotation on a dashboard or as a global annotation

Input
ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com\)
organizationIdstringNoOrganization ID for multi-org Grafana instances
textstringYesThe text content of the annotation
tagsstringNoComma-separated list of tags
dashboardUidstringYesUID of the dashboard to add the annotation to
panelIdnumberNoID of the panel to add the annotation to
timenumberNoStart time in epoch milliseconds (defaults to now)
timeEndnumberNoEnd time in epoch milliseconds (for range annotations)
Output
ParameterTypeDescription
idnumberThe ID of the created annotation

List Annotations

Operation
List Annotations
Grafana URL*
https://your-grafana.com
Service Account Token*
••••••••
Organization ID
Optional - for multi-org instances
Tags
tag1, tag2 (comma-separated)
Dashboard UID*
Enter dashboard UID
Panel ID
Optional - attach to specific panel
From Time (epoch ms)
Filter from time
To Time (epoch ms)
Filter to time
List Annotations (grafana_list_annotations)

Query annotations by time range, dashboard, or tags

Input
ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com\)
organizationIdstringNoOrganization ID for multi-org Grafana instances
fromnumberNoStart time in epoch milliseconds
tonumberNoEnd time in epoch milliseconds
dashboardUidstringYesDashboard UID to query annotations from
panelIdnumberNoFilter by panel ID
tagsstringNoComma-separated list of tags to filter by
typestringNoFilter by type (alert or annotation)
limitnumberNoMaximum number of annotations to return
Output
ParameterTypeDescription
idnumberAnnotation ID
dashboardIdnumberDashboard ID
dashboardUIDstringDashboard UID
creatednumberCreation timestamp in epoch ms
updatednumberLast update timestamp in epoch ms
timenumberStart time in epoch ms
timeEndnumberEnd time in epoch ms
textstringAnnotation text
tagsarrayAnnotation tags
itemsstringitems output
loginstringLogin of the user who created the annotation
emailstringEmail of the user who created the annotation
avatarUrlstringAvatar URL of the user

Update Annotation

Operation
Update Annotation
Grafana URL*
https://your-grafana.com
Service Account Token*
••••••••
Organization ID
Optional - for multi-org instances
Annotation Text*
Enter annotation text...
Tags
tag1, tag2 (comma-separated)
Time (epoch ms)
Optional - defaults to now
End Time (epoch ms)
Optional - for range annotations
Annotation ID*
Enter annotation ID
Update Annotation (grafana_update_annotation)

Update an existing annotation

Input
ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com\)
organizationIdstringNoOrganization ID for multi-org Grafana instances
annotationIdnumberYesThe ID of the annotation to update
textstringYesNew text content for the annotation
tagsstringNoComma-separated list of new tags
timenumberNoNew start time in epoch milliseconds
timeEndnumberNoNew end time in epoch milliseconds
Output
ParameterTypeDescription
idnumberThe ID of the updated annotation

Delete Annotation

Operation
Delete Annotation
Grafana URL*
https://your-grafana.com
Service Account Token*
••••••••
Organization ID
Optional - for multi-org instances
Annotation ID*
Enter annotation ID
Delete Annotation (grafana_delete_annotation)

Delete an annotation by its ID

Input
ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com\)
organizationIdstringNoOrganization ID for multi-org Grafana instances
annotationIdnumberYesThe ID of the annotation to delete
Output

Refer to the block outputs for this operation.


List Data Sources

Operation
List Data Sources
Grafana URL*
https://your-grafana.com
Service Account Token*
••••••••
Organization ID
Optional - for multi-org instances
List Data Sources (grafana_list_data_sources)

List all data sources configured in Grafana

Input
ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com\)
organizationIdstringNoOrganization ID for multi-org Grafana instances
Output
ParameterTypeDescription
idnumberData source ID
uidstringData source UID
namestringData source name
typestringData source type (prometheus, mysql, etc.)
urlstringData source URL

Get Data Source

Operation
Get Data Source
Grafana URL*
https://your-grafana.com
Service Account Token*
••••••••
Organization ID
Optional - for multi-org instances
Data Source ID*
Enter data source ID or UID
Get Data Source (grafana_get_data_source)

Get a data source by its ID or UID

Input
ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com\)
organizationIdstringNoOrganization ID for multi-org Grafana instances
dataSourceIdstringYesThe ID or UID of the data source to retrieve
Output
ParameterTypeDescription
idnumberData source ID
uidstringData source UID
namestringData source name
typestringData source type
urlstringData source connection URL
databasestringDatabase name (if applicable)
isDefaultbooleanWhether this is the default data source

List Folders

Operation
List Folders
Grafana URL*
https://your-grafana.com
Service Account Token*
••••••••
Organization ID
Optional - for multi-org instances
List Folders (grafana_list_folders)

List all folders in Grafana

Input
ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com\)
organizationIdstringNoOrganization ID for multi-org Grafana instances
limitnumberNoMaximum number of folders to return
pagenumberNoPage number for pagination
Output
ParameterTypeDescription
idnumberFolder ID
uidstringFolder UID
titlestringFolder title
hasAclbooleanWhether the folder has custom ACL permissions
canSavebooleanWhether the current user can save the folder
canEditbooleanWhether the current user can edit the folder
canAdminbooleanWhether the current user has admin rights
canDeletebooleanWhether the current user can delete the folder
createdBystringUsername of who created the folder
createdstringTimestamp when the folder was created
updatedBystringUsername of who last updated the folder
updatedstringTimestamp when the folder was last updated

Create Folder

Operation
Create Folder
Grafana URL*
https://your-grafana.com
Service Account Token*
••••••••
Organization ID
Optional - for multi-org instances
Folder Title*
Enter folder title
Folder UID
Optional - auto-generated if not provided
Create Folder (grafana_create_folder)

Create a new folder in Grafana

Input
ParameterTypeRequiredDescription
apiKeystringYesGrafana Service Account Token
baseUrlstringYesGrafana instance URL (e.g., https://your-grafana.com\)
organizationIdstringNoOrganization ID for multi-org Grafana instances
titlestringYesThe title of the new folder
uidstringNoOptional UID for the folder (auto-generated if not provided)
Output
ParameterTypeDescription
idnumberThe numeric ID of the created folder
uidstringThe UID of the created folder
titlestringThe title of the created folder
urlstringThe URL path to the folder
hasAclbooleanWhether the folder has custom ACL permissions
canSavebooleanWhether the current user can save the folder
canEditbooleanWhether the current user can edit the folder
canAdminbooleanWhether the current user has admin rights on the folder
canDeletebooleanWhether the current user can delete the folder
createdBystringUsername of who created the folder
createdstringTimestamp when the folder was created
updatedBystringUsername of who last updated the folder
updatedstringTimestamp when the folder was last updated

Usage Instructions

Integrate Grafana into workflows. Manage dashboards, alerts, annotations, data sources, folders, and monitor health status.

Notes

  • Category: tools
  • Type: grafana