Use {{.Group}} in Chronograf-Alert-Overview when running with group by


I just configured some Deadman-checks in Chronograf with GroupBy.

The problem is that in the alert-overview the “name” does not include the tag ‘server’, so all alerts from that rule look the same.

The TickScript for that rule looks like:

var db = 'monitoring'

var rp = 'autogen'

var measurement = 'docker_container_cpu'

var groupBy = ['datacenter', '']

var whereFilter = lambda: "" !~ /./

var period = 3m


var name = 'docker service deadmen'

var idVar = name + ':{{.Group}}'

var message = 'deadman for {{.Group}} at {{.Time}} seems {{.Level}}'

var idTag = 'alertID'

var levelTag = 'level'

var messageField = 'message'

var durationField = 'duration'

var outputDB = 'chronograf'

var outputRP = 'autogen'

var outputMeasurement = 'alerts'

var triggerType = 'deadman'

var threshold = 0.0

var data = stream

var trigger = data
    |deadman(threshold, period)

    |eval(lambda: "emitted")
        .keep('value', messageField, durationField)
    |eval(lambda: float("value"))
        .tag('alertName', name)
        .tag('triggerType', triggerType)


How can I define the

var name =

to use the {{.Group}} within?

//edited: wrong picture removed. script fixed.