Add SMART monitoring

Note that we can not gather SMART infos from the host within
VMs
See https://www.smartmontools.org/wiki/FAQ
and more particularly the
DosmartctlandsmartdrunonavirtualmachineguestOS
sub-entry

Change-Id: Idee7d48e45a5a388061d196d1e07c55404780085
This commit is contained in:
Olivier Bourdon 2016-08-24 13:17:55 +02:00 committed by Olivier Bourdon
parent 7b9a836eb6
commit 0e7c59917e
4 changed files with 12 additions and 3 deletions

View File

@ -1,7 +1,7 @@
FROM {{ namespace }}/base-tools:{{ tag }}
MAINTAINER {{ maintainer }}
# install Go and Snap
# Install Snap
ADD install.sh /tmp/
RUN mkdir -p /etc/snap/auto \
&& bash /tmp/install.sh /etc/snap/auto \

View File

@ -8,16 +8,20 @@
"workflow": {
"collect": {
"config": {
"/intel/procfs": {
"/intel": {
"proc_path": "/host-proc"
},
"/intel/disk": {
"dev_path": "/host-dev"
}
},
"tags": {
"/intel/procfs": {
"/intel": {
"hostname": "{{ CCP_SNAP_NODE_NAME }}"
}
},
"metrics": {
"/intel/disk/smart/*": {},
"/intel/procfs/cpu/*/idle_percentage": {},
"/intel/procfs/cpu/*/iowait_percentage": {},
"/intel/procfs/cpu/*/irq_percentage": {},

View File

@ -1,4 +1,5 @@
log_level: {{ snap_log_level }}
control:
plugin_load_timeout: 15
plugin_trust_level: 0
auto_discover_path: /etc/snap/auto

View File

@ -40,6 +40,10 @@ service:
type: host
path: /proc
mount-path: /host-proc
- name: dev
type: host
path: /dev
mount-path: /host-dev
env:
- name: CCP_SNAP_NODE_NAME
valueFrom: