1
0
Fork 0
mirror of https://github.com/kyverno/policy-reporter.git synced 2024-12-14 11:57:32 +00:00
Monitoring and Observability Tool for the PolicyReport CRD with an optional UI.
Find a file
2021-02-20 01:31:59 +01:00
charts/policy-reporter init 2021-02-20 00:58:01 +01:00
cmd init 2021-02-20 00:58:01 +01:00
docs/images update readme 2021-02-20 01:16:18 +01:00
pkg init 2021-02-20 00:58:01 +01:00
.dockerignore update readme 2021-02-20 01:31:59 +01:00
.gitignore init 2021-02-20 00:58:01 +01:00
config.example.yaml init 2021-02-20 00:58:01 +01:00
Dockerfile init 2021-02-20 00:58:01 +01:00
go.mod init 2021-02-20 00:58:01 +01:00
go.sum init 2021-02-20 00:58:01 +01:00
LICENSE.md init 2021-02-20 00:58:01 +01:00
main.go init 2021-02-20 00:58:01 +01:00
Makefile init 2021-02-20 00:58:01 +01:00
README.md update readme 2021-02-20 01:31:59 +01:00

PolicyReporter

PolicyReporter is a simple tool to watch for PolicyReports in your cluster.

It uses this resources to create Prometheus Metrics from it. It also provides a configuration to push rule validation results to Grafana Loki.

Installation with Helm v3

Clone the repository and use the following command:

git clone https://github.com/fjogeleit/policy-reporter.git

cd policy-reporter

helm install policy-reporter ./charts/policy-reporter --set loki=http://lokihost:3100 -n policy-reporter --create-namespace

You can also customize the ./charts/policy-reporter/values.yaml to change the default configurations.

Configure policyPriorities

By default kyverno PolicyReports has no priority or severity for policies. So every passed rule validation will be processed as notice, a failed validation is processed as error. To customize this you can configure a mapping from policies to fail priorities. So you can send them as warnings instead of errors.

# values.yaml
# policyPriorities example diff

policyPriorities:
    check-label-app: warning

Example Outputs

Grafana Loki

Prometheus Metrics