Use this image to create a simple sidecar to your service.
The promtail is configured fully by environment variables currently supported:
Additional the image will add the labels
Example kube config:
- name: server
...
volumeMounts:
- name: shared-logs
mountPath: /opt/data/log
- name: promtail-container
image: mhus/promtail-sidecar:1.0.0
env:
- name: LOG_NS
value: "reactive-test"
- name: LOG_JOB
value: "myserverjob"
- name: LOG_FILE_PATH
value: "/home/slog/server.log"
- name: LOG_URL
value: "http://loki.monitoring.svc.cluster.local:3100/api/prom/push"
volumeMounts:
- name: shared-logs
mountPath: /home/slog
volumes:
- name: shared-logs
emptyDir: {}
Content type
Image
Digest
Size
63.2 MB
Last updated
about 5 years ago
docker pull mhus/promtail-sidecar