Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling self-monitoring in demo scenarios #114

Merged
merged 2 commits into from Feb 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion inspectit-oce-demo/agentconfig/api-gateway/config.yml
@@ -1,2 +1,9 @@
# See https://github.com/inspectIT/inspectit-oce/blob/0.1.M1/inspectit-oce-core/src/main/resources/config/default.yml
# for all the configuration options.
# for all the configuration options.
inspectit:
self-monitoring:
enabled: true
metrics:
# root setting for the polling frequency of all metrics
# when a metrics has no frequency defined separately, this frequency will be used
frequency: 1s
9 changes: 8 additions & 1 deletion inspectit-oce-demo/agentconfig/config-server/config.yml
@@ -1,2 +1,9 @@
# See https://github.com/inspectIT/inspectit-oce/blob/0.1.M1/inspectit-oce-core/src/main/resources/config/default.yml
# for all the configuration options.
# for all the configuration options.
inspectit:
self-monitoring:
enabled: true
metrics:
# root setting for the polling frequency of all metrics
# when a metrics has no frequency defined separately, this frequency will be used
frequency: 1s
32 changes: 31 additions & 1 deletion inspectit-oce-demo/agentconfig/customers-service/config.yml
@@ -1,2 +1,32 @@
# See https://github.com/inspectIT/inspectit-oce/blob/0.1.M1/inspectit-oce-core/src/main/resources/config/default.yml
# for all the configuration options.
# for all the configuration options.
inspectit:
self-monitoring:
enabled: true
metrics:
# root setting for the polling frequency of all metrics
# when a metrics has no frequency defined separately, this frequency will be used
frequency: 1s
# # play with the following settings to demonstrate self monitoring of class re-transformation / instrumentation
# instrumentation:
AlexanderWert marked this conversation as resolved.
Show resolved Hide resolved
# # settings for special sensors
# special:
# # enables or disables the instrumentation to ensure context propagation across java.util.concurrent.Executor instances
# executor-context-propagation: true
# # enables or disables the instrumentation to ensure context propagation across java.lang.Thread instances
# thread-start-context-propagation: true
# # settings for fine-tuning the instrumentation process
# internal:
# # the time to pause between executing batches of class instrumentation updates
# inter-batch-delay: 1s
# # defines how many classes are checked at once for updates of their configuration
# class-configuration-check-batch-size: 100
# # defines the maximum number of classes which are retransformed at once per batch
# class-retransform-batch-size: 10
#
# # defines how often the agent should check if new classes have been defined.
# # this check is only performed if Classloader.defineClass was called less than ${max-class-definition-delay} seconds ago
# new-class-discovery-interval: 10s
# # defines how often after the last invocation of a ClassFileTransformer the agent scans for new classes
# num-class-discovery-trials: 2
# # general settings regarding metrics capturing
9 changes: 8 additions & 1 deletion inspectit-oce-demo/agentconfig/discovery-server/config.yml
@@ -1,2 +1,9 @@
# See https://github.com/inspectIT/inspectit-oce/blob/0.1.M1/inspectit-oce-core/src/main/resources/config/default.yml
# for all the configuration options.
# for all the configuration options.
inspectit:
self-monitoring:
enabled: true
metrics:
# root setting for the polling frequency of all metrics
# when a metrics has no frequency defined separately, this frequency will be used
frequency: 1s
9 changes: 8 additions & 1 deletion inspectit-oce-demo/agentconfig/vets-service/config.yml
@@ -1,2 +1,9 @@
# See https://github.com/inspectIT/inspectit-oce/blob/0.1.M1/inspectit-oce-core/src/main/resources/config/default.yml
# for all the configuration options.
# for all the configuration options.
inspectit:
self-monitoring:
enabled: true
metrics:
# root setting for the polling frequency of all metrics
# when a metrics has no frequency defined separately, this frequency will be used
frequency: 1s
9 changes: 8 additions & 1 deletion inspectit-oce-demo/agentconfig/visits-service/config.yml
@@ -1,2 +1,9 @@
# See https://github.com/inspectIT/inspectit-oce/blob/0.1.M1/inspectit-oce-core/src/main/resources/config/default.yml
# for all the configuration options.
# for all the configuration options.
inspectit:
self-monitoring:
enabled: true
metrics:
# root setting for the polling frequency of all metrics
# when a metrics has no frequency defined separately, this frequency will be used
frequency: 1s
12 changes: 6 additions & 6 deletions inspectit-oce-demo/docker-compose-elastic.yml
Expand Up @@ -40,7 +40,7 @@ services:
- agent
- config-server
entrypoint: ["sh", "-c","
./dockerize -wait=tcp://config-server:8888 -timeout=60s -- &&
./dockerize -wait=tcp://config-server:8888 -timeout=120s -- &&
java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Djava.security.egd=file:/dev/./urandom
-javaagent:/agent/inspectit-oce-agent.jar
-jar /app.jar"]
Expand All @@ -64,7 +64,7 @@ services:
- config-server
- discovery-server
entrypoint: ["sh", "-c","
./dockerize -wait=tcp://discovery-server:8761 -timeout=60s -- &&
./dockerize -wait=tcp://discovery-server:8761 -timeout=120s -- &&
java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Djava.security.egd=file:/dev/./urandom
-javaagent:/agent/inspectit-oce-agent.jar
-jar /app.jar"]
Expand All @@ -88,7 +88,7 @@ services:
- config-server
- discovery-server
entrypoint: ["sh", "-c","
./dockerize -wait=tcp://discovery-server:8761 -timeout=60s -- &&
./dockerize -wait=tcp://discovery-server:8761 -timeout=120s -- &&
java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Djava.security.egd=file:/dev/./urandom
-javaagent:/agent/inspectit-oce-agent.jar
-jar /app.jar"]
Expand All @@ -112,7 +112,7 @@ services:
- config-server
- discovery-server
entrypoint: ["sh", "-c","
./dockerize -wait=tcp://discovery-server:8761 -timeout=60s -- &&
./dockerize -wait=tcp://discovery-server:8761 -timeout=120s -- &&
java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Djava.security.egd=file:/dev/./urandom
-javaagent:/agent/inspectit-oce-agent.jar
-jar /app.jar"]
Expand All @@ -136,7 +136,7 @@ services:
- config-server
- discovery-server
entrypoint: ["sh", "-c","
./dockerize -wait=tcp://discovery-server:8761 -timeout=60s -- &&
./dockerize -wait=tcp://discovery-server:8761 -timeout=120s -- &&
java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Djava.security.egd=file:/dev/./urandom
-javaagent:/agent/inspectit-oce-agent.jar
-jar /app.jar"]
Expand All @@ -162,7 +162,7 @@ services:


telegraf:
image: telegraf
image: telegraf:1.9.4
container_name: telegraf
volumes:
- ./telegraf/telegraf-elastic.conf:/etc/telegraf/telegraf.conf:ro
Expand Down
14 changes: 7 additions & 7 deletions inspectit-oce-demo/docker-compose-influxdb.yml
Expand Up @@ -40,7 +40,7 @@ services:
- agent
- config-server
entrypoint: ["sh", "-c","
./dockerize -wait=tcp://config-server:8888 -timeout=60s -- &&
./dockerize -wait=tcp://config-server:8888 -timeout=120s -- &&
java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Djava.security.egd=file:/dev/./urandom
-javaagent:/agent/inspectit-oce-agent.jar
-jar /app.jar"]
Expand All @@ -64,7 +64,7 @@ services:
- config-server
- discovery-server
entrypoint: ["sh", "-c","
./dockerize -wait=tcp://discovery-server:8761 -timeout=60s -- &&
./dockerize -wait=tcp://discovery-server:8761 -timeout=120s -- &&
java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Djava.security.egd=file:/dev/./urandom
-javaagent:/agent/inspectit-oce-agent.jar
-jar /app.jar"]
Expand All @@ -88,7 +88,7 @@ services:
- config-server
- discovery-server
entrypoint: ["sh", "-c","
./dockerize -wait=tcp://discovery-server:8761 -timeout=60s -- &&
./dockerize -wait=tcp://discovery-server:8761 -timeout=120s -- &&
java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Djava.security.egd=file:/dev/./urandom
-javaagent:/agent/inspectit-oce-agent.jar
-jar /app.jar"]
Expand All @@ -112,7 +112,7 @@ services:
- config-server
- discovery-server
entrypoint: ["sh", "-c","
./dockerize -wait=tcp://discovery-server:8761 -timeout=60s -- &&
./dockerize -wait=tcp://discovery-server:8761 -timeout=120s -- &&
java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Djava.security.egd=file:/dev/./urandom
-javaagent:/agent/inspectit-oce-agent.jar
-jar /app.jar"]
Expand All @@ -136,7 +136,7 @@ services:
- config-server
- discovery-server
entrypoint: ["sh", "-c","
./dockerize -wait=tcp://discovery-server:8761 -timeout=60s -- &&
./dockerize -wait=tcp://discovery-server:8761 -timeout=120s -- &&
java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Djava.security.egd=file:/dev/./urandom
-javaagent:/agent/inspectit-oce-agent.jar
-jar /app.jar"]
Expand All @@ -148,7 +148,7 @@ services:
- 9094:9094

influxdb:
image: influxdb
image: influxdb:1.7.1
container_name: influxdb
environment:
- INFLUXDB_HTTP_FLUX_ENABLED=true
Expand All @@ -159,7 +159,7 @@ services:
- 8086:8086

telegraf:
image: telegraf
image: telegraf:1.9.4
container_name: telegraf
volumes:
- ./telegraf/telegraf-influx.conf:/etc/telegraf/telegraf.conf:ro
Expand Down
12 changes: 6 additions & 6 deletions inspectit-oce-demo/docker-compose-prometheus.yml
Expand Up @@ -40,7 +40,7 @@ services:
- agent
- config-server
entrypoint: ["sh", "-c","
./dockerize -wait=tcp://config-server:8888 -timeout=60s -- &&
./dockerize -wait=tcp://config-server:8888 -timeout=120s -- &&
java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Djava.security.egd=file:/dev/./urandom
-javaagent:/agent/inspectit-oce-agent.jar
-jar /app.jar"]
Expand All @@ -64,7 +64,7 @@ services:
- config-server
- discovery-server
entrypoint: ["sh", "-c","
./dockerize -wait=tcp://discovery-server:8761 -timeout=60s -- &&
./dockerize -wait=tcp://discovery-server:8761 -timeout=120s -- &&
java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Djava.security.egd=file:/dev/./urandom
-javaagent:/agent/inspectit-oce-agent.jar
-jar /app.jar"]
Expand All @@ -88,7 +88,7 @@ services:
- config-server
- discovery-server
entrypoint: ["sh", "-c","
./dockerize -wait=tcp://discovery-server:8761 -timeout=60s -- &&
./dockerize -wait=tcp://discovery-server:8761 -timeout=120s -- &&
java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Djava.security.egd=file:/dev/./urandom
-javaagent:/agent/inspectit-oce-agent.jar
-jar /app.jar"]
Expand All @@ -112,7 +112,7 @@ services:
- config-server
- discovery-server
entrypoint: ["sh", "-c","
./dockerize -wait=tcp://discovery-server:8761 -timeout=60s -- &&
./dockerize -wait=tcp://discovery-server:8761 -timeout=120s -- &&
java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Djava.security.egd=file:/dev/./urandom
-javaagent:/agent/inspectit-oce-agent.jar
-jar /app.jar"]
Expand All @@ -136,7 +136,7 @@ services:
- config-server
- discovery-server
entrypoint: ["sh", "-c","
./dockerize -wait=tcp://discovery-server:8761 -timeout=60s -- &&
./dockerize -wait=tcp://discovery-server:8761 -timeout=120s -- &&
java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Djava.security.egd=file:/dev/./urandom
-javaagent:/agent/inspectit-oce-agent.jar
-jar /app.jar"]
Expand All @@ -148,7 +148,7 @@ services:
- 9094:9094

prometheus:
image: prom/prometheus
image: prom/prometheus:v2.7.1
container_name: prometheus
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
Expand Down