Skip to content

Commit

Permalink
More review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
fajpunk committed Oct 2, 2024
1 parent 3caa628 commit f4a7b3d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion applications/sasquatch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Rubin Observatory's telemetry service
| app-metrics.nodeSelector | object | `{}` | Node labels for pod assignment |
| app-metrics.podAnnotations | object | `{}` | Annotations for telegraf-kafka-consumers pods |
| app-metrics.podLabels | object | `{}` | Labels for telegraf-kafka-consumer pods |
| app-metrics.replicaCount | int | `1` | Number of Telegraf replicas. Increase this value to increase the consumer throughput. |
| app-metrics.replicaCount | int | `3` | Number of Telegraf replicas. Multiple replicas increase availability. |
| app-metrics.resources | object | See `values.yaml` | Kubernetes resources requests and limits |
| app-metrics.tolerations | list | `[]` | Tolerations for pod assignment |
| influxdb-enterprise.bootstrap.auth.secretName | string | `"sasquatch"` | Enable authentication of the data nodes using this secret, by creating a username and password for an admin account. The secret must contain keys `username` and `password`. |
Expand Down
2 changes: 1 addition & 1 deletion applications/sasquatch/charts/app-metrics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ Kafka topics, users, and a telegraf connector for metrics events.
| nodeSelector | object | `{}` | Node labels for pod assignment |
| podAnnotations | object | `{}` | Annotations for telegraf-kafka-consumers pods |
| podLabels | object | `{}` | Labels for telegraf-kafka-consumer pods |
| replicaCount | int | `1` | Number of Telegraf replicas. Increase this value to increase the consumer throughput. |
| replicaCount | int | `3` | Number of Telegraf replicas. Multiple replicas increase availability. |
| resources | object | See `values.yaml` | Kubernetes resources requests and limits |
| tolerations | list | `[]` | Tolerations for pod assignment |
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ data:
password = "${INFLUXDB_PASSWORD}"
{{- range $index, $app := .Values.apps }}
{{- $globalInfluxTags := $.Values.globalInfluxTags | default list }}
{{- $appInfluxTags := (index $.Values.globalAppConfig $app "influxTags") | default list }}
{{- $influxTags := concat $globalInfluxTags $appInfluxTags }}
[[inputs.kafka_consumer]]
brokers = [
"sasquatch-kafka-brokers.sasquatch:9092"
Expand All @@ -49,7 +52,7 @@ data:
avro_timestamp = "timestamp_ns"
avro_timestamp_format = "unix_ns"
avro_union_mode = "nullable"
avro_tags = {{ include "helpers.toTomlArray" (index $.Values.globalAppConfig $app "influxTags") }}
avro_tags = {{ include "helpers.toTomlArray" $influxTags }}
topics = [
"lsst.square.app-metrics.events.{{ $app }}",
]
Expand Down
5 changes: 2 additions & 3 deletions applications/sasquatch/charts/app-metrics/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ influxdb:
# -- URL of the InfluxDB v1 instance to write to
url: "http://sasquatch-influxdb.sasquatch:8086"

# -- Number of Telegraf replicas. Increase this value to increase the consumer
# throughput.
replicaCount: 1
# -- Number of Telegraf replicas. Multiple replicas increase availability.
replicaCount: 3


# -- Kubernetes resources requests and limits
Expand Down

0 comments on commit f4a7b3d

Please sign in to comment.