demos/kafka/monitoring
6 months agoWIP:prometheus master
Kai Moritz [Wed, 4 Oct 2023 17:20:47 +0000 (19:20 +0200)]
WIP:prometheus

6 months agoWIP:prometheus
Kai Moritz [Tue, 3 Oct 2023 22:09:30 +0000 (00:09 +0200)]
WIP:prometheus

6 months agoWIP:prometheus
Kai Moritz [Tue, 3 Oct 2023 22:08:16 +0000 (00:08 +0200)]
WIP:prometheus

6 months agoWIP:prometheus
Kai Moritz [Tue, 3 Oct 2023 22:01:32 +0000 (00:01 +0200)]
WIP:prometheus

6 months agoWIP
Kai Moritz [Tue, 3 Oct 2023 17:01:34 +0000 (19:01 +0200)]
WIP

6 months agoStrimzi: Enabled CruiseControl
Kai Moritz [Tue, 3 Oct 2023 16:05:27 +0000 (18:05 +0200)]
Strimzi: Enabled CruiseControl

kubectl -n juplo apply -f rebalance.yaml
kubectl -n juplo get kafkarebalances
kubectl -n juplo get kafkarebalances make-it-smoother -o yaml
kubectl -n juplo describe kafkarebalances make-it-smoother

kubectl -n juplo annotate kafkarebalance make-it-smoother strimzi.io/rebalance=approve
kubectl -n juplo describe kafkarebalance make-it-smoother
kubectl -n juplo annotate kafkarebalance make-it-smoother strimzi.io/rebalance=stop
kubectl -n juplo describe kafkarebalance make-it-smoother
kubectl -n juplo annotate kafkarebalance make-it-smoother strimzi.io/rebalance=refresh
kubectl -n juplo annotate kafkarebalance make-it-smoother strimzi.io/rebalance=approve

6 months agoStrimzi: Scale: Added 2 more brokers
Kai Moritz [Tue, 3 Oct 2023 14:28:43 +0000 (16:28 +0200)]
Strimzi: Scale: Added 2 more brokers

sudo mkdir /var/lib/local-storage/kafka-1
sudo mkdir /var/lib/local-storage/kafka-2

kubectl apply -f pv-kafka-1.yaml
kubectl apply -f pv-kafka-2.yaml

kubectl get pv

kubectl -n juplo apply -f cluster.yaml

kubectl -n juplo get pvc
kubectl -n juplo get all

6 months agoStrimzi - Local Storage: Defined static PVs
Kai Moritz [Tue, 3 Oct 2023 13:39:20 +0000 (15:39 +0200)]
Strimzi - Local Storage: Defined static PVs

See:

* https://kubernetes.io/blog/2019/04/04/kubernetes-1.14-local-persistent-volumes-ga/
* https://docs.confluent.io/operator/current/co-storage.html#use-statically-provisioned-persistent-volumes

sudo mkdir /var/lib/local-storage
sudo mkdir /var/lib/local-storage/zookeeper-0
sudo mkdir /var/lib/local-storage/kafka-0

kubectl -n juplo apply -f local-storage.yaml

kubectl apply -f pv-zookeeper-0.yaml
kubectl apply -f pv-kafka-0.yaml

kubectl get pv

kubectl -n juplo apply -f cluster.yaml
kubectl -n juplo get pvc
kubectl -n juplo get pvc/data-0-juplo-kafka-0 -o yaml

6 months agoStrimzi - Blog 4: persistent storage with default storage-class
Kai Moritz [Tue, 3 Oct 2023 12:47:33 +0000 (14:47 +0200)]
Strimzi - Blog 4: persistent storage with default storage-class

kubectl -n juplo apply -f cluster.yaml
kubectl -n juplo get pvc
kubectl -n juplo get pvc data-0-juplo-kafka-0 -o yaml

6 months agoStrimzi - Blog 3: Strimzi Entity-Operator
Kai Moritz [Tue, 3 Oct 2023 10:57:43 +0000 (12:57 +0200)]
Strimzi - Blog 3: Strimzi Entity-Operator

kubectl -n juplo get all
kubectl -n juplo apply -f topic.yaml
kubectl -n juplo get kafkatopics
kubectl -n juplo get kafkatopics/test -o yaml

6 months agoStrimzi - Blog 2: Make the cluster externally accessible (without TLS)
Kai Moritz [Tue, 3 Oct 2023 10:30:40 +0000 (12:30 +0200)]
Strimzi - Blog 2: Make the cluster externally accessible (without TLS)

See:
https://itnext.io/kafka-on-kubernetes-the-strimzi-way-part-2-43192f1dd831

microk8s enable metallb
kubectl -n juplo apply -f cluster.yaml
kubectl -n juplo get configmap/strimzi-kafka-0 -o yaml
kubectl -n juplo get services
kafkacat -b 192.168.66.0 -L

6 months agoStrimzi - Blog 1: Aligned example with part 1 from the blog
Kai Moritz [Tue, 3 Oct 2023 07:25:49 +0000 (09:25 +0200)]
Strimzi - Blog 1: Aligned example with part 1 from the blog

kubectl -n juplo apply -f cluster.yaml
kubectl -n juplo get configmap
kubectl -n juplo get configmap/strimzi-kafka-0 -o yaml

6 months agoStrimzi - https://strimzi.io/quickstarts/ (with only 1Gi) -- WORKS
Kai Moritz [Tue, 3 Oct 2023 07:16:31 +0000 (09:16 +0200)]
Strimzi - https://strimzi.io/quickstarts/ (with only 1Gi) -- WORKS

See:
https://strimzi.io/examples/latest/kafka/kafka-persistent-single.yaml

Start with: `kubectl -n juplo apply -f cluster.yaml`

6 months agoStrimzi - Blog 1: Switched back to the unchanged example -- DOES NOT WORK
Kai Moritz [Tue, 3 Oct 2023 07:05:47 +0000 (09:05 +0200)]
Strimzi - Blog 1: Switched back to the unchanged example -- DOES NOT WORK

See:
https://itnext.io/kafka-on-kubernetes-the-strimzi-way-part-1-bdff3e451788

Start with: `kubectl -n juplo apply -f cluster.yaml`

6 months agoStrimzi - Blog 1: First example, with some minor changes -- DOES NOT WORK
Kai Moritz [Tue, 3 Oct 2023 06:49:53 +0000 (08:49 +0200)]
Strimzi - Blog 1: First example, with some minor changes -- DOES NOT WORK

See: https://itnext.io/kafka-on-kubernetes-the-strimzi-way-part-1-bdff3e451788

Start with: `kubectl -n juplo apply -f cluster.yaml`

6 months agoStrimzi - Installation of helm (0.37.0)
Kai Moritz [Tue, 3 Oct 2023 07:18:44 +0000 (09:18 +0200)]
Strimzi - Installation of helm (0.37.0)

helm repo add strimzi https://strimzi.io/charts/
helm search repo strimzi --versions
kubectl create namespace juplo
helm install -n juplo strimzi-kafka strimzi/strimzi-kafka-operator

Use with: `kubectl -n juplo ...`

7 months agoWIP
Kai Moritz [Fri, 29 Sep 2023 10:25:04 +0000 (12:25 +0200)]
WIP

7 months agoWIP:cli
Kai Moritz [Fri, 29 Sep 2023 08:09:19 +0000 (10:09 +0200)]
WIP:cli

7 months agoWIP:cli
Kai Moritz [Fri, 29 Sep 2023 08:05:43 +0000 (10:05 +0200)]
WIP:cli

7 months agoWIP
Kai Moritz [Wed, 27 Sep 2023 20:51:55 +0000 (22:51 +0200)]
WIP

7 months agoWIP
Kai Moritz [Wed, 27 Sep 2023 20:45:51 +0000 (22:45 +0200)]
WIP

7 months agoRenamed and duplicated YAML-files for services
Kai Moritz [Wed, 27 Sep 2023 20:41:39 +0000 (22:41 +0200)]
Renamed and duplicated YAML-files for services

7 months agoShortened file names
Kai Moritz [Wed, 27 Sep 2023 19:48:38 +0000 (21:48 +0200)]
Shortened file names

7 months agoRemoved not needed metadata and switched label and namespace to `kafka`
Kai Moritz [Wed, 27 Sep 2023 19:39:39 +0000 (21:39 +0200)]
Removed not needed metadata and switched label and namespace to `kafka`

7 months agoConverted `docker-compose.yml` to `*.yaml` with kompose
Kai Moritz [Tue, 26 Sep 2023 20:50:25 +0000 (22:50 +0200)]
Converted `docker-compose.yml` to `*.yaml` with kompose

7 months agoSwitched template for kubernates to unmodified images without javaagent
Kai Moritz [Tue, 26 Sep 2023 20:48:53 +0000 (22:48 +0200)]
Switched template for kubernates to unmodified images without javaagent

7 months agoCopied `docker-compose.yml` to subfolder `kubernetes`
Kai Moritz [Tue, 26 Sep 2023 20:42:32 +0000 (22:42 +0200)]
Copied `docker-compose.yml` to subfolder `kubernetes`

7 months agoSYNC-WALL -- Kubernetes
Kai Moritz [Tue, 26 Sep 2023 20:41:28 +0000 (22:41 +0200)]
SYNC-WALL -- Kubernetes

7 months agoREVERT: Service `cli` zu dem Setup hinzugefügt
Kai Moritz [Sat, 16 Sep 2023 16:48:46 +0000 (18:48 +0200)]
REVERT: Service `cli` zu dem Setup hinzugefügt

7 months agoWIP:gitpod
Kai Moritz [Sat, 16 Sep 2023 16:13:37 +0000 (18:13 +0200)]
WIP:gitpod

7 months agoWIP:gitpod
Kai Moritz [Sat, 16 Sep 2023 16:08:39 +0000 (18:08 +0200)]
WIP:gitpod

7 months agoWIP:gitpod
Kai Moritz [Sat, 16 Sep 2023 15:56:18 +0000 (17:56 +0200)]
WIP:gitpod

8 months agoWIP:brokers
Kai Moritz [Tue, 8 Aug 2023 19:42:16 +0000 (21:42 +0200)]
WIP:brokers

8 months agoWIP:brokers
Kai Moritz [Tue, 8 Aug 2023 19:33:58 +0000 (21:33 +0200)]
WIP:brokers

8 months agoWIP:brokers
Kai Moritz [Tue, 8 Aug 2023 19:16:14 +0000 (21:16 +0200)]
WIP:brokers

8 months agoWIP:brokers
Kai Moritz [Tue, 8 Aug 2023 19:12:03 +0000 (21:12 +0200)]
WIP:brokers

8 months agoWIP:brokers
Kai Moritz [Tue, 8 Aug 2023 19:11:38 +0000 (21:11 +0200)]
WIP:brokers

8 months agoWIP:brokers
Kai Moritz [Tue, 8 Aug 2023 19:08:12 +0000 (21:08 +0200)]
WIP:brokers

8 months agoWIP:Incre...
Kai Moritz [Tue, 8 Aug 2023 16:55:48 +0000 (18:55 +0200)]
WIP:Incre...

8 months agoWIP:brokers
Kai Moritz [Tue, 8 Aug 2023 16:52:27 +0000 (18:52 +0200)]
WIP:brokers

8 months agoIncreased number of Brokers from 3 to 5
Kai Moritz [Tue, 8 Aug 2023 16:45:04 +0000 (18:45 +0200)]
Increased number of Brokers from 3 to 5

8 months agoWIP:brokers
Kai Moritz [Mon, 7 Aug 2023 20:03:04 +0000 (22:03 +0200)]
WIP:brokers

8 months agoWIP:brokers
Kai Moritz [Mon, 7 Aug 2023 20:02:07 +0000 (22:02 +0200)]
WIP:brokers

8 months agoWIP:yaml
Kai Moritz [Mon, 7 Aug 2023 19:03:02 +0000 (21:03 +0200)]
WIP:yaml

