Pronomita Dey
Pronomita Dey

Reputation: 706

Dynamically add items in zabbix template

I have a Kinesis Stream with 10 shards. I want to create a single host on Zabbix by the name of the stream eg: Some_Kinesis_stream. In the template I want to dynamically create items like "Some_Kinesis_stream..." for every shard that gets spawned. Is there a way to detect a new shard and create items like above?

I think some discovery rules need to used to trigger the template edition. I don't have a clear view on the implementation.

Also, there is no Zabbix Agent.

Upvotes: 0

Views: 566

Answers (1)

Richlv
Richlv

Reputation: 4143

Use a custom low level discovery (LLD) for that. In the LLD rule, have a prototype like Some_Kinesis_stream[{#SHARD}], and send JSON with all the streams as per the example in the documentation.

Upvotes: 1

Related Questions