Prometheus: Display HELP and TYPE of metrics if available (#21124)

* Prometheus: Display HELP and TYPE of metrics if available

- Prometheus recently added a metadata API around HELP and TYPE of
metrics
- request metadata when datasource instance is created
- use metadata to show help and type in typeahead suggestions and in
metrics selector as tooltip

* Fix types
This commit is contained in:
David
2019-12-17 11:06:43 +01:00
committed by GitHub
parent 7d21868931
commit 13073fa6ba
6 changed files with 70 additions and 15 deletions

View File

@@ -9,6 +9,8 @@ export interface CascaderOption {
children?: CascaderOption[];
disabled?: boolean;
// Undocumented tooltip API
title?: string;
}
export interface CascaderProps {