Monitor the Nomad events

and send all Nomad events to Influxdb.
This commit is contained in:
Maximilian Paß
2023-05-06 21:18:21 +01:00
parent bc479fcf1e
commit 42efebc194
3 changed files with 15 additions and 0 deletions

View File

@@ -181,6 +181,9 @@ func (nc *nomadAPIClient) EventStream(ctx context.Context) (<-chan *nomadApi.Eve
// As Poseidon uses no such token, the request will return a permission denied error.
"*",
},
nomadApi.TopicJob: {"*"},
nomadApi.TopicNode: {"*"},
nomadApi.TopicDeployment: {"*"},
},
0,
nc.queryOptions())