From 8770d122564a700913b7a8738f9a185a0d48b6b8 Mon Sep 17 00:00:00 2001 From: blam Date: Fri, 22 Sep 2023 16:20:13 +0200 Subject: [PATCH] chore: added deprecated notice Signed-off-by: blam --- plugins/catalog-backend/src/database/metrics.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/catalog-backend/src/database/metrics.ts b/plugins/catalog-backend/src/database/metrics.ts index 58ad91f93b..55bfa66b86 100644 --- a/plugins/catalog-backend/src/database/metrics.ts +++ b/plugins/catalog-backend/src/database/metrics.ts @@ -26,7 +26,7 @@ export function initDatabaseMetrics(knex: Knex) { return { entities_count_prom: createGaugeMetric({ name: 'catalog_entities_count', - help: 'Total amount of entities in the catalog', + help: 'Total amount of entities in the catalog. DEPRECATED: Please use opentelemetry metrics instead.', labelNames: ['kind'], async collect() { const result = await knex('refresh_state').select( @@ -52,7 +52,7 @@ export function initDatabaseMetrics(knex: Knex) { }), registered_locations_prom: createGaugeMetric({ name: 'catalog_registered_locations_count', - help: 'Total amount of registered locations in the catalog', + help: 'Total amount of registered locations in the catalog. DEPRECATED: Please use opentelemetry metrics instead.', async collect() { const total = await knex('locations').count({ count: '*', @@ -62,7 +62,7 @@ export function initDatabaseMetrics(knex: Knex) { }), relations_prom: createGaugeMetric({ name: 'catalog_relations_count', - help: 'Total amount of relations between entities', + help: 'Total amount of relations between entities. DEPRECATED: Please use opentelemetry metrics instead.', async collect() { const total = await knex('relations').count({ count: '*',