Skip to content

Commit

Permalink
Change default threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
Lowess committed Nov 26, 2019
1 parent d09e150 commit 07fc216
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 10 deletions.
7 changes: 5 additions & 2 deletions charts/burrow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,21 @@ Parameter | Description | Default
`burrow.config.zookeeper.rootPath` | A full path to the znode that Burrow is allow to write under. The path will be created if it does not already exist | `/burrow`
`burrow.config.httpserver.default.address` | Specifies what the server should listen on | `:8000`
`burrow.config.httpserver.default.timeout` | The timeout and keepalive setting for connections, in seconds | `300`
`burrow.config.cluster.<myclustername>` | The `<myclustername>` part is the name by which this cluster will be referred to in other parts of the configuration, as well as in HTTP requests and notifications. You may configure as many cluster sections as you want (and Burrow is efficient at handling multiple Kafka clusters). Note that the cluster configuration only retrieves the topic list and cluster offsets. | `{}`
`burrow.config.cluster.<myclustername>` | The `<myclustername>` part is the name by which this cluster will be referred to in other parts of the configuration (if not overriden by `burrow.config.cluster.<myclustername>.clusterName`), as well as in HTTP requests and notifications. You may configure as many cluster sections as you want (and Burrow is efficient at handling multiple Kafka clusters). Note that the cluster configuration only retrieves the topic list and cluster offsets. | `{}`
`burrow.config.cluster.<myclustername>.clusterName` | Overrides the cluster name which default to the map key `<myclustername>` |

