grafana/packages/grafana-prometheus
Andreas Christou c9778c3332
AzureMonitor: Prometheus exemplars support (#87742)
* Update types

* Mark datasource as supporting traces

* Add logic to transform exemplar query to traces query

* Render appropriate editor

* Run trace query for exemplars

* Refactor out common functions

- Add function to retrieve first/default subscription

* Add route for trace exemplars

* Update logic to appropriately query exemplars

* Update traces query builder

* Update instance test

* Remove unneeded import

* Set traces pseudo data source

* Replace deprecated function calls

* Add helper for setting default traces query

* Don't show resource field for exemplars query

* When resetting operation ID for exemplars set query to default

- Update tests

* Update query header to appropriately set the service value

* Fix response frame creation and update tests

* Correctly select resource

* Convert subscriptionsApiVersion to const

* Add feature toggle
2024-06-06 17:53:17 +01:00
..
src AzureMonitor: Prometheus exemplars support (#87742) 2024-06-06 17:53:17 +01: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 Update dependency eslint-plugin-jsdoc to v48.2.8 2024-06-06 10:22:39 +00: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 Prometheus: Create Prometheus library (#81641) 2024-02-02 15:30:14 +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