diff --git a/data/hostname/prado.softwareheritage.org.yaml b/data/hostname/prado.softwareheritage.org.yaml index a6df36de..f4eaacb7 100644 --- a/data/hostname/prado.softwareheritage.org.yaml +++ b/data/hostname/prado.softwareheritage.org.yaml @@ -1,9 +1,10 @@ dar::backup::exclude: - srv/softwareheritage/postgres - srv/softwareheritage/postgres-hdd icinga2::host::vars: load: high prometheus::sql::config_snippets: - swh-scheduler + - swh-storage diff --git a/site-modules/profile/files/prometheus/sql/config/swh-storage.yml b/site-modules/profile/files/prometheus/sql/config/swh-storage.yml new file mode 100644 index 00000000..ca782784 --- /dev/null +++ b/site-modules/profile/files/prometheus/sql/config/swh-storage.yml @@ -0,0 +1,11 @@ +- name: swh_archive_object_count + help: Software Heritage Archive object counters + scope: database + cluster: main + database: softwareheritage + labels: + - object_type + values: + - count + query: >- + select label as object_type, value from swh_stat_counters()