`burrow.config.cluster.<myclustername>.className` | This is the name of the cluster module type. The only available class is `kafka` | `kafka`
`burrow.config.cluster.<myclustername>.servers` | A list of strings in the form "hostname:port" that point to the servers in the Kafka cluster. At least one is required |
`burrow.config.cluster.<myclustername>.topicRefresh` | How often to refresh the list of all topics in the cluster, in seconds | `60`
`burrow.config.cluster.<myclustername>.offsetRefresh` | How often to refresh the broker offset for each partition, in seconds | `10`
`burrow.config.consumer.<myclustername>.clusterName` | If `burrow.config.cluster.<myclustername>.clusterName` is set then this setting must be set to the same value |
`burrow.config.consumer.<myclustername>.className` | This is the name of the cluster module type. The available classes are: `kafka` or `kafka_zk` | `kafka`
`burrow.config.consumer.<myclustername>.servers` | A list of strings in the form "hostname:port" that point to the servers in the Kafka cluster. At least one is required |
`burrow.config.consumer.<myclustername>.groupWhitelist` | If specified, only send offsets for groups that match this regular expression | `.*`
`burrow.config.consumer.<myclustername>.groupBlacklist` | If specified, only send offsets for groups that DO NOT match this regular expression. This is processed after the whitelist (if specified) | `^.*(console-consumer-|python-kafka-consumer-).*`
`burrow.config.notifier.<mynotifier>.className` | This is the name of the cluster module type. The available classes are: `http` or `email` | `http`
`burrow.config.notifier.<mynotifier>.interval` | The number of seconds to wait between sending notifications for a single group | `60`
`burrow.config.notifier.<mynotifier>.threshold` | The minimum group status to send out notifications for (refer to [StatusConstant](https://godoc.org/github.com/linkedin/Burrow/core/protocol#StatusConstant) for values). | `2`
`burrow.config.notifier.<mynotifier>.threshold` | The minimum group status to send out notifications for (refer to [StatusConstant](https://godoc.org/github.com/linkedin/Burrow/core/protocol#StatusConstant) for values). | `1`
`burrow.config.notifier.<mynotifier>.groupBlacklist` | If specified, only send notifications for groups that DO NOT match this regular expression. This is processed after the whitelist (if specified) | `^.*(console-consumer-|python-kafka-consumer-).*$`
`burrow.config.notifier.<mynotifier>.groupWhitelist` | If specified, only send notifications for groups that match this regular expression | `^.*$`
`burrow.config.notifier.<mynotifier>.extras` | A string representation of a JSON object that will be available when compiling the template for the message to send | `'{}'`
Expand Down
8 changes: 4 additions & 4 deletions charts/burrow/templates/burrow-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ data:
{{- $root := . }}
{{ range $key, $value := .Values.burrow.config.cluster }}
[cluster.{{ $key }}]
[cluster.{{ $value.clusterName | default $key }}]
class-name={{ $value.className | default "kafka" | quote }}
servers={{ include "burrow.servers" $value.servers }}
topic-refresh={{ $value.topicRefresh | default 60 }}
offset-refresh={{ $value.offsetRefresh | default 10 }}
{{ end }}
{{- range $key, $value := .Values.burrow.config.consumer }}
[consumer.{{ $key }}]
[consumer.{{ $value.clusterName | default $key }}]
class-name={{ $value.className | default "kafka" | quote }}
cluster="{{ $key }}"
cluster="{{ $value.clusterName | default $key }}"
servers={{ include "burrow.servers" $value.servers }}
group-blacklist={{ $value.groupBlacklist | default "^.*(console-consumer-|python-kafka-consumer-).*$" | quote }}
group-whitelist={{ $value.groupWhitelist | default ".*" | quote }}
Expand All @@ -43,7 +43,7 @@ data:
[notifier.{{ $key }}]
class-name={{ $value.className | default "http" | quote }}
interval={{ $value.interval | default 60 }}
threshold={{ $value.threshold | default 2 }}
threshold={{ $value.threshold | default 1 }}
group-blacklist={{ $value.groupBlacklist | default "^.*(console-consumer-|python-kafka-consumer-).*$" | quote }}
group-whitelist={{ $value.groupWhitelist | default "^.*$" | quote }}
{{- if $value.extras }}
Expand Down
2 changes: 1 addition & 1 deletion charts/karrot/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
appVersion: "1.0"
appVersion: "1.0.0"
description: A Helm chart for Kubernetes
name: karrot
version: 0.1.0
Expand Down
2 changes: 1 addition & 1 deletion charts/karrot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

$ helm repo add lowess-helm https://lowess.github.io/helm-charts

# Install burrow
# Install karrot

$ helm install lowess-helm/karrot
```
Expand Down
6 changes: 5 additions & 1 deletion charts/karrot/templates/karrot-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
{{- if .Values.karrot.podAnnotations }}
annotations:
{{ toYaml .Values.karrot.podAnnotations | indent 8 }}
{{- end }}
labels:
app.kubernetes.io/name: {{ include "karrot.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
Expand All @@ -31,7 +35,7 @@ spec:
value: prod
{{- range $key, $value := .Values.karrot.env }}
- name: {{ $key }}
value: {{ $value }}
value: {{ $value | quote }}
{{- end }}
args:
- "karrot:create_app()"
Expand Down
4 changes: 4 additions & 0 deletions charts/karrot/templates/karrot-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ metadata:
name: {{ include "karrot.fullname" . }}
labels:
{{ include "karrot.labels" . | indent 4 }}
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
Expand Down
10 changes: 9 additions & 1 deletion charts/karrot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replicaCount: 1

image:
repository: lowess/karrot
tag: v0.0.1
tag: v1.0.0
pullPolicy: IfNotPresent

imagePullSecrets: []
Expand All @@ -16,6 +16,8 @@ fullnameOverride: ""
service:
type: NodePort
port: 80
annotations: {}
# prometheus.io/scrape: "true"

ingress:
enabled: true
Expand Down Expand Up @@ -44,6 +46,12 @@ resources: {}
# memory: 128Mi

karrot:
## Annotations to be added to Karrot pods
##
podAnnotations: {}

## Environment variables to be added to Karrot pods
##
env:
AWS_DEFAULT_REGION: us-east-1

Expand Down

0 comments on commit 07fc216

Please sign in to comment.