diff options
| author | unitexe <unitexe70@gmail.com> | 2026-02-23 08:25:47 -0600 |
|---|---|---|
| committer | unitexe <unitexe70@gmail.com> | 2026-03-02 22:51:24 -0600 |
| commit | 0c027f613039db54bc87fb6de63c0ffe253cabf2 (patch) | |
| tree | d636b1e73bf82f0f25528c0d1c9887bd31b5506b /meta-unit-virtualization/recipes-containers/prometheus/files/prometheus.container | |
| parent | 69509e438d1417d25d646ff1a3ba88e27e4ed282 (diff) | |
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`.
Diffstat (limited to 'meta-unit-virtualization/recipes-containers/prometheus/files/prometheus.container')
| -rw-r--r-- | meta-unit-virtualization/recipes-containers/prometheus/files/prometheus.container | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/meta-unit-virtualization/recipes-containers/prometheus/files/prometheus.container b/meta-unit-virtualization/recipes-containers/prometheus/files/prometheus.container new file mode 100644 index 0000000..7aa2d98 --- /dev/null +++ b/meta-unit-virtualization/recipes-containers/prometheus/files/prometheus.container @@ -0,0 +1,21 @@ +[Unit] +Description=A prometheus container + +[Container] +ContainerName=prometheus +Image=docker.io/prom/prometheus:latest +Network=pasta:-T,9091:9091,-T,9882:9882,-T,9883:9883,-T,9100:9100,-T,5001:5001 +PublishPort=127.0.0.1:9090:9090 +Volume=prometheus-data:/var/lib/prometheus +Volume=%h/.config/containers/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro +Volume=/etc/prometheus/targets.d:/etc/prometheus/targets.d:ro + +[Service] +Restart=on-failure +RestartSec=10s +RestartSteps=5 +RestartMaxDelaySec=1min +TimeoutStartSec=15min + +[Install] +WantedBy=default.target |
