Prometheus: refactor to DataFrame (#27737)

* Add typing to prometheus response

* Refactor result_transformer to return DataFrame

* Refactor + test fixes

* Fix Prometheus data source test

* Modify heatmap function + add back tests

* Update performInstantQuery return type

* Remove duplicate code from result_transformer

* Address review comments

* Update metric labels retrival logic to be safer
This commit is contained in:
Zoltán Bedi
2020-10-01 12:58:06 +02:00
committed by GitHub
parent f97f12f69d
commit a230aa1031
8 changed files with 569 additions and 579 deletions

View File

@@ -108,7 +108,7 @@ export interface FetchErrorDataProps {
export interface FetchError<T extends FetchErrorDataProps = any> {
status: number;
statusText?: string;
data: T | string;
data: T;
cancelled?: boolean;
isHandled?: boolean;
config: BackendSrvRequest;