Closed trombik closed 4 years ago
The example does work, the label key would be "nginx.hostname"
. Nested labels and annotations are currently a non-goal, as we would like to keep things simple and efficient.
There was previously discussion here: https://github.com/sensu/sensu-go/issues/2674
Expected Behavior
when
sensu-go
agent is configured with nestedlabels
, you can replace tokens with the nested key and value.Current Behavior
an agent has nested key in
labels
(nginx
).but the nested key does not exist in the entity.
Possible Solution
support nested keys as same as other entity's attibutes.
Steps to Reproduce (for bugs)
labels
sensuctl entity info
Context
the doc states that:
but it does not work (using
index .labels "nginx.hostname"
) because the entity does not have it.Your Environment