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

Configure Log Level and K8S scrape interval for violations #15

Open
patst opened this issue Oct 14, 2022 · 0 comments
Open

Configure Log Level and K8S scrape interval for violations #15

patst opened this issue Oct 14, 2022 · 0 comments

Comments

@patst
Copy link

patst commented Oct 14, 2022

Hey there,

first: thanks for this great project, we use it in an Azure Kubernetes Service cluster to provide our customers a Grafana dashboard for their policy violations.

One thing we observed: It generates quite a lot of logs. In a dev cluster we have 3.000.000 lines per day for the different policies.
We created a ServiceMonitor to scrape the /metrics endpoint every 5 minutes. Nevertheless the app is querying the K8S API Server for violations every 10 seconds (and logs it to stdout).

We can update the start command to send the output for /dev/null but it would be great to have a configuration about the

  • K8S API scrape interval
  • and / or log level of the generated messages

wdyt?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant