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

Metrics via API, per-cluster Prometheus Config, OCP monitoring support #1155

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MikeEdgar
Copy link
Member

@MikeEdgar MikeEdgar commented Oct 29, 2024

This change moves the responsibility of metrics retrieval back to the API layer and returns them as an attribute of a KafkaCluster response. Additionally, configuration is available to allow each Kafka cluster to reference a particular Prometheus instance as its source for metrics.

Via the operator, users may configure metrics sources as standalone (where they must provide a URL and possible credentials), embedded (where the operator will deploy an un-secured Prometheus instance), or OpenShift monitoring. Support for OpenShift monitoring requires that user-defined projects are monitored by the OCP platform Prometheus [1] and also that the Console serviceAccount is granted access to the Thanos Querier route. This access will be setup automatically by the operator when using this type of metrics source.

In the UI , there are some additional display changes as well. Byte values will include a fixed number of decimal positions depending on the integer value. For example 1 GiB will display as 1.00 GiB. Additionally, the full list of broker states is handled besides just Running, formerly displayed as Stable.

[1] https://docs.openshift.com/container-platform/4.16/observability/monitoring/enabling-monitoring-for-user-defined-projects.html

@MikeEdgar MikeEdgar force-pushed the multi-prometheus branch 2 times, most recently from e4f3f90 to aaf2b96 Compare October 30, 2024 12:50
Copy link

sonarcloud bot commented Oct 30, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
36.1% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

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

Successfully merging this pull request may close these issues.

1 participant