fix(inputs.docker): keep field type of tasks_desired the same (#10711)
This commit is contained in:
parent
03d7c4693e
commit
80d66dfed9
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue