Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. @RestController
  2. public class HelloController {
  3.  
  4. @Autowired
  5. private CounterService counterService;
  6.  
  7. @RequestMapping("/hello")
  8. public String sayHello(@RequestParam("name") String name) {
  9. counterService.increment("counter.calls.hello");
  10. return "Hello, " + name;
  11. }
  12. }
  13.  
  14. ...
  15. gauge.response.hello: 5,
  16. gauge.response.metrics: 69,
  17. gauge.response.star-star.favicon.ico: 2,
  18. counter.status.200.star-star.favicon.ico: 4,
  19. counter.status.200.metrics: 1,
  20. counter.calls.hello: 5,
  21. counter.status.200.hello: 5
  22.  
  23. ...
  24. gauge.servo.counter.calls.hello: 1,
  25. normalized.servo.rest.totaltime: 0,
  26. normalized.servo.rest.count: 0,
  27. gauge.servo.rest.min: 0,
  28. gauge.servo.rest.max: 0,
  29. gauge.servo.response.hello: 7,
  30. gauge.servo.response.star-star.favicon.ico: 2,
  31.  
  32. ...
  33. counter.calls.hello(): 3,
  34. response.hello(): 7,
  35. response.metrics(): 9,
  36. response.star-star.favicon.ico(): 2,
  37.  
  38. "counter.status.200.root": 20
  39. "counter.status.400.root": 3
  40.  
  41. "root(method=GET,status=200,statistic=count)": 20
  42. "root(method=GET,status=400,statistic=count)": 3
  43.  
  44. spring.metrics.servo.enabled=false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement