Hi,
I want to create a dynamic check base on labels but i thinks is not possible.
Can you confirm ?
Entity label :
labels:
check_disk:
name: "root"
mount: "/"
warning: "80"
critical: "90"
name: "srv"
mount: "/srv"
warning: "50"
critical: "70"
type: CheckConfig
api_version: core/v2
metadata:
created_by: me
name: check-disk-{{.labels.check_disk.name}}
namespace: default
spec:
check_hooks:
- non-zero:
- disk_details
command: check-disk-usage.rb -w {{.labels.check_disk.name.warning}}
-c {{.labels.check_disk.name.critical}} -I {{.labels.check_disk.name.mount}}
env_vars: null
handlers: []
high_flap_threshold: 0
interval: 60
low_flap_threshold: 0
output_metric_format: ""
output_metric_handlers: null
pipelines: []
proxy_entity_name: ""
publish: true
round_robin: false
runtime_assets:
- disk-checks-plugins
- sensu-ruby-runtime
secrets: null
stdin: false
subdue: null
subscriptions:
- system
timeout: 30
ttl: 300
Thanks.