This file contains hidden or 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
| docker-compose -f <path/to/kafkaDockerCompose.yml> up |
This file contains hidden or 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
| @Testcontainers | |
| @SpringBootTest(properties = {"spring.main.allow-bean-definition-overriding=true"}) | |
| class ToxiproxyMongoApplicationTests { | |
| @Autowired | |
| private PersonRepository personRepository; | |
| private static final Network network = Network.newNetwork(); | |
| private static final DockerImageName dockerImageName = DockerImageName.parse("mongo:5.0.5") |
This file contains hidden or 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
| package com.happypanda.custommetrics; | |
| import com.sun.management.OperatingSystemMXBean; | |
| import org.springframework.stereotype.Service; | |
| import java.lang.management.ManagementFactory; | |
| @Service | |
| public class CpuMetricsService { |
This file contains hidden or 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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: debugger | |
| labels: | |
| app: debugger | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: |