1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00
kyverno/pkg/policy
shuting 3bf3dcc1af
Add the metric "kyverno_client_queries_total" (#4359)
* Add metric "kyverno_kube_client_queries_total"

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* publish metric for missing queries

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* Refactor the way Kyverno registers QPS metric

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* Move clientsets to a dedicated folder

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* Wrap Kyverno client and policyreport client to register client query metric

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* address linter comments

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* address linter comments

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* Switch to use wrapper clients

Signed-off-by: ShutingZhao <shuting@nirmata.com>

Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: Vyankatesh Kudtarkar <vyankateshkd@gmail.com>
2022-08-31 11:33:47 +05:30
..
common chore: enable gofmt and gofumpt linters (#3931) 2022-05-17 06:19:03 +00:00
generate Add the metric "kyverno_client_queries_total" (#4359) 2022-08-31 11:33:47 +05:30
mutate chore: make kyverno api import aliases consistent (#3939) 2022-05-17 13:12:43 +02:00
validate Yaml signing and verification (#4235) 2022-08-30 10:14:54 -07:00
actions.go Add the metric "kyverno_client_queries_total" (#4359) 2022-08-31 11:33:47 +05:30
allowed_vars_test.go skip var checks in attestations (#3876) 2022-05-11 09:31:48 +00:00
apply.go Add the metric "kyverno_client_queries_total" (#4359) 2022-08-31 11:33:47 +05:30
background.go chore: make kyverno api import aliases consistent (#3939) 2022-05-17 13:12:43 +02:00
background_test.go redo variable validation (#2647) 2021-11-03 11:16:55 -07:00
common.go Add the metric "kyverno_client_queries_total" (#4359) 2022-08-31 11:33:47 +05:30
existing.go feat: Opentelemetry support for metrics and traces (#3910) 2022-07-11 17:49:47 +00:00
metrics.go feat: Opentelemetry support for metrics and traces (#3910) 2022-07-11 17:49:47 +00:00
on_update_policy_test.go Load mutate.targets via dclient (#3797) 2022-05-06 05:46:36 +00:00
policy_controller.go Add the metric "kyverno_client_queries_total" (#4359) 2022-08-31 11:33:47 +05:30
report.go Add the metric "kyverno_client_queries_total" (#4359) 2022-08-31 11:33:47 +05:30
updaterequest.go Added appropriate logging levels to log.Info() calls wherever necessary (#4341) 2022-08-18 13:24:59 +00:00
utils.go chore: make kyverno api import aliases consistent (#3939) 2022-05-17 13:12:43 +02:00
utils_test.go tests: add unit tests for utils functions (#3857) 2022-05-10 13:45:48 +00:00
validate.go Add the metric "kyverno_client_queries_total" (#4359) 2022-08-31 11:33:47 +05:30
validate_test.go refactor: match and exclude conflict validation (#3454) 2022-03-23 17:04:17 +05:30