I wonder if it’s possible to manage client’s check parameters using client’s tags.
Example: two servers belong to different environments. Environment name is stored in client’s tag. Servers have the same role, which means the same subscription name. But for ‘prod’ i need to run checks more often or with different parameters than for ‘dev’.
As far as I can see, sensu check object does not have any conditionals or filtering properties.
At this moment I’ve implemented this logic using different subscriptions, for example ‘dev_cassandra’ and ‘prod_cassandra’,
and these subscriptions have different checks attached. But this approach causes a lot of code duplication if you have more than two environments.
Can I avoid having different subscriptions?