Skip to content

feat(argus): default disable resources #444

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

Merged
merged 7 commits into from
Jan 21, 2025

Conversation

rohitphataklm
Copy link
Contributor

@rohitphataklm rohitphataklm commented Jan 17, 2025

  • Resources for disabled monitoring will be the same as mentioned in Default filtering.
  • Default disabled resources

  • Monitoring modes:
    • Introduce options to set Minimal, Advanced monitoring options in helm chart.
    • Minimal monitoring will have limited number of resources enabled in monitoring.
    • Advanced monitoring will enable all resources to be monitored
  • Disable Pods created by Jobs:
    • Pods created by Jobs / Cronjobs will be disabled by default
    • This will be under a flag disableBatchedPods, user can enable these Pods if required by toggling the flag
  • Default lm-container chart configuration
    • Default monitoring mode will be Advanced set in the lm-container helm chart. Hence during an upgrade of lm-container from older version, it will preserve the configuration set by user.
    • disableBatchedPods will be set to true by default in helm chart. This will ignore the pods created by Jobs / Cronjobs by default.

@@ -44,6 +44,10 @@ logicmonitor.com/provider: lm-container

{{- define "monitoring.disable" }}
{{ $alwaysDisable := list }}
{{- if eq .Values.monitoringMode "Minimal" }}
{{ $alwaysDisable = list "resourcequotas" "limitranges" "roles" "rolebindings" "networkpolicies" "configmaps" "clusterrolebindings" "clusterroles" "priorityclasses" "storageclasses" "cronjobs" "jobs" "endpoints" "ingresses" "secrets" "serviceaccounts" }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can include "poddisruptionbudgets" , "customresourcedefinitions" as well in always disable list for minimal monitoring

lmshubhashri
lmshubhashri previously approved these changes Jan 20, 2025
@rohitphataklm rohitphataklm merged commit 8421dd4 into main Jan 21, 2025
11 checks passed
@rohitphataklm rohitphataklm deleted the DEV-185586-default-filtering branch January 21, 2025 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants