This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global: | |
scrape_interval: 5s # By default, scrape targets every 15 seconds. | |
evaluation_interval: 5s # By default, scrape targets every 15 seconds. | |
# scrape_timeout is set to the global default (10s). | |
# Attach these labels to any time series or alerts when communicating with | |
# external systems (federation, remote storage, Alertmanager). | |
external_labels: | |
monitor: 'MyApplication' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cron": [ | |
{ | |
"runnable": { | |
"target": "com.learning.monitoring.client.config.ScheduledTasks.sendNotifications" | |
}, | |
"expression": "0 0/10 * * * ?" | |
} | |
], | |
"fixedDelay": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"activeProfiles": [], | |
"name": "systemProperties", | |
"properties": { | |
"sun.boot.library.path": { | |
"value": "C:\\ProgramFiles\\Java\\jdk1.8.0_201\\jre\\bin" | |
}, | |
"java.vm.version": { | |
"value": "25.201-b09" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_links": { | |
"self": { | |
"href": "http://localhost:8080/actuator", | |
"templated": false | |
}, | |
"beans": { | |
"href": "http://localhost:8080/actuator/beans", | |
"templated": false | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "http.server.requests", | |
"description": null, | |
"baseUnit": "seconds", | |
"measurements": [ | |
{ | |
"statistic": "COUNT", | |
"value": 13.0 | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RestController | |
@RequestMapping("/users") | |
public class UserController { | |
@Autowired UserService userService; | |
@PostMapping(value = "/save", consumes = "application/json", produces = "application/json") | |
public ResponseEntity<User> save(@RequestBody User user) { | |
user = userService.save(user); | |
return new ResponseEntity<>(user, HttpStatus.OK); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "http.server.requests", | |
"description": null, | |
"baseUnit": "seconds", | |
"measurements": [ | |
{ | |
"statistic": "COUNT", | |
"value": 1.0 | |
}, | |
{ |