Monitor Job events

and add time to Nomad event monitoring.
This commit is contained in:
Maximilian Paß
2023-05-12 16:21:07 +01:00
parent 9300a82535
commit bbc15d9b71
2 changed files with 2 additions and 0 deletions

View File

@@ -235,6 +235,7 @@ func dumpNomadEventToInflux(event *nomadApi.Event) {
p.AddTag("type", event.Type)
p.AddTag("key", event.Key)
p.AddField("payload", event.Payload)
p.AddTag("time", time.Now().Format("03:04:05.000000000"))
monitoring.WriteInfluxPoint(p)
}