Revision 56208
Added by Alessia Bardi almost 5 years ago
PrometheusEndpoint.java | ||
---|---|---|
23 | 23 |
@Autowired |
24 | 24 |
private PrometheusMeterRegistry registry; |
25 | 25 |
|
26 |
@RequestMapping(method = RequestMethod.GET) |
|
26 |
@RequestMapping(method = RequestMethod.GET, produces = "text/plain;charset=UTF-8")
|
|
27 | 27 |
@ResponseBody |
28 | 28 |
public String getStudents() { |
29 | 29 |
log.info("/prometheus [GET]"); |
Also available in: Unified diff
working with metrics for prometheus