MCPcopy Index your code
hub / github.com/K-Phoen/backstage-plugin-grafana

github.com/K-Phoen/backstage-plugin-grafana @v0.1.22

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.22 ↗ · + Follow
54 symbols 105 edges 21 files 0 documented · 0% updated 1y ago★ 6121 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Grafana plugin for Backstage

The Grafana plugin is a frontend plugin that lists Grafana alerts and dashboards. It includes two components that can be integrated into Backstage:

  • The EntityGrafanaDashboardsCard component which can display dashboards for a specific entity
  • The EntityGrafanaAlertsCard component which can display recent alerts for a specific entity
  • The EntityOverviewDashboardViewer component which can embed an "overview" dashboard for a specific entity
  • The DashboardViewer component which can embed any dashboard

Setup

Find installation instructions in our documentation.

How does it look?

Entity alerts card:

Alerts card

Entity dashboards card:

Dashboards card

License

This library is under the Apache 2.0 license.

Extension points exported contracts — how you extend this code

GrafanaApi (Interface)
(no doc) [4 implementers]
src/api.ts
Config (Interface)
(no doc)
config.d.ts
Dashboard (Interface)
(no doc)
src/types.ts
AlertRuleGroupConfig (Interface)
(no doc)
src/api.ts
Alert (Interface)
(no doc)
src/types.ts
GrafanaAlert (Interface)
(no doc)
src/api.ts
UnifiedGrafanaAlert (Interface)
(no doc)
src/api.ts
AlertRule (Interface)
(no doc)
src/api.ts

Core symbols most depended-on inside this repo

evaluate
called by 18
src/query/QueryEvaluator.ts
parse
called by 6
src/query/QueryEvaluator.ts
listDashboards
called by 3
src/api.ts
fullyQualifiedDashboardURLs
called by 2
src/api.ts
isDashboardSelectorAvailable
called by 2
src/components/grafanaData.ts
dashboardSelectorFromEntity
called by 2
src/components/grafanaData.ts
alertsForSelector
called by 1
src/api.ts
isSingleWord
called by 1
src/api.ts

Shape

Method 21
Function 17
Class 8
Interface 8

Languages

TypeScript100%

Modules by API surface

src/api.ts28 symbols
src/query/QueryEvaluator.ts8 symbols
src/components/grafanaData.ts6 symbols
src/components/AlertsCard/AlertsCard.tsx4 symbols
src/components/DashboardsCard/DashboardsCard.tsx3 symbols
src/types.ts2 symbols
src/components/DashboardViewer/DashboardViewer.tsx2 symbols
config.d.ts1 symbols

For agents

$ claude mcp add backstage-plugin-grafana \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page