confluent login
confluent iam service-account create prommetrics --description "prometheus monitoring"
should result in something like this
+-------------+-----------------------+
| ID | sa-xxxxxx |
| Name | prommetrics |
| Description | prometheus monitoring |
+-------------+-----------------------+
confluent iam rbac role-binding create --role MetricsViewer --principal User:sa-35d9jo
check the binding
confluent iam rbac role-binding list --principal User:sa-35d9jo
check the binding
confluent api-key create --resource cloud --service-account sa-35d9jo
should result in something like
+------------+------------------------------------------------------------------+
| API Key | EIXNNADZZWLJUMQQ |
| API Secret | bJmXgfRTNHi51nVKwbCTk5u/W41sZYZGAR7T0rkzVVS6sCoQKBFjj2J2adWV99JB |
+------------+------------------------------------------------------------------+
note down API key and api secret for later usage
use the existing config-map.yaml and adapt the following
set username and password to the API Key and API Secret created above
basic_auth:
username: EIXNNADZZWLJUMQQ
password: bJmXgfRTNHi51nVKwbCTk5u/W41sZYZGAR7T0rkzVVS6sCoQKBFjj2J2adWV99JB
set your kafka cluster id accordingly (see confluent cloud ui or similar)
params:
"resource.kafka.id":
- lkc-pkx1jk
have look for a pod like prometheus-deployment-xx-xx
kubectl port-forward prometheus-deployment-57898c796b-rkgcs 9090:9090 -n prometheus
prometheus should reachable on your localhost via port 9090
do the same for grafana
login to grafana via localhost:3000 (admin/admin)
go to Connections -โ Data sources
Click Add data source
Choose prometheus
enter prometheus server url, e.g. http://10.48.1.47:9090
scroll to the bottom of the page click save & test
-โ a success message should appear