Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add detail rbacassessment,infraassessment info prometheus Metrics #1331

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Added rbacassessment_info and infraassessments_info metrics
geoffrey1330 committed Jun 28, 2023
commit 0b140aca2028dbc8b10dc5425bdc04cd1c518cb7
7 changes: 7 additions & 0 deletions docs/tutorials/integrations/metrics.md
Original file line number Diff line number Diff line change
@@ -82,6 +82,13 @@ trivy_resource_infraassessments{
} 3
```

### InfraAssessmentsInfo
Exposes details about InfraAssessments that were discovered in images, enable by setting the EnvVar: `OPERATOR_METRICS_INFRA_ASSESSMENT_INFO_ENABLED" envDefault:"false"` . For example:
```shell
trivy_infraassessments_info{
name="pod-kube-apiserver-minikube-6d4cf56db6",namespace="kube-system",infra_assessment_category="car1 category for infra assessment",infra_assessment_description="car1 description for infra assessment",infra_assessment_id="car1 Id",infra_assessment_success="true",infra_assessment_title="car1 infra assessment title",resource_kind="Pod",resource_name="kube-apiserver-minikube-6d4cf56db6",severity="Critical"
} 1
```
### ClusterComplianceReport

A report summary series exposes the count of checks of each status reported in a given `ClusterComplianceReport`. For example: