Monitoring Docker, OpenShift and Kubernetes - Version 5.11 - Support for PVC application logs
Minor update 5.11 focuses on stability improvements and adds support for PVC volumes for collecting application logs.
Collecting application logs from PVC volumes
Starting from Version 5.11, you can collect application logs from volumes with type persistentVolumeClaim
. Similarly
to our example with emptyDir
volumes, you can use persistentVolumeClaim
as the volume type.
For example:
apiVersion: v1
kind: Pod
metadata:
name: postgres-pod
annotations:
collectord.io/volume.1-logs-name: 'logs'
spec:
containers:
- name: postgres
image: postgres
command:
- docker-entrypoint.sh
args:
- postgres
- -c
- logging_collector=on
- -c
- log_min_duration_statement=0
- -c
- log_directory=/var/log/postgresql
- -c
- log_min_messages=INFO
- -c
- log_rotation_age=1d
- -c
- log_rotation_size=10MB
volumeMounts:
- name: data
mountPath: /var/lib/postgresql/data
- name: logs
mountPath: /var/log/postgresql/
volumes:
- name: data
emptyDir: {}
- name: logs
persistentVolumeClaim:
claimName: logs
Collectord will automatically discover logs stored in volume logs
mounted with persistentVolumeClaim
logs
.
In order to take advantage of this feature, please make sure to update the YAML configuration and upgrade collectord to
version 5.11.260
.
Links
You can find more information about other minor updates by following the links below.
Release notes
- Monitoring OpenShift - Release notes
- Monitoring Kubernetes - Release notes
- Monitoring Docker - Release notes