Note: This core plugin was extracted from the grafana/grafana repository and is now developed and released from this repository.
Prometheus is an open-source time series database and alerting system. The Prometheus data source plugin lets Grafana query, visualize, and alert on metrics stored in Prometheus or any Prometheus-compatible backend (for example Grafana Mimir, Cortex, Thanos).
This repository hosts:
- The plugin frontend — published to npm as
@grafana/prometheusand consumed by Grafana core until the plugin is removed from the monorepo. - The plugin backend — the
promlibGo library underpkg/promlib, consumed by Grafana core via ago.modreplace until the plugin is removed from the monorepo. - The standalone plugin binary built from
pkg/main.goandpkg/datasource.go, distributed through the Grafana plugin catalog.
- Grafana 12.3.0 or later (see
dependencies.grafanaDependencyinsrc/plugin.json).
For Grafana versions where Prometheus is still bundled as a core data source, no installation is required.
For detailed setup instructions, see the Prometheus data source documentation.
Please report bugs and feature requests at grafana/grafana-prometheus-datasource/issues.
Follow the
Grafana plugin development guide
for local development. Run mage -v to build the backend and
npm run dev (or npm run build) for the frontend.
This plugin is licensed under the AGPL-3.0.