Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
peekjef72 committed Sep 17, 2023
1 parent 9f8c3c2 commit ea240b4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nrpe_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func (c *Collector) Collect(ch chan<- prometheus.Metric) {

if err != nil {
ch <- prometheus.MustNewConstMetric(
prometheus.NewDesc("nrpe_up", "Indicates whether or not nrpe agent is ip", nil, nil),
prometheus.NewDesc("nrpe_up", "Indicates whether or not nrpe agent is up", nil, nil),
prometheus.GaugeValue,
0,
)
Expand All @@ -222,7 +222,7 @@ func (c *Collector) Collect(ch chan<- prometheus.Metric) {
if conn == (net.Conn)(nil) || err != nil {
level.Error(c.logger).Log("msg", "Error dialing NRPE server", "err", err)
ch <- prometheus.MustNewConstMetric(
prometheus.NewDesc("nrpe_up", "Indicates whether or not nrpe agent is ip", nil, nil),
prometheus.NewDesc("nrpe_up", "Indicates whether or not nrpe agent is up", nil, nil),
prometheus.GaugeValue,
0,
)
Expand Down Expand Up @@ -621,8 +621,6 @@ func main() {
flag.AddFlags(kingpin.CommandLine, &logConfig)
kingpin.Version(version.Print("nrpe_exporter")).VersionFlag.Short('V')
kingpin.HelpFlag.Short('h')
fl := kingpin.CommandLine.GetFlag("web.telemetry-path")
fl.Hidden()
kingpin.Parse()

logger := promlog.New(&logConfig)
Expand Down

0 comments on commit ea240b4

Please sign in to comment.