Skip to content

Commit 8c77547

Browse files
committed
Update telemetry to capture Kafka Source (closes #11)
1 parent b440981 commit 8c77547

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ module "collector_event_hub" {
132132
| <a name="input_cookie_domain"></a> [cookie\_domain](#input\_cookie\_domain) | Optional first party cookie domain for the collector to set cookies on (e.g. acme.com) | `string` | `""` | no |
133133
| <a name="input_custom_paths"></a> [custom\_paths](#input\_custom\_paths) | Optional custom paths that the collector will respond to, typical paths to override are '/com.snowplowanalytics.snowplow/tp2', '/com.snowplowanalytics.iglu/v1' and '/r/tp2'. e.g. { "/custom/path/" : "/com.snowplowanalytics.snowplow/tp2"} | `map(string)` | `{}` | no |
134134
| <a name="input_java_opts"></a> [java\_opts](#input\_java\_opts) | Custom JAVA Options | `string` | `"-XX:InitialRAMPercentage=75 -XX:MaxRAMPercentage=75"` | no |
135+
| <a name="input_kafka_source"></a> [kafka\_source](#input\_kafka\_source) | The source providing the Kafka connectivity (def: azure\_event\_hubs) | `string` | `"azure_event_hubs"` | no |
135136
| <a name="input_kafka_username"></a> [kafka\_username](#input\_kafka\_username) | Username for connection to Kafka cluster under PlainLoginModule (default: '$ConnectionString' which is used for EventHubs) | `string` | `"$ConnectionString"` | no |
136137
| <a name="input_record_limit"></a> [record\_limit](#input\_record\_limit) | The number of events to buffer before pushing them to Kinesis | `number` | `500` | no |
137138
| <a name="input_ssh_ip_allowlist"></a> [ssh\_ip\_allowlist](#input\_ssh\_ip\_allowlist) | The comma-seperated list of CIDR ranges to allow SSH traffic from | `list(string)` | <pre>[<br> "0.0.0.0/0"<br>]</pre> | no |

examples/confluent/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ module "collector_event_hub" {
6060
kafka_username = local.kafka_username
6161
kafka_password = local.kafka_password
6262

63+
kafka_source = "confluent_cloud"
64+
6365
ssh_public_key = local.ssh_public_key
6466
ssh_ip_allowlist = ["0.0.0.0/0"]
6567

main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
locals {
2-
module_name = "collector-event-hub-vmss"
2+
module_name_suffix = var.kafka_source == "azure_event_hubs" ? "" : ":${var.kafka_source}"
3+
4+
module_name = "collector-event-hub-vmss${local.module_name_suffix}"
35
module_version = "0.2.0"
46

57
app_name = "stream-collector"

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ variable "time_limit_ms" {
131131

132132
# --- Telemetry
133133

134+
variable "kafka_source" {
135+
description = "The source providing the Kafka connectivity (def: azure_event_hubs)"
136+
default = "azure_event_hubs"
137+
type = string
138+
}
139+
134140
variable "telemetry_enabled" {
135141
description = "Whether or not to send telemetry information back to Snowplow Analytics Ltd"
136142
type = bool

0 commit comments

Comments
 (0)