8 months agoWIP:grafana
Kai Moritz [Mon, 7 Aug 2023 19:02:53 +0000 (21:02 +0200)]
WIP:grafana

8 months agoWIP:grafana
Kai Moritz [Mon, 7 Aug 2023 18:50:05 +0000 (20:50 +0200)]
WIP:grafana

8 months agoWIP:grafana
Kai Moritz [Mon, 7 Aug 2023 18:46:36 +0000 (20:46 +0200)]
WIP:grafana

8 months agoLowered scraping-interval of prometheus to 1s
Kai Moritz [Fri, 4 Aug 2023 20:31:30 +0000 (22:31 +0200)]
Lowered scraping-interval of prometheus to 1s

8 months agoStart of `jmx_exporter` is only delayed for 10 sec
Kai Moritz [Fri, 4 Aug 2023 20:30:00 +0000 (22:30 +0200)]
Start of `jmx_exporter` is only delayed for 10 sec

8 months agoFixed the `jmx_prometheus_javaagent`
Kai Moritz [Fri, 4 Aug 2023 20:18:53 +0000 (22:18 +0200)]
Fixed the `jmx_prometheus_javaagent`

8 months agoDie Bitnami-Images aktivieren KRaft jetzt automatisch
Kai Moritz [Fri, 4 Aug 2023 19:23:24 +0000 (21:23 +0200)]
Die Bitnami-Images aktivieren KRaft jetzt automatisch

8 months agoService `cli` zu dem Setup hinzugefügt
Kai Moritz [Fri, 4 Aug 2023 19:06:11 +0000 (21:06 +0200)]
Service `cli` zu dem Setup hinzugefügt

11 months agoWIP:clients
Kai Moritz [Sat, 6 May 2023 08:36:34 +0000 (10:36 +0200)]
WIP:clients

11 months agoWIP:clients
Kai Moritz [Sat, 6 May 2023 08:34:25 +0000 (10:34 +0200)]
WIP:clients

12 months agoFixed activation of JMX for Zookeeper
Kai Moritz [Tue, 2 May 2023 20:44:38 +0000 (22:44 +0200)]
Fixed activation of JMX for Zookeeper

12 months agoMetrics are now also available via JMX directly
Kai Moritz [Tue, 2 May 2023 20:30:17 +0000 (22:30 +0200)]
Metrics are now also available via JMX directly

12 months agoAdded Dashboard for kafka-lag-exporter
Kai Moritz [Tue, 2 May 2023 15:43:51 +0000 (17:43 +0200)]
Added Dashboard for kafka-lag-exporter

14 months agoWIP:burrow-uis
Kai Moritz [Sat, 25 Feb 2023 07:56:45 +0000 (08:56 +0100)]
WIP:burrow-uis

14 months agoWIP:burrow-uis
Kai Moritz [Fri, 24 Feb 2023 22:16:16 +0000 (23:16 +0100)]
WIP:burrow-uis

14 months agoWIP:volumes
Kai Moritz [Fri, 24 Feb 2023 21:46:06 +0000 (22:46 +0100)]
WIP:volumes

14 months agoWIP
Kai Moritz [Fri, 24 Feb 2023 21:40:40 +0000 (22:40 +0100)]
WIP

14 months agoWIP
Kai Moritz [Fri, 24 Feb 2023 21:37:22 +0000 (22:37 +0100)]
WIP

14 months agoWIP
Kai Moritz [Fri, 24 Feb 2023 21:33:43 +0000 (22:33 +0100)]
WIP

14 months agoWIP
Kai Moritz [Fri, 24 Feb 2023 21:29:31 +0000 (22:29 +0100)]
WIP

14 months agoWIP
Kai Moritz [Fri, 24 Feb 2023 21:23:26 +0000 (22:23 +0100)]
WIP

14 months agoWIP
Kai Moritz [Fri, 24 Feb 2023 21:18:28 +0000 (22:18 +0100)]
WIP

14 months agoWIP
Kai Moritz [Fri, 24 Feb 2023 21:13:31 +0000 (22:13 +0100)]
WIP

