mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Use ClusterMetadataKey.PROMETEHUS as key
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
2e568d3413
commit
c5d7d2dd3c
@ -27,7 +27,8 @@ export enum ClusterMetadataKey {
|
|||||||
CLUSTER_ID = "id",
|
CLUSTER_ID = "id",
|
||||||
DISTRIBUTION = "distribution",
|
DISTRIBUTION = "distribution",
|
||||||
NODES_COUNT = "nodes",
|
NODES_COUNT = "nodes",
|
||||||
LAST_SEEN = "lastSeen"
|
LAST_SEEN = "lastSeen",
|
||||||
|
PROMETHEUS = "prometheus"
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ClusterRefreshOptions = {
|
export type ClusterRefreshOptions = {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { LensApiRequest } from "../router"
|
import { LensApiRequest } from "../router"
|
||||||
import { LensApi } from "../lens-api"
|
import { LensApi } from "../lens-api"
|
||||||
import { Cluster } from "../cluster"
|
import { Cluster, ClusterMetadataKey } from "../cluster"
|
||||||
import _ from "lodash"
|
import _ from "lodash"
|
||||||
import { ClusterPrometheusMetadata } from "../../common/cluster-store"
|
import { ClusterPrometheusMetadata } from "../../common/cluster-store"
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ class MetricsRoute extends LensApi {
|
|||||||
prometheusMetadata["success"] = false
|
prometheusMetadata["success"] = false
|
||||||
this.respondJson(response, {})
|
this.respondJson(response, {})
|
||||||
} finally {
|
} finally {
|
||||||
cluster.metadata["prometheus"] = prometheusMetadata
|
cluster.metadata[ClusterMetadataKey.PROMETHEUS] = prometheusMetadata
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user