From 3f5e2eb95431cb8bb0ec0804d0572a3e0d657798 Mon Sep 17 00:00:00 2001 From: Lauri Nevala Date: Wed, 30 Sep 2020 08:44:41 +0300 Subject: [PATCH] Rename as PrometheusStacklight Signed-off-by: Lauri Nevala --- src/common/prometheus-providers.ts | 4 ++-- src/main/prometheus/{decc.ts => stacklight.ts} | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/main/prometheus/{decc.ts => stacklight.ts} (97%) diff --git a/src/common/prometheus-providers.ts b/src/common/prometheus-providers.ts index 7114cb5319..2c6e6fac8e 100644 --- a/src/common/prometheus-providers.ts +++ b/src/common/prometheus-providers.ts @@ -1,10 +1,10 @@ import { PrometheusLens } from "../main/prometheus/lens"; import { PrometheusHelm } from "../main/prometheus/helm"; 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"; -[PrometheusLens, PrometheusHelm, PrometheusOperator, PrometheusDECC].forEach(providerClass => { +[PrometheusLens, PrometheusHelm, PrometheusOperator, PrometheusStacklight].forEach(providerClass => { const provider = new providerClass() PrometheusProviderRegistry.registerProvider(provider.id, provider) }); diff --git a/src/main/prometheus/decc.ts b/src/main/prometheus/stacklight.ts similarity index 97% rename from src/main/prometheus/decc.ts rename to src/main/prometheus/stacklight.ts index aedbe58ffb..4cb946c81d 100644 --- a/src/main/prometheus/decc.ts +++ b/src/main/prometheus/stacklight.ts @@ -2,9 +2,9 @@ import { PrometheusProvider, PrometheusQueryOpts, PrometheusQuery, PrometheusSer import { CoreV1Api } from "@kubernetes/client-node"; import logger from "../logger" -export class PrometheusDECC implements PrometheusProvider { - id = "decc" - name = "Docker Enterprise Container Cloud" +export class PrometheusStacklight implements PrometheusProvider { + id = "stacklight" + name = "Stacklight" rateAccuracy = "1m" public async getPrometheusService(client: CoreV1Api): Promise {