From 9c01cbfacb5fc28e425d8b740de62596b3318681 Mon Sep 17 00:00:00 2001 From: David Lyle Date: Wed, 16 Oct 2019 15:12:50 -0600 Subject: [PATCH] Proxy work around for alpine collectd Add Dockerfile for building an alpine image with collectd. Published an image to dockerhub and reference it in collectd.yaml Signed-off-by: David Lyle --- metrics/collectd/Dockerfile | 5 +++++ metrics/collectd/collectd.yaml | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 metrics/collectd/Dockerfile diff --git a/metrics/collectd/Dockerfile b/metrics/collectd/Dockerfile new file mode 100644 index 0000000..2a857bc --- /dev/null +++ b/metrics/collectd/Dockerfile @@ -0,0 +1,5 @@ +FROM alpine:latest + +RUN apk update && apk add collectd + +CMD [ "collectd", "-f" ] diff --git a/metrics/collectd/collectd.yaml b/metrics/collectd/collectd.yaml index 5947c47..fcd4a74 100644 --- a/metrics/collectd/collectd.yaml +++ b/metrics/collectd/collectd.yaml @@ -19,7 +19,7 @@ spec: terminationGracePeriodSeconds: 0 containers: - name: collectd - image: alpine:latest + image: dklyle/alpine-collectd:1.0 imagePullPolicy: IfNotPresent securityContext: # Run a priv container so we really do measure what is happening on the @@ -27,8 +27,7 @@ spec: privileged: true command: ["/bin/sh", "-c"] args: - - apk update && apk add collectd; - collectd -f; + - collectd -f; volumeMounts: - name: collectd-config-volume mountPath: /etc/collectd