Skip to content

Commit

Permalink
Initial metricbeat setup (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
mw-ding authored Jun 22, 2018
1 parent 3a79c37 commit 6638850
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
1 change: 0 additions & 1 deletion backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ dependencies {
compile "ch.qos.logback:logback-classic:$logbackVersion"
compile "ch.qos.logback:logback-core:$logbackVersion"
compile "ch.qos.logback:logback-access:$logbackVersion"
compile "org.slf4j:slf4j-api:$slf4jVersion"

compile "com.google.protobuf:protobuf-java-util:$protocVersion"
compile "org.eclipse.jgit:org.eclipse.jgit:$jgitVersion"
Expand Down
18 changes: 18 additions & 0 deletions config/beats/config/metricbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
metricbeat.modules:
- module: system
metricsets:
- cpu
- filesystem
- memory
- network
- process
enabled: true
period: 10s
processes: ['.*']
cpu_ticks: false

output.elasticsearch:
hosts: [ "docker.for.mac.localhost:9201" ]

setup.kibana:
host: "docker.for.mac.localhost:5601"
13 changes: 13 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,17 @@ services:
LS_JAVA_OPTS: "-Xmx256m -Xms256m"
depends_on:
- elasticsearch
restart: on-failure

metricbeat:
image: 'elastic/metricbeat:6.3.0'
volumes:
- ./config/beats/config/metricbeat.yml:/usr/share/metricbeat/metricbeat.yml
- /proc:/hostfs/proc:ro
- /sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro
- /:/hostfs:ro
command:
- "-system.hostfs=/hostfs"
depends_on:
- elasticsearch
restart: on-failure
2 changes: 1 addition & 1 deletion kibana-extra/castro/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ task bootstrap(type: YarnTask, dependsOn: [yarn]) {
}

task startKibana(type: YarnTask, dependsOn: [yarn, generateProto]) {
args = ['start', '--elasticsearch.url', 'http://localhost:9201']
args = ['start', '--elasticsearch.url', 'http://localhost:9201', '--no-base-path']
}

task downloadKibana(type: Download) {
Expand Down

0 comments on commit 6638850

Please sign in to comment.