Restart callCount after each fetch
This commit is contained in:
parent
1a3654e5b2
commit
844bfe83d2
|
@ -15,9 +15,12 @@ class DataController {
|
|||
return ret;
|
||||
}
|
||||
|
||||
@GetMapping("/metrics")
|
||||
@GetMapping(value = "/metrics", produces = "text/plain")
|
||||
String metrics() {
|
||||
return "# HELP calls_count Total number of calls\n# TYPE calls_count counter\ncalls_count " + callsCount;
|
||||
String returnMessage = "# HELP calls_count Total number of calls\n# TYPE calls_count counter\ncalls_count "
|
||||
+ callsCount + "\n";
|
||||
callsCount = 0;
|
||||
return returnMessage;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue