From 2d30405a382a984b0fd0a5ee618583c74fac8aad Mon Sep 17 00:00:00 2001 From: chad Date: Thu, 16 Feb 2023 10:24:28 -0500 Subject: [PATCH] feat: updated metric name for gauge to include published messages that are ignored (#402) --- src/index.ts | 2 +- src/metrics.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index 884d2818..ff952b6b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2022,7 +2022,7 @@ export class GossipSub extends EventEmitter implements PubSub({ - name: 'gossisub_duplicate_msg_ignored_total', - help: 'Total count of duplicate message ignored by topic', + name: 'gossisub_published_duplicate_msgs_ignored_total', + help: 'Total count of published duplicate message ignored by topic', labelNames: ['topic'] }), @@ -635,7 +635,7 @@ export function getMetrics( } }, - onIgnoreDuplicateMsg(topicStr: TopicStr): void { + onIgnorePublishedDuplicateMsg(topicStr: TopicStr): void { const topic = this.toTopic(topicStr) this.duplicateMsgIgnored.inc({ topic }, 1) },