fix(inputs.docker): keep field type of tasks_desired the same (#10711)

This commit is contained in:
Sebastian Spaink 2022-03-08 09:00:48 -06:00 committed by GitHub
parent 03d7c4693e
commit 80d66dfed9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -288,7 +288,7 @@ func (d *Docker) gatherSwarmInfo(acc telegraf.Accumulator) error {
}
running := map[string]int{}
tasksNoShutdown := map[string]int{}
tasksNoShutdown := map[string]uint64{}
activeNodes := make(map[string]struct{})
for _, n := range nodes {

View File

@ -1104,7 +1104,7 @@ func TestDockerGatherSwarmInfo(t *testing.T) {
"docker_swarm",
map[string]interface{}{
"tasks_running": int(1),
"tasks_desired": int(1),
"tasks_desired": uint64(1),
},
map[string]string{
"service_id": "qolkls9g5iasdiuihcyz9rn3",