grafana/packages/grafana-prometheus
ismail simsek f8645f73ea
Prometheus: Improve expanding ruleIs with identifier label checking (#90336)
* define rule mapping type

* introduce a new mapping type

* add type comments

* add identifier check

* remove tests from wrong file

* add tests to the right file

* define function body

* unit tests and logic for getQueryLabelsForRuleName

* update logic of getRecordingRuleIdentifierIdx

* update logic and tests getRecordingRuleIdentifierIdx

* fix unit tests

* fix tests

* update how we return the options

* update message

* update type

* update expandRecordingRules unit tests

* remove identifier from end result

* fix unit tests once more

* remove fix action from expand rules warning

* remove generic type

* update warning text

* betterer
2024-07-18 13:17:33 +02:00
..
src Prometheus: Improve expanding ruleIs with identifier label checking (#90336) 2024-07-18 13:17:33 +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 Chore: Migrate from react-beautiful-dnd to @hello-pangea/dnd (#90328) 2024-07-12 10:23:29 +01: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