-
When running the console, the following errors appears: "Prometheus can't be reached, or is not configured. Please check your configuration." So I am trying to configure the instance with prometheus support but I can not find any examples on how to do this. What I can find, is a mentioning of adding this: metricsSources: [ Also, the IDE is complaining when adding metricSources so not sure if this is supported yet? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 56 replies
-
@bjorntj, the If you are in OpenShift with user workload monitoring enabled, you can use the metricsSources:
- name: my-prometheus
type: <one of 'embedded', 'standalone', or 'openshift-monitoring'>
url: <url to the Prometheus host, only for 'standalone'>
authentication:
# optional, only if needed for 'standalone'
username: <for the prometheus api>
password: <for the prometheus api>
kafkaClusters:
- name: my-kafka
metricsSource: my-prometheus
# other kafka configurations As far as the IDE error/warning you have, I'm not entirely sure about that. Is the IDE using the CRD somehow for validation? |
Beta Was this translation helpful? Give feedback.
@bjorntj, the
metricsSources
should work in v0.5.0, together with ametricsSource: <name>
specified on thekafkaClusters
entry. Below is a template for themetricsSources
and how to reference one of them.If you are in OpenShift with user workload monitoring enabled, you can use the
openshift-monitoring
type. Theembedded
type will deploy a Prometheus in the same namespace as the console deployment with configuration to scrape all Strimzi Kafka clusters in the Kube cluster (intended for development/testing scenarios). Otherwise, thestandalone
type allows you to reference an existing Prometheus and optionally provide credentials. The upcoming 0.6.0 release will also allow for a CA/trusted…