From 0c027f613039db54bc87fb6de63c0ffe253cabf2 Mon Sep 17 00:00:00 2001 From: unitexe Date: Mon, 23 Feb 2026 08:25:47 -0600 Subject: Introduce meta-unit-virtualization Primary motivation for this is removing observability containers from beaglebone black because of RAM limitations. Images can now include the observability containers by adding `observability` to `IMAGE_FEATURES`. --- .../grafana-prometheus-datasource.bb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta-unit-virtualization/recipes-support/grafana-prometheus-datasource/grafana-prometheus-datasource.bb (limited to 'meta-unit-virtualization/recipes-support/grafana-prometheus-datasource/grafana-prometheus-datasource.bb') diff --git a/meta-unit-virtualization/recipes-support/grafana-prometheus-datasource/grafana-prometheus-datasource.bb b/meta-unit-virtualization/recipes-support/grafana-prometheus-datasource/grafana-prometheus-datasource.bb new file mode 100644 index 0000000..ce9fa50 --- /dev/null +++ b/meta-unit-virtualization/recipes-support/grafana-prometheus-datasource/grafana-prometheus-datasource.bb @@ -0,0 +1,15 @@ +SUMMARY = "Grafana prometheus data source drop-in" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${UNIT_VIRTUALIZATION_LAYERDIR}/LICENSE;md5=a77c12e0c0e8a14cebb1494195720ccc" + +SRC_URI = "file://datasource.yml" + +ROOTLESS_USER_NAME ?= "svc" + +S = "${UNPACKDIR}" + +do_install() { + install -D -m 0644 ${S}/datasource.yml ${D}/home/${ROOTLESS_USER_NAME}/.config/containers/grafana/provisioning/datasources/prometheus.yml +} + +FILES:${PN} = "/home/${ROOTLESS_USER_NAME}/.config/containers/grafana/provisioning/datasources/prometheus.yml" -- cgit v1.2.3