Skip to content

Commit

Permalink
Add total prefix to counter and use prometheus/log
Browse files Browse the repository at this point in the history
  • Loading branch information
discordianfish committed Jun 1, 2015
1 parent 1018d05 commit 874a000
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nginx_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import (
"flag"
"fmt"
"io/ioutil"
"log"
"net/http"
"strconv"
"strings"
"sync"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/log"
)

const (
Expand Down Expand Up @@ -43,12 +43,12 @@ func NewExporter(uri string) *Exporter {
URI: uri,
scrapeFailures: prometheus.NewCounter(prometheus.CounterOpts{
Namespace: namespace,
Name: "exporter_scrape_failures",
Name: "exporter_scrape_failures_total",
Help: "Number of errors while scraping nginx.",
}),
processedConnections: prometheus.NewCounterVec(prometheus.CounterOpts{
Namespace: namespace,
Name: "connections_processed",
Name: "connections_processed_total",
Help: "Number of connections processed by nginx",
},
[]string{"stage"},
Expand Down

0 comments on commit 874a000

Please sign in to comment.