Skip to content

Commit 5acf5d5

Browse files
authored
[AZI-62] Make partition count configurable in log forwarder automation (#588)
1 parent 86d3385 commit 5acf5d5

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

azure/deploy-to-azure/event_hub.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
"description": "Name of Event Hub"
1616
}
1717
},
18+
"partitionCount": {
19+
"type": "int",
20+
"defaultValue": 32,
21+
"metadata": {
22+
"description": "The number of event hub partitions"
23+
}
24+
},
1825
"location": {
1926
"type": "string",
2027
"defaultValue": "[resourceGroup().location]",
@@ -44,7 +51,9 @@
4451
"dependsOn": [
4552
"[resourceId('Microsoft.EventHub/namespaces/', parameters('eventHubNamespace'))]"
4653
],
47-
"properties": {}
54+
"properties": {
55+
"partitionCount": "[parameters('partitionCount')]"
56+
}
4857
}
4958
]
5059
}

azure/deploy-to-azure/parent_template.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@
3636
"description": "Name of Event Hub"
3737
}
3838
},
39+
"partitionCount": {
40+
"type": "int",
41+
"defaultValue": 32,
42+
"metadata": {
43+
"description": "The number of event hub partitions"
44+
}
45+
},
3946
"functionAppName": {
4047
"type": "string",
4148
"defaultValue": "[concat('datadog-functionapp-', newGuid())]",
@@ -95,6 +102,9 @@
95102
"eventHubName": {
96103
"value": "[parameters('eventHubName')]"
97104
},
105+
"partitionCount": {
106+
"value": "[parameters('partitionCount')]"
107+
},
98108
"location": {
99109
"value": "[parameters('resourcesLocation')]"
100110
}

0 commit comments

Comments
 (0)