Skip to content

Commit

Permalink
Merge pull request microservices-demo#35 from microservices-demo/rena…
Browse files Browse the repository at this point in the history
…me-metrics

Rename HTTP metrics
  • Loading branch information
jpellizzari authored Apr 27, 2018
2 parents b64b8af + aba2710 commit 3c33dbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ after_success:
- set -e;
- if [ -z "$DOCKER_PASS" ] ; then echo "This is a build triggered by an external PR.
Skipping docker push."; exit 0; fi;
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS;
- docker login -u $DOCKER_USER -p $DOCKER_PASS;
- "./scripts/push.sh"
- $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci
notifications:
Expand Down
4 changes: 2 additions & 2 deletions wiring.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (

var (
HTTPLatency = prometheus.NewHistogramVec(prometheus.HistogramOpts{
Name: "request_duration_seconds",
Name: "http_request_duration_seconds",
Help: "Time (in seconds) spent serving HTTP requests.",
Buckets: prometheus.DefBuckets,
}, []string{"method", "route", "status_code", "isWS"})
}, []string{"method", "path", "status_code", "isWS"})
)

func init() {
Expand Down

0 comments on commit 3c33dbf

Please sign in to comment.