alertmanager
alertmanager copied to clipboard
TruncatedAlerts is unusable?
Running:
amtool template render --template.glob="*.tmpl" --template.text='{{ .TruncatedAlerts }}'
Results in an error: amtool: error: template: :1:3: executing "" at <.TruncatedAlerts>: can't evaluate field TruncatedAlerts in type template.Data
Expect: output of 0
I can't seem to figure out how to invoke TruncatedAlerts after it was added in https://github.com/prometheus/alertmanager/pull/2274
You can't access this field, it belongs to a different struct that lives outside of templating.
Closing as not an issue.