browbeat/browbeat-containers/collectd-openstack/Dockerfile
Sanjay Chari 56c8cb8a97 Add Virt Collectd plugin
This patch adds the virt collectd plugin to Browbeat.
The plugin monitors CPU, disk, network and memory resources on VMs
on compute nodes through information provided by the hypervisor, so
performance of the VMs is not majorly affected by the plugin.

Change-Id: I617cb3c29ae417c87d6b2c2652610ff0e8bcd4b1
2023-01-06 12:39:13 +05:30

40 lines
1.8 KiB
Docker

FROM quay.io/centos/centos:stream8
RUN dnf clean all && \
dnf group install -y "Development Tools" --nobest && \
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
dnf install -y centos-release-opstools && \
dnf install -y collectd collectd-turbostat collectd-disk collectd-apache collectd-ceph \
collectd-mysql collectd-python collectd-ping collectd-virt python3-sqlalchemy-collectd && \
dnf install -y sysstat && \
dnf install -y python3-pip python3-devel && \
pip3 install --upgrade pip && \
pip3 install pyrabbit && \
dnf install -y libdbi-dbd-mysql collectd-dbi && \
dnf install -y centos-release-openstack-ussuri && \
dnf config-manager --set-enabled powertools && \
dnf install -y openvswitch libibverbs && \
dnf install -y passwd && \
dnf install -y ceph-common && \
dnf install -y sudo
RUN useradd stack
RUN echo stack | passwd stack --stdin
RUN echo "stack ALL=(root) NOPASSWD:ALL" | tee -a /etc/sudoers.d/stack
RUN chmod 0440 /etc/sudoers.d/stack
RUN rm /etc/collectd.d/virt.conf
ADD files/collectd_ceph_storage.py /usr/local/bin/collectd_ceph_storage.py
ADD files/collectd_gnocchi_status.py /usr/local/bin/collectd_gnocchi_status.py
ADD files/collectd_rabbitmq_monitoring.py /usr/local/bin/collectd_rabbitmq_monitoring.py
ADD files/collectd_swift_stat.py /usr/local/bin/collectd_swift_stat.py
ADD files/collectd_pacemaker_monitoring.py /usr/local/bin/collectd_pacemaker_monitoring.py
ADD files/collectd_iostat_python.py /usr/local/bin/collectd_iostat_python.py
ADD files/collectd_ovn_raft_monitoring.py /usr/local/bin/collectd_ovn_raft_monitoring.py
ADD files/ovs_flows.sh /usr/local/bin/ovs_flows.sh
ADD files/ovn_monitoring.sh /usr/local/bin/ovn_monitoring.sh
ADD config/collectd.conf /etc/collectd.conf
CMD ["collectd", "-f"]