Skip to content

Commit

Permalink
Delete duplicated args
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano committed Jan 24, 2019
1 parent 40648de commit 81d275d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 33 deletions.
59 changes: 27 additions & 32 deletions metricbeat/module/system/process/_meta/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,13 @@
},
"system": {
"process": {
"args": [
"/usr/bin/dockerd",
"-H",
"unix://"
],
"cgroup": {
"blkio": {
"id": "docker.service",
"path": "/system.slice/docker.service",
"total": {
"bytes": 844351791104,
"ios": 54852356
"bytes": 844576104448,
"ios": 54869430
}
},
"cpu": {
Expand Down Expand Up @@ -75,21 +70,21 @@
"id": "docker.service",
"path": "/system.slice/docker.service",
"percpu": {
"1": 7054330260009,
"2": 7049692566590,
"3": 7065233675066,
"4": 7046130392473
"1": 7058282754012,
"2": 7053634662537,
"3": 7069386293853,
"4": 7050055153087
},
"stats": {
"system": {
"ns": 7200940000000
"ns": 7202920000000
},
"user": {
"ns": 19559180000000
"ns": 19573240000000
}
},
"total": {
"ns": 28215386894138
"ns": 28231358863489
}
},
"id": "docker.service",
Expand All @@ -101,7 +96,7 @@
"bytes": 9223372036854771712
},
"usage": {
"bytes": 21143552,
"bytes": 21139456,
"max": {
"bytes": 480030720
}
Expand All @@ -125,7 +120,7 @@
"bytes": 9223372036854771712
},
"usage": {
"bytes": 3325169664,
"bytes": 3337703424,
"max": {
"bytes": 5245300736
}
Expand All @@ -146,13 +141,13 @@
"path": "/system.slice/docker.service",
"stats": {
"active_anon": {
"bytes": 779210752
"bytes": 779677696
},
"active_file": {
"bytes": 1714401280
"bytes": 1753378816
},
"cache": {
"bytes": 2115690496
"bytes": 2127810560
},
"hierarchical_memory_limit": {
"bytes": 9223372036854771712
Expand All @@ -161,20 +156,20 @@
"bytes": 0
},
"inactive_anon": {
"bytes": 409124864
"bytes": 409075712
},
"inactive_file": {
"bytes": 401289216
"bytes": 374431744
},
"major_page_faults": 53164,
"mapped_file": {
"bytes": 7491584
},
"page_faults": 21923594,
"pages_in": 57255269,
"pages_out": 56519140,
"page_faults": 21923702,
"pages_in": 57261049,
"pages_out": 56521859,
"rss": {
"bytes": 1188335616
"bytes": 1188753408
},
"rss_huge": {
"bytes": 56623104
Expand All @@ -194,23 +189,23 @@
"start_time": "2019-01-08T17:06:39.000Z",
"total": {
"norm": {
"pct": 0.0047
"pct": 0.0049
},
"pct": 0.0189,
"value": 27811840
"pct": 0.0195,
"value": 27827810
}
},
"fd": {
"limit": {
"hard": 1048576,
"soft": 1048576
},
"open": 72
"open": 68
},
"memory": {
"rss": {
"bytes": 1187368960,
"pct": 0.0717
"bytes": 1187336192,
"pct": 0.0716
},
"share": 8253440,
"size": 4438523904
Expand All @@ -222,4 +217,4 @@
"user": {
"name": "root"
}
}
}
2 changes: 1 addition & 1 deletion metricbeat/module/system/process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (m *MetricSet) Fetch(r mb.ReporterV2) {
rootFields.Put("process.executable", exe)
}

if args, ok := proc["args"]; ok {
if args := getAndRemove(proc, "args"); args != nil {
rootFields.Put("process.args", args)
}

Expand Down

0 comments on commit 81d275d

Please sign in to comment.