Skip to content

Commit

Permalink
remove unused healthcheck metrics
Browse files Browse the repository at this point in the history
Signed-off-by: Ondřej Benkovský <ondrej.benkovsky@jamf.com>
  • Loading branch information
Ondřej Benkovský committed Aug 23, 2021
1 parent 6d49839 commit 2e9b0f4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ If monitoring is enabled (via the *prometheus* plugin) then the following metric
* `coredns_fanout_request_duration_seconds{to}` - duration per upstream interaction.
* `coredns_fanout_request_count_total{to}` - query count per upstream.
* `coredns_fanout_response_rcode_count_total{to, rcode}` - count of RCODEs per upstream.
* `coredns_fanout_healthcheck_failure_count_total{to}` - number of failed health checks per upstream.
* `coredns_fanout_healthcheck_broken_count_total{}` - counter of when all upstreams are unhealthy,
and we are randomly (this always uses the `random` policy) spraying to an upstream.

Where `to` is one of the upstream servers (**TO** from the config), `rcode` is the returned RCODE
from the upstream.
Expand Down
12 changes: 0 additions & 12 deletions metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,4 @@ var (
Buckets: plugin.TimeBuckets,
Help: "Histogram of the time each request took.",
}, []string{"to"})
HealthcheckFailureCount = promauto.NewCounterVec(prometheus.CounterOpts{
Namespace: plugin.Namespace,
Subsystem: "fanout",
Name: "healthcheck_failure_count_total",
Help: "Counter of the number of failed healthchecks.",
}, []string{"to"})
HealthcheckBrokenCount = promauto.NewCounter(prometheus.CounterOpts{
Namespace: plugin.Namespace,
Subsystem: "fanout",
Name: "healthcheck_broken_count_total",
Help: "Counter of the number of complete failures of the healthchecks.",
})
)

0 comments on commit 2e9b0f4

Please sign in to comment.