-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Dockerfile for Metricbeat to test cgroups #2492
Dockerfile for Metricbeat to test cgroups #2492
Conversation
#-------------------------- Elasticsearch output ------------------------------ | ||
output.elasticsearch: | ||
# Array of hosts to connect to. | ||
hosts: ["localhost:9200"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is probably not going to work as elasticsearch is not running on localhost but elasticsearch
. The environment variables should be used ehre.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The elasticsearch is set in the command for running metricbeat in the Dockerfile-5.0.0-cgroups.
015ea61
to
641c8c3
Compare
enabled: true | ||
period: 10s | ||
processes: ['.*'] | ||
cgroups: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to use the default configuration file and specify this option on the CLI using -E metricbeat.modules.0.cgroups=true
. This was recently fixed by #2521.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Thanks @urso for such a fast fix.
0f2f64d
to
2e01905
Compare
@@ -10,6 +10,10 @@ stop: | |||
${BASE_COMMAND} stop | |||
${BASE_COMMAND} rm -f | |||
|
|||
|
|||
up: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend also to run the build command before running up, to make sure you always have the most recent environment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are right. I am adding build before.
run make up ENV=5.0.0-cgroups.yml
4e839a5
to
ddfcc1a
Compare
I addressed all comments, and it's ready for another review. |
Add a Dockerfile for Metricbeat to test cgroups functionality.
You need to run the following commands to start a container with Kibana, one with Elasticsearch and one with Metricbeat:
To stop all the containers, you can use: