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

Performance / custom dashboards: new configs #243

Merged
merged 2 commits into from Feb 3, 2021

Conversation

jotak
Copy link
Contributor

@jotak jotak commented Feb 3, 2021

  • discovery_enabled (true/false/auto) to switch discovery mode
  • discovery_auto_threshold: pods threshold above which discovery is
    skipped in auto mode

Part of kiali/kiali#3660

Kiali core PR: kiali/kiali#3668

@jotak jotak self-assigned this Feb 3, 2021
@jotak jotak added this to In Review in Sprint 52 via automation Feb 3, 2021
@jotak jotak requested a review from hhovsepy February 3, 2021 08:19
# discovery_enabled: auto
# discovery_auto_threshold: 10
Copy link
Contributor

Choose a reason for hiding this comment

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

All peer settings in the operator config files are sorted alphabetically. Sort these alphabetically:

Suggested change
# discovery_enabled: auto
# discovery_auto_threshold: 10
# discovery_auto_threshold: 10
# discovery_enabled: auto

discovery_enabled: "auto"
discovery_auto_threshold: 10
Copy link
Contributor

Choose a reason for hiding this comment

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

All peer settings in the operator config files are sorted alphabetically. Sort these alphabetically:

Suggested change
discovery_enabled: "auto"
discovery_auto_threshold: 10
discovery_auto_threshold: 10
discovery_enabled: "auto"

Comment on lines 411 to 420
# discovery_enabled: Enable, disable or set 'auto' mode to the dashboards discovery process. If set to true, Kiali
# will always try to discover dashboards based on metrics. Note that it can generate performance penalties while
# discovering dashboards for workloads having many pods (thus many metrics), especially with versions of Prometheus < 2.24.
# When set to 'auto', Kiali will skip dashboards discovery for workloads with more than a configured threshold of pods
# (see 'discovery_auto_threshold'). When discovery is disabled or auto/skipped, it is still possible to tie workloads
# with dashboards through annotations on pods (refer to the doc https://kiali.io/documentation/latest/runtimes-monitoring/#pods-annotations)
# Allowed values: true, false, auto. Default: auto.
# discovery_auto_threshold: Threshold of pods, for a given Application or Workload, above which dashboards discovery will be skipped
# when in 'auto' mode. Default: 10.
# enabled: Enable or disable custom dashboards, including the dashboards discovery process. Default: true.
Copy link
Contributor

Choose a reason for hiding this comment

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

All peer settings in the operator config files are sorted alphabetically. Sort these alphabetically. Also, tweaked some of this for more clarity, and no need to mention the "Default" in the text of the description - all the commented values in this example CR file are the documented default values.

Suggested change
# discovery_enabled: Enable, disable or set 'auto' mode to the dashboards discovery process. If set to true, Kiali
# will always try to discover dashboards based on metrics. Note that it can generate performance penalties while
# discovering dashboards for workloads having many pods (thus many metrics), especially with versions of Prometheus < 2.24.
# When set to 'auto', Kiali will skip dashboards discovery for workloads with more than a configured threshold of pods
# (see 'discovery_auto_threshold'). When discovery is disabled or auto/skipped, it is still possible to tie workloads
# with dashboards through annotations on pods (refer to the doc https://kiali.io/documentation/latest/runtimes-monitoring/#pods-annotations)
# Allowed values: true, false, auto. Default: auto.
# discovery_auto_threshold: Threshold of pods, for a given Application or Workload, above which dashboards discovery will be skipped
# when in 'auto' mode. Default: 10.
# enabled: Enable or disable custom dashboards, including the dashboards discovery process. Default: true.
# discovery_auto_threshold: Threshold of the number of pods, for a given Application or Workload, above which dashboards discovery will be skipped.
# This setting only takes effect when discovery_enabled is set to 'auto' mode.
# discovery_enabled: Enable, disable or set 'auto' mode to the dashboards discovery process. If set to true, Kiali
# will always try to discover dashboards based on metrics. Note that it can generate performance penalties while
# discovering dashboards for workloads having many pods (thus many metrics), especially with versions of Prometheus < 2.24.
# When set to 'auto', Kiali will skip dashboards discovery for workloads with more than a configured threshold of pods
# (see 'discovery_auto_threshold'). When discovery is disabled or auto/skipped, it is still possible to tie workloads
# with dashboards through annotations on pods (refer to the doc https://kiali.io/documentation/latest/runtimes-monitoring/#pods-annotations)
# Allowed values: true, false, auto.
# enabled: Enable or disable custom dashboards, including the dashboards discovery process.

- discovery_enabled (true/false/auto) to switch discovery mode
- discovery_auto_threshold: pods threshold above which discovery is
  skipped in auto mode

Part of kiali/kiali#3660
@jotak
Copy link
Contributor Author

jotak commented Feb 3, 2021

Ah, damn alphabetical sort! I've been very careful about that when adding discovery_enabled, then I forgot when adding the other, lol

hhovsepy
hhovsepy previously approved these changes Feb 3, 2021
Copy link
Contributor

@jmazzitelli jmazzitelli left a comment

Choose a reason for hiding this comment

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

This was not addressed: #243 (comment)

@jotak
Copy link
Contributor Author

jotak commented Feb 3, 2021

Ok I didn't notice you changed the text. I also changed it on my side. Need to merge both now

@jotak
Copy link
Contributor Author

jotak commented Feb 3, 2021

@jmazzitelli ok, pushed again, I hope I didn't miss any of your changes

@jotak jotak merged commit 4125199 into kiali:master Feb 3, 2021
Sprint 52 automation moved this from In Review to Done Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Sprint 52
  
Done
3 participants