mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Rename as PrometheusStacklight
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
91803c7dbc
commit
3f5e2eb954
@ -1,10 +1,10 @@
|
|||||||
import { PrometheusLens } from "../main/prometheus/lens";
|
import { PrometheusLens } from "../main/prometheus/lens";
|
||||||
import { PrometheusHelm } from "../main/prometheus/helm";
|
import { PrometheusHelm } from "../main/prometheus/helm";
|
||||||
import { PrometheusOperator } from "../main/prometheus/operator";
|
import { PrometheusOperator } from "../main/prometheus/operator";
|
||||||
import { PrometheusDECC } from "../main/prometheus/decc";
|
import { PrometheusStacklight } from "../main/prometheus/stacklight";
|
||||||
import { PrometheusProviderRegistry } from "../main/prometheus/provider-registry";
|
import { PrometheusProviderRegistry } from "../main/prometheus/provider-registry";
|
||||||
|
|
||||||
[PrometheusLens, PrometheusHelm, PrometheusOperator, PrometheusDECC].forEach(providerClass => {
|
[PrometheusLens, PrometheusHelm, PrometheusOperator, PrometheusStacklight].forEach(providerClass => {
|
||||||
const provider = new providerClass()
|
const provider = new providerClass()
|
||||||
PrometheusProviderRegistry.registerProvider(provider.id, provider)
|
PrometheusProviderRegistry.registerProvider(provider.id, provider)
|
||||||
});
|
});
|
||||||
|
|||||||
@ -2,9 +2,9 @@ import { PrometheusProvider, PrometheusQueryOpts, PrometheusQuery, PrometheusSer
|
|||||||
import { CoreV1Api } from "@kubernetes/client-node";
|
import { CoreV1Api } from "@kubernetes/client-node";
|
||||||
import logger from "../logger"
|
import logger from "../logger"
|
||||||
|
|
||||||
export class PrometheusDECC implements PrometheusProvider {
|
export class PrometheusStacklight implements PrometheusProvider {
|
||||||
id = "decc"
|
id = "stacklight"
|
||||||
name = "Docker Enterprise Container Cloud"
|
name = "Stacklight"
|
||||||
rateAccuracy = "1m"
|
rateAccuracy = "1m"
|
||||||
|
|
||||||
public async getPrometheusService(client: CoreV1Api): Promise<PrometheusService> {
|
public async getPrometheusService(client: CoreV1Api): Promise<PrometheusService> {
|
||||||
Loading…
Reference in New Issue
Block a user