]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Wed, 9 Aug 2023 06:49:04 +0000 (12:19 +0530)
commit86d040e2fcf44585f113d94622b275ca5c2b6c76
treee6b81f4b02e6adcd4ea8b5280dbc57c8480e3a82
parent985173419bdb2cdc5600240470ffe2014ff38a0d
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>
monitoring/ceph-mixin/Makefile
monitoring/ceph-mixin/alerts.jsonnet
monitoring/ceph-mixin/lint-jsonnet.sh
monitoring/ceph-mixin/tox.ini