Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #35 from microservices-demo/rename-metrics
Browse files Browse the repository at this point in the history
Rename HTTP metrics
  • Loading branch information
jpellizzari authored Apr 27, 2018
2 parents 1c6d09f + ab01998 commit f676ca1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
10 changes: 1 addition & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,10 @@ env:
script:
- set -e
- travis_wait ./scripts/build.sh;
- ./test/test.sh unit.py
- ./test/test.sh component.py
- ./test/test.sh container.py --tag $TAG

after_success:
- set -e;
- ./test/test.sh coveralls.py
- 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
notifications:
slack:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

public class HTTPMonitoringInterceptor implements HandlerInterceptor {
static final Histogram requestLatency = Histogram.build()
.name("request_duration_seconds")
.name("http_request_duration_seconds")
.help("Request duration in seconds.")
.labelNames("service", "method", "route", "status_code")
.labelNames("service", "method", "path", "status_code")
.register();

private static final String startTimeKey = "startTime";
Expand Down

0 comments on commit f676ca1

Please sign in to comment.