14 months agoWIP
Kai Moritz [Fri, 24 Feb 2023 21:09:16 +0000 (22:09 +0100)]
WIP

14 months agoWIP
Kai Moritz [Fri, 24 Feb 2023 21:08:46 +0000 (22:08 +0100)]
WIP

14 months agoWIP
Kai Moritz [Fri, 24 Feb 2023 21:08:45 +0000 (22:08 +0100)]
WIP

14 months agoBurrow's Zookeeper-Consumer is only needed, if offsets are stored there
Kai Moritz [Tue, 21 Feb 2023 23:08:52 +0000 (00:08 +0100)]
Burrow's Zookeeper-Consumer is only needed, if offsets are stored there

14 months agoAdded Burrow
Kai Moritz [Tue, 21 Feb 2023 23:00:23 +0000 (00:00 +0100)]
Added Burrow

- See: https://github.com/linkedin/Burrow

14 months agoAdded `seglo/kafka-lag-exporter`
Kai Moritz [Tue, 21 Feb 2023 22:11:41 +0000 (23:11 +0100)]
Added `seglo/kafka-lag-exporter`

- See: https://github.com/seglo/kafka-lag-exporter#monitoring-with-grafana

14 months agoFixed the problem with the missing data in the Grfana dashboard
Kai Moritz [Mon, 20 Feb 2023 20:01:00 +0000 (21:01 +0100)]
Fixed the problem with the missing data in the Grfana dashboard

- The naming (and selection) of the broker-metrics that was defined in the
  configurtaion of the jmx-exporter did not match the naming in the
  predefined dashboard.
- Replaced the configuration for the jmx-exporter with the one that was
  defined in the same example, as the dashboard.

14 months agoData!
Kai Moritz [Mon, 20 Feb 2023 17:38:23 +0000 (18:38 +0100)]
Data!

14 months agoEnabled the default metrics in the Bitnami image for Zookeeper
Kai Moritz [Sun, 19 Feb 2023 19:33:40 +0000 (20:33 +0100)]
Enabled the default metrics in the Bitnami image for Zookeeper

See: https://hub.docker.com/r/bitnami/zookeeper/

14 months agoAdded Zookeeper
Kai Moritz [Sun, 19 Feb 2023 19:33:40 +0000 (20:33 +0100)]
Added Zookeeper

Config from: https://github.com/confluentinc/jmx-monitoring-stacks/blob/7.2-post/shared-assets/jmx-exporter/zookeeper.yml
See: https://www.confluent.io/blog/monitor-kafka-clusters-with-prometheus-g

14 months agoAdded Grafana
Kai Moritz [Sun, 19 Feb 2023 10:31:52 +0000 (11:31 +0100)]
Added Grafana

Dashboard from: https://github.com/confluentinc/jmx-monitoring-stacks
See: https://www.confluent.io/blog/monitor-kafka-clusters-with-prometheus-grafana-and-confluent/

14 months agoAdded Prometheus
Kai Moritz [Sun, 19 Feb 2023 09:42:41 +0000 (10:42 +0100)]
Added Prometheus

14 months agoAdded `prometheus_jmx_exporter` as java-agent in the Kafka brokers
Kai Moritz [Sun, 19 Feb 2023 09:26:41 +0000 (10:26 +0100)]
Added `prometheus_jmx_exporter` as java-agent in the Kafka brokers

14 months agoSwitched from KRAFT to Zookeeper -- works :)
Kai Moritz [Sat, 18 Feb 2023 23:03:56 +0000 (00:03 +0100)]
Switched from KRAFT to Zookeeper -- works :)

14 months agoAdded `danielqsj/kafka-exporter` -- does not work :/
Kai Moritz [Sat, 18 Feb 2023 15:09:14 +0000 (16:09 +0100)]
Added `danielqsj/kafka-exporter` -- does not work :/

14 months agoEmpty setup for Docker Compose as basis for the monitoring examples
Kai Moritz [Sat, 18 Feb 2023 14:39:32 +0000 (15:39 +0100)]
Empty setup for Docker Compose as basis for the monitoring examples