From e190db7d054dadb222599e65d6332037d1d662cb Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 6 Jan 2020 09:45:02 -0500 Subject: [PATCH] Revert "alertmanager: remove storage path option" This reverts commit f37fd9e4ce5fa86699cb8e2391f8fe8064d67c44. --- sr.ht/alertmanager/APKBUILD | 6 +++--- sr.ht/alertmanager/alertmanager.confd | 1 + sr.ht/alertmanager/alertmanager.initd | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sr.ht/alertmanager/APKBUILD b/sr.ht/alertmanager/APKBUILD index 0c8a638..eaff446 100644 --- a/sr.ht/alertmanager/APKBUILD +++ b/sr.ht/alertmanager/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Drew DeVault pkgname=alertmanager pkgver=0.19.0 -pkgrel=2 +pkgrel=1 pkgdesc="Prometheus Alertmanager" url="https://github.com/prometheus/alertmanager" arch="all" @@ -51,5 +51,5 @@ package() { } sha512sums="2c21bfbb1001e07e81b1115439ad15e7c0e7089839e56a19c445177e322b8ef9aa2b85e96478f3c3d709cbbd3a5447662a8c55da370b84aa4b6b24f83848744b alertmanager-0.19.0.tar.gz -c4cb71c0da6b991f95ffd06dc860907548f009699d7c3675d333d113ed0374e8b5dbb15a884f760797eca17969d40dee7d3c383082be33d54ac8ce97d961fe44 alertmanager.confd -3a038092875e408a4571f42d2fab89b4e83aa80102701119db99be2946529319780864f78a708adcedc6abdc72cdad8969763c81a890129bad6dd428ac188156 alertmanager.initd" +9516a5a26ecfff4b6511084df346ee66fd923522d2750ce5deb894980c7782f5175ebd83a5a401a384f6caa28c1aa436de56660538f417fa6c71d9e4397b6bf4 alertmanager.confd +68fc6733011d854d5dabbc6e646774b5c9cc78fce2a79b14ab8d4eb760fad86aac62149847ed9749198e9a46cc65e8bc5a4894c8dafe3c750e4a9fe7c81b066d alertmanager.initd" diff --git a/sr.ht/alertmanager/alertmanager.confd b/sr.ht/alertmanager/alertmanager.confd index a4d61a6..5c21c6a 100644 --- a/sr.ht/alertmanager/alertmanager.confd +++ b/sr.ht/alertmanager/alertmanager.confd @@ -1,4 +1,5 @@ alertmanager_config_file=/etc/alertmanager/alertmanager.yml +alertmanager_storage_path=/var/lib/alertmanager/data output_log=/var/log/alertmanager.log error_log=/var/log/alertmanager.log diff --git a/sr.ht/alertmanager/alertmanager.initd b/sr.ht/alertmanager/alertmanager.initd index 2e4c969..59daca7 100644 --- a/sr.ht/alertmanager/alertmanager.initd +++ b/sr.ht/alertmanager/alertmanager.initd @@ -3,7 +3,8 @@ name="alertmanager" description="alert manager for the prometheus monitoring system" supervisor=supervise-daemon command=/usr/bin/prometheus -command_args="--config.file=$alertmanager_config_file" +command_args="--config.file=$alertmanager_config_file \ + --storage.path=$alertmanager_storage_path" command_user="prometheus:prometheus" pidfile="/run/${RC_SVCNAME}.pid" -- 2.45.2