Viewing Trivy Operator Metrics in Grafana -- FULL TUTORIAL

preview_player
Показать описание
In this tutorial, we are going to show you how you can view metrics from your Trivy Operator Security Report directly in Grafana and Prometheus.

This tutorial walks you through
- Setting up the Trivy Operator Helm Chart with ServiceMonitors enabled
- Installing the kub-prometheus-stack Helm Chart to access Prometheus and Grafana
- Querying metrics through Prometheus
- Using one of the Trivy Operator Dashboard in Grafana
- Showing a theoretical diagram of how it all works together

Resources 📚

⭐Give our projects a star on GitHub⭐

⏱️Timestamp⏱️
00:00 - Intro
02:28 - Installing the kube-prometheus-stack Helm Chart
06.05 - Installing the Trivy Operator Helm Chart
08:49 - Viewing the Trivy Operator metrics on the service
10:05 - Querying metrics through PromQL in Prometheus
11:19 - Setting up the Trivy Operator Dashbaord in Grafana
13:50 - Diagram how it all works together
20:34 - Outro
Рекомендации по теме
Комментарии
Автор

I am following this tutorial, it's great. thanks

radrianm
Автор

Hi, great tutorial!
How can I also display all vulnerabilities (with CVE) for an image? (or just to filter all Critical Alerts for an image)

commanderpaladin
Автор

still works in new versions of trivy? Just tried and was unable do find the trivy in prometheus targets.

ThiagoG-fq
Автор

Hi 👋, I can see the metrics from K8s and in Grafana Dashboard but How can I check the detailed report in Trivy-operator. Is there a way to check this? because currently it just shows how many Critical/High/Medium bugs we have but not showing details like how we can check by using trivy command line.
How can I see a detailed reports in Trivy Operator?

aawaj-
Автор

I'm having issues with trivy ioperator in EKS... any ideas from anyone? auditconfig scan works. When I do kubectl get vulnerabilityresults i have no results. No matter what namespace I check. Works fine on a homelab in minikube.

andrewa
Автор

Last thing I swear -- Anyone found a better dashboard than this one? Knowing you have vulnerabilities is cool and all -- but how do i see CVE's with fixes?

andrewa