]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph-mixin: fix ceph-mixin setup
authorArun Kumar Mohan <amohan@redhat.com>
Sun, 2 Apr 2023 02:28:16 +0000 (07:58 +0530)
committerArun Kumar Mohan <amohan@redhat.com>
Thu, 28 Mar 2024 08:19:49 +0000 (13:49 +0530)
commit211dfeb6ecb0c5d1f8764c2ad5315765bc7d785f
treec177094960254d7bab9f42142305a08ddc30d08b
parent5df3435b30085cc9abc1eb282ab0f20651c8a39a
ceph-mixin: fix ceph-mixin setup

Made following changes to files,

Makefile:
    Add needed 'tox' target to generate alert files
    Now we can do 'make generate' OR 'make test'
    to generate all the yaml files (and run tests)

alerts.jsonnet:
    Added an 'import' line to include 'config.libsonnet' file.
    This fix the errors in generating 'prometheus_alerts.yml' file

tox.ini:
    Added all the existing 'alerts-' targets to 'envlist'
    Added the missing 'alerts-test' target to 'testenv'
    Added 'jsonnet' to 'allowlist_externals', which prevents a
    deprecation waring
    A minor spell correction

lint-jsonnet.sh:
    Made errors more verbose.

Signed-off-by: Arun Kumar Mohan <amohan@redhat.com>
(cherry picked from commit 86d040e2fcf44585f113d94622b275ca5c2b6c76)
monitoring/ceph-mixin/Makefile
monitoring/ceph-mixin/alerts.jsonnet
monitoring/ceph-mixin/lint-jsonnet.sh
monitoring/ceph-mixin/tox.ini