Skip to content

Commit b7c2ddc

Browse files
author
Herve Rousseau
committed
prometheus: removing duplicate metric
1 parent 57f0fd1 commit b7c2ddc

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

dnscrypt-proxy/monitoring_ui.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -482,10 +482,6 @@ func (mc *MetricsCollector) generatePrometheusMetrics() string {
482482
result.WriteString("# TYPE dnscrypt_proxy_queries_total counter\n")
483483
result.WriteString(fmt.Sprintf("dnscrypt_proxy_queries_total %d\n", totalQueries))
484484

485-
result.WriteString("# HELP dnscrypt_proxy_queries_total Total number of DNS queries processed\n")
486-
result.WriteString("# TYPE dnscrypt_proxy_queries_total counter\n")
487-
result.WriteString(fmt.Sprintf("dnscrypt_proxy_queries_total %d\n", totalQueries))
488-
489485
result.WriteString("# HELP dnscrypt_proxy_queries_per_second Current queries per second rate\n")
490486
result.WriteString("# TYPE dnscrypt_proxy_queries_per_second gauge\n")
491487
result.WriteString(fmt.Sprintf("dnscrypt_proxy_queries_per_second %.2f\n", queriesPerSecond))

0 commit comments

Comments
 (0)