| Tim Windelschmidt | 6d33a43 | 2025-02-04 14:34:25 +0100 | [diff] [blame^] | 1 | // Copyright The Monogon Project Authors. |
| 2 | // SPDX-License-Identifier: Apache-2.0 |
| 3 | |
| Jan Schär | 75ea9f4 | 2024-07-29 17:01:41 +0200 | [diff] [blame] | 4 | package proxy |
| 5 | |
| 6 | // Taken and modified from CoreDNS, under Apache 2.0. |
| 7 | |
| 8 | import ( |
| 9 | "github.com/prometheus/client_golang/prometheus" |
| 10 | |
| 11 | "source.monogon.dev/osbase/net/dns" |
| 12 | ) |
| 13 | |
| 14 | // Variables declared for monitoring. |
| 15 | var ( |
| 16 | healthcheckFailureCount = dns.MetricsFactory.NewCounterVec(prometheus.CounterOpts{ |
| 17 | Namespace: "dnsserver", |
| 18 | Subsystem: "forward", |
| 19 | Name: "healthcheck_failures_total", |
| 20 | Help: "Counter of the number of failed healthchecks.", |
| 21 | }, []string{"to"}) |
| 22 | ) |