Add missing type = api to streaming parent config examples (#21739)
Add missing type = api to all streaming parent config examples The stock stream.conf marks type = api as mandatory ("YOU MUST SET THIS FIELD ON ALL API KEYS"), but all examples in the README omitted it. This caused AI support agents and users copying from docs to produce incomplete configurations.
Costa Tsaousis committed
Feb 11, 2026 at 12:04 UTC
b41cd871e874765e693fed4403ed027a9ecea7e2
1 file changed
+5
-1
src/streaming/README.md
+5
-1
@@ -80,7 +80,7 @@ flowchart TB
80
| Task | Configuration | Example |
81
|------------------------------------------|-------------------------------------------|----------------------------------------------------------------|
82
| Enable streaming on a Child | Set `enabled = yes` in `[stream]` section | `[stream]`<br/>`enabled = yes`<br/>`destination = 192.168.1.5` |
83
-| Configure a Parent to accept connections | Create an `[API_KEY]` section | `[API_KEY]`<br/>`enabled = yes`<br/>`allow from = *` |
83
+| Configure a Parent to accept connections | Create an `[API_KEY]` section | `[API_KEY]`<br/>`type = api`<br/>`enabled = yes`<br/>`allow from = *` |
84
| Set up high availability | Configure multiple destinations on Child | `[stream]`<br/>`destination = parent1:19999 parent2:19999` |
85
| Filter which metrics to send | Use `send charts matching` setting | `send charts matching = system.* !system.uptime` |
86
@@ -390,6 +390,7 @@ Manage database settings for data storage and retention.
390
```ini
391
# Generate a random UUID first: uuidgen
392
[11111111-2222-3333-4444-555555555555]
393
+ type = api
394
# Enable this API key
395
enabled = yes
396
# Allow all IPs to connect with this key
@@ -417,12 +418,14 @@ Manage database settings for data storage and retention.
418
```ini
419
# Configuration for accepting metrics from Children
420
[11111111-2222-3333-4444-555555555555]
421
+ type = api
422
enabled = yes
423
allow from = *
424
db = dbengine
425
426
# Configuration for accepting metrics from other Parents
427
[22222222-3333-4444-5555-666666666666]
428
+ type = api
429
enabled = yes
430
# Only allow the other Parent's IP
431
allow from = 192.168.1.5 192.168.1.6
@@ -716,6 +719,7 @@ The Parent node receives and stores metrics from Child nodes.
719
720
```ini
721
[11111111-2222-3333-4444-555555555555]
722
+ type = api
723
enabled = yes
724
allow from = *
725
```