The Kubernetes CodeNotary vcn Overview dashboard can be imported into Grafana by copy-paste the provided dashboard.json or by getting it from the Grafana Dashboards website.
You can find detailed Grafana importing instructions here.
Once the provided Grafana dashboard has been imported, you can edit the Status Count panel:
Then select the Alert tab and click on the Create Alert button:
Finally, customize your alert as shown in the following example:
The Status Count pannel comes with four queries that you can use within alert conditions:
- Query A count of Trusted images
- Query B count of Unknown images
- Query C count of Unsupported images
- Query D count of Untrusted images