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

Kafka-Minion as alternative to Burrow for consumer lag monitoring #259

Merged
merged 17 commits into from
May 6, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Gets to a point where variants must be manually tailored
solsson committed May 6, 2019
commit 54ab8b4c36b140fec285852d40e0a8f0399b6654
5 changes: 3 additions & 2 deletions prometheus/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
bases:
- ../kafka
# or any variant with kafka included, such as
# This kustomization needs to depend on one with kafka in it, to add the sidecar,
# but it needs to be the kafka from the chosen variant, as ../kafka here would override other kustomizations
#- ../kafka
#- ../variants/scale-1
resources:
- 10-metrics-config.yml
7 changes: 7 additions & 0 deletions variants/prometheus-operator/alertmanager-main-scale-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: monitoring.coreos.com/v1
kind: Alertmanager
metadata:
name: main
namespace: monitoring
spec:
replicas: 1
9 changes: 8 additions & 1 deletion variants/prometheus-operator/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
bases:
- ../../prometheus
# The ../../prometheus base must be edited to point to the chosen kafka base
#- ../../prometheus
- ../../consumers-prometheus
# Resources won't apply without a prior apply -k with for example one of:
#- github.com/coreos/prometheus-operator?ref=de9a6e1
#- ../prometheus-operator-baseexample
#- ../../../unhelm/kube-prometheus
resources:
- k8s-kafka-rbac.yaml
# with base ../../prometheus
- k8s-kafka-servicemonitor.yaml
# with base ../../consumers-prometheus
- k8s-minion-servicemonitor.yaml
patchesStrategicMerge:
- prometheus-k8s-scale-1.yaml
- prometheus-k8s-2.9.2.yaml
- alertmanager-main-scale-1.yaml
- prometheus-k8s-nodeport.yaml
8 changes: 8 additions & 0 deletions variants/prometheus-operator/prometheus-k8s-2.9.2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
name: k8s
namespace: monitoring
spec:
baseImage: quay.io/prometheus/prometheus
version: v2.7.2
10 changes: 10 additions & 0 deletions variants/prometheus-operator/prometheus-k8s-nodeport.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: prometheus-k8s
namespace: monitoring
spec:
type: NodePort
ports:
- port: 9090
nodePort: 32490
7 changes: 7 additions & 0 deletions variants/prometheus-operator/prometheus-k8s-scale-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
name: k8s
namespace: monitoring
spec:
replicas: 1