grafana/packages/grafana-prometheus
ismail simsek 7f5dde6ed3
Chore: Cleanup duplicated code in grafana-prometheus package (#89542)
* remove redundant test matchers

* use amendTable, trimTable functions from @grafana/data package

* move getMockDataSource function into the mocks.ts

* use LocalStorageValueProvider from @grafana/o11y-ds-frontend

* move all mocks under __mocks__ directory

* use store from @grafana/o11y-ds-frontend

* move test related files under test directory

* use getNextRefId from @grafana/data instead of deprecated getNextRefIdChar
See: https://github.com/grafana/grafana/pull/87460

* betterer

* remove unnecessary mockings

* import from @grafana/data

* import from @grafana/data
2024-07-03 16:21:29 +02:00
..
src Chore: Cleanup duplicated code in grafana-prometheus package (#89542) 2024-07-03 16:21:29 +02:00
CHANGELOG.md Prometheus: Library fixes for using in external vendor DS (#82115) 2024-02-16 12:55:39 -06:00
jest.config.js Chore: Add jest config to grafana-prometheus (#86078) 2024-04-12 21:17:53 +02:00
LICENSE_AGPL Prometheus: Library fixes for using in external vendor DS (#82115) 2024-02-16 12:55:39 -06:00
package.json Release: Bump version to 11.2.0-pre (#89184) 2024-06-13 15:08:07 -05:00
README.md Prometheus: Library fixes for using in external vendor DS (#82115) 2024-02-16 12:55:39 -06:00
rollup.config.ts Prometheus: Library fixes for using in external vendor DS (#82115) 2024-02-16 12:55:39 -06:00
tsconfig.build.json Chore: Remove unused functions form prometheus data source (#86461) 2024-04-19 16:00:26 -04:00
tsconfig.json React: Use new JSX transform (#88802) 2024-06-25 12:43:47 +01:00

Grafana Prometheus Library

@grafana/prometheus is currently in ALPHA.

@grafana/prometheus is a collection of components used to build a Prometheus data source plugin in Grafana.

See package source for more details.

Installation

yarn add @grafana/prometheus

npm install @grafana/prometheus