I am trying to run metricbeat on openshift using docker file:
#Docker file:
FROM docker-secure-com/metricbeat/metricbeat:latest
COPY metricbeat.yml /etc/metricbeat/config/metricbeat.yml
COPY metricbeat.yml /etc/metricbeat/metricbeat.yml
My pod is running. But I have 2 question:
1> how to test if metric beat is running/test?
2> I run command metric beat by login to pod which gives error as
sh-4.2$ metricbeat
2020-07-27 18:56:28.900410413 +0000 UTC m=+0.078453796 write error: failed to make directories for new file: mkdir /var/log/metricbeat: permission denied
2020-07-27 18:56:28.900509181 +0000 UTC m=+0.078552564 write error: failed to make directories for new file: mkdir /var/log/metricbeat: per
You can find details how to run metricbeat in the docker runtime here: https://www.elastic.co/guide/en/beats/metricbeat/current/running-on-docker.html
Regarding testing... hm, I believe you can watch the metricbeat process output for ERROR and produced log lines (to see if it's not dead), but it requires a bit of scripting.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.