2f8b4527c94740af6ec8defae2ad57f10ca44087
[demo.git] / vnfs / DAaaS / collectd-helm / templates / configmap.yaml
1 {{/*
2 # Copyright 2018 Intel Corporation, Inc
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 */}}
16
17 apiVersion: v1
18 kind: ConfigMap
19 metadata:
20   name: {{ template "fullname" . }}-config
21   labels:
22     app: {{ template "name" . }}
23     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
24     release: {{ .Release.Name }}
25 data:
26   node-collectd.conf: |-
27     FQDNLookup false
28     
29     LoadPlugin cpu
30     LoadPlugin memory
31     LoadPlugin cpufreq
32     LoadPlugin disk
33     LoadPlugin ethstat
34     LoadPlugin ipc
35     LoadPlugin ipmi
36     LoadPlugin load
37     LoadPlugin numa
38     LoadPlugin processes
39     LoadPlugin df
40     LoadPlugin turbostat
41     LoadPlugin uptime
42     LoadPlugin contextswitch
43     LoadPlugin irq
44     LoadPlugin df
45     LoadPlugin swap
46     LoadPlugin write_prometheus
47
48     LoadPlugin logfile
49     <Plugin logfile>
50       LogLevel info
51       File "/var/log/collectd.log"
52       Timestamp true
53       PrintSeverity false
54     </Plugin>
55     <Plugin "cpu">
56       Interval 5
57       ReportByState false
58       ReportByCpu false
59     </Plugin>
60
61     <Plugin "memory">
62       Interval 30
63       ValuesAbsolute false
64       ValuesPercentage true
65     </Plugin>
66
67     <Plugin "write_prometheus">
68      Port "{{ .Values.prometheus_port }}"
69     </Plugin>
70
71     #Last line (collectd requires ā€˜\nā€™ at the last line)