summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlbonn <lbonn@users.noreply.github.com>2020-05-18 15:44:40 +0200
committerGitHub <noreply@github.com>2020-05-18 15:44:40 +0200
commit23f786275e8836e7596b2fd97452962a2ccb433e (patch)
treefb15847eb94e6339d1a7174b96bcb44583a919ca
parent87111ac809aae86598ac7d013be9b572fbad8d7e (diff)
parent7b5efd6bbadff97f55fd7d8c9d7277a3f2d046a9 (diff)
downloadmeta-updater-23f786275e8836e7596b2fd97452962a2ccb433e.tar.gz
Merge pull request #725 from advancedtelematic/feat/collectd
-rw-r--r--recipes-extended/collectd/collectd_%.bbappend5
-rw-r--r--recipes-sota/aktualizr/aktualizr-collectd.bb21
-rw-r--r--recipes-sota/aktualizr/files/aktualizr-collectd.conf9
3 files changed, 35 insertions, 0 deletions
diff --git a/recipes-extended/collectd/collectd_%.bbappend b/recipes-extended/collectd/collectd_%.bbappend
new file mode 100644
index 0000000..fb3e6c4
--- /dev/null
+++ b/recipes-extended/collectd/collectd_%.bbappend
@@ -0,0 +1,5 @@
1do_install_append() {
2 printf "<Include \"${sysconfdir}/collectd.conf.d\">\nFilter \"*.conf\"\n</Include>\n" >> ${D}/${sysconfdir}/collectd.conf
3
4 install -d ${D}/${sysconfdir}/collectd.conf.d
5}
diff --git a/recipes-sota/aktualizr/aktualizr-collectd.bb b/recipes-sota/aktualizr/aktualizr-collectd.bb
new file mode 100644
index 0000000..c1fc717
--- /dev/null
+++ b/recipes-sota/aktualizr/aktualizr-collectd.bb
@@ -0,0 +1,21 @@
1SUMMARY = "Aktualizr metric collection"
2HOMEPAGE = "https://github.com/advancedtelematic/aktualizr"
3SECTION = "base"
4LICENSE = "MPL-2.0"
5LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad"
6
7RDEPENDS_${PN} = "collectd"
8
9SRC_URI = " file://aktualizr-collectd.conf"
10
11S = "${WORKDIR}"
12
13do_install() {
14 install -d ${D}${sysconfdir}/collectd.conf.d
15 install -m 0644 ${WORKDIR}/aktualizr-collectd.conf ${D}${sysconfdir}/collectd.conf.d/aktualizr.conf
16}
17
18FILES_${PN} = " \
19 ${sysconfdir}/collectd.conf.d \
20 ${sysconfdir}/collectd.conf.d/aktualizr.conf \
21 "
diff --git a/recipes-sota/aktualizr/files/aktualizr-collectd.conf b/recipes-sota/aktualizr/files/aktualizr-collectd.conf
new file mode 100644
index 0000000..35a1f61
--- /dev/null
+++ b/recipes-sota/aktualizr/files/aktualizr-collectd.conf
@@ -0,0 +1,9 @@
1<LoadPlugin processes>
2 Interval 1
3</LoadPlugin>
4<Plugin processes>
5 CollectFileDescriptor true
6 CollectContextSwitch true
7 CollectMemoryMaps true
8 Process "aktualizr"
9</Plugin>