Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @RestController
- public class HelloController {
- @Autowired
- private CounterService counterService;
- @RequestMapping("/hello")
- public String sayHello(@RequestParam("name") String name) {
- counterService.increment("counter.calls.hello");
- return "Hello, " + name;
- }
- }
- ...
- gauge.response.hello: 5,
- gauge.response.metrics: 69,
- gauge.response.star-star.favicon.ico: 2,
- counter.status.200.star-star.favicon.ico: 4,
- counter.status.200.metrics: 1,
- counter.calls.hello: 5,
- counter.status.200.hello: 5
- ...
- gauge.servo.counter.calls.hello: 1,
- normalized.servo.rest.totaltime: 0,
- normalized.servo.rest.count: 0,
- gauge.servo.rest.min: 0,
- gauge.servo.rest.max: 0,
- gauge.servo.response.hello: 7,
- gauge.servo.response.star-star.favicon.ico: 2,
- ...
- counter.calls.hello(): 3,
- response.hello(): 7,
- response.metrics(): 9,
- response.star-star.favicon.ico(): 2,
- "counter.status.200.root": 20
- "counter.status.400.root": 3
- "root(method=GET,status=200,statistic=count)": 20
- "root(method=GET,status=400,statistic=count)": 3
- spring.metrics.servo.enabled=false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement