storage and refactoring

This commit is contained in:
2020-07-29 16:33:01 +02:00
parent da8863fd2e
commit 5ff76fc1e9
7 changed files with 5 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
# vim:set ft=dockerfile:
FROM debian:buster-slim
RUN set -ex; \
apt-get update; \
apt-get install -y --no-install-recommends \
prometheus-mysqld-exporter; \
apt-get clean -y; \
rm -rf /var/lib/apt/lists/*;
RUN set -ex; \
echo '[client]\nhost=localhost\nuser=prometheus\npassword=prom01\n' >/etc/prometheus-mysql-exporter
EXPOSE 9104
CMD ["prometheus-mysqld-exporter", "--config.my-cnf", "/etc/prometheus-mysql-exporter"]