]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix broken alert generator 53653/head
authorNizamudeen A <nia@redhat.com>
Mon, 25 Sep 2023 13:28:06 +0000 (18:58 +0530)
committerNizamudeen A <nia@redhat.com>
Fri, 13 Oct 2023 07:12:50 +0000 (12:42 +0530)
Currently the alert generator is broken if you try to run `tox
-ealerts-fix`. I fixed it and ran the command and it built a new json
file as well.

Signed-off-by: Nizamudeen A <nia@redhat.com>
monitoring/ceph-mixin/README.md
monitoring/ceph-mixin/alerts.jsonnet
monitoring/ceph-mixin/jsonnetfile.lock.json
monitoring/ceph-mixin/prometheus_alerts.libsonnet

index 4772021939ef7736def6ebbf0be88d34204c0d59..f34d67f92a056c10788314760cfe3eadae3167f6 100644 (file)
@@ -73,4 +73,10 @@ The jsonnet code located in this directory depends on some Jsonnet third party
 libraries. To update those libraries you can run `jb update` and then update
 the generated files using `tox -egrafonnet-fix`.
 
+### Building alerts from `prometheus_alerts.libsonnet`
+
+To rebuild the `prometheus_alerts.yml` file from the corresponding libsonnet,
+you can run `tox -ealerts-fix`.
+
+
 ##### Any upgrade or downgrade to different major versions of the recommended tools mentioned above is not supported.
index ab7907c76fd1298b714923440a7491db0f322cf5..13e70179f14d4c09462a45ed8441d050848f84dd 100644 (file)
@@ -1 +1 @@
-std.manifestYamlDoc(((import 'config.libsonnet') + (import 'alerts.libsonnet')).prometheusAlerts, indent_array_in_object=true, quote_keys=false)
+std.manifestYamlDoc((import 'mixin.libsonnet').prometheusAlerts, indent_array_in_object=true, quote_keys=false)
index 3c9d38d935ce69793a14c6dd8d69b7424464e3b0..480438230f39ab116426a511bbebb2a94d19f195 100644 (file)
@@ -8,7 +8,7 @@
           "subdir": "grafonnet"
         }
       },
-      "version": "30280196507e0fe6fa978a3e0eaca3a62844f817",
+      "version": "a1d61cce1da59c71409b99b5c7568511fec661ea",
       "sum": "342u++/7rViR/zj2jeJOjshzglkZ1SY+hFNuyCBFMdc="
     }
   ],
index a7c994ba9b6ace3f3f32218785d8f98c95f8152b..b90573be6c01c362e2987d6b098ab9d0708c156a 100644 (file)
           annotations: {
             documentation: 'https://docs.ceph.com/en/latest/rados/operations/health-checks#device-health-toomany',
             summary: 'Too many devices are predicted to fail, unable to resolve%(cluster)s' % $.MultiClusterSummary(),
-            description: 'The device health module has determined that devices predicted to fail can not be remediated automatically, since too many OSDs would be removed from the cluster to ensure performance and availabililty. Prevent data integrity issues by adding new OSDs so that data may be relocated.',
+            description: 'The device health module has determined that devices predicted to fail can not be remediated automatically, since too many OSDs would be removed from the cluster to ensure performance and availability. Prevent data integrity issues by adding new OSDs so that data may be relocated.',
           },
         },
         {