|
42 | 42 | ProcPath string = "/bin/run" |
43 | 43 | ProcName string = "runner" |
44 | 44 | Cmdline string = "./dist/otelcol-ishleen-custom --config collector.yml" |
| 45 | + Processstate string = "undefined" |
45 | 46 | Device string = "en0" |
46 | 47 | Disk string = "nvme0n1p128" |
47 | 48 | FilesystemDevice string = "dev/nvme0n1p1" |
@@ -71,6 +72,7 @@ func doTestRemap(t *testing.T, id string, remapOpts ...Option) { |
71 | 72 | m["process.executable"] = ProcPath |
72 | 73 | m["process.name"] = ProcName |
73 | 74 | m["system.process.cmdline"] = Cmdline |
| 75 | + m["system.process.state"] = Processstate |
74 | 76 | case "network": |
75 | 77 | m["system.network.name"] = Device |
76 | 78 | case "disk": |
@@ -223,6 +225,7 @@ func doTestRemap(t *testing.T, id string, remapOpts ...Option) { |
223 | 225 | }, |
224 | 226 | expected: []internal.TestMetric{ |
225 | 227 | {Type: Sum, Name: "process.cpu.start_time", DP: internal.TestDP{Ts: now, Int: internal.Ptr(int64(0)), Attrs: outAttr("process")}}, |
| 228 | + {Type: Sum, Name: "system.process.cpu.start_time", DP: internal.TestDP{Ts: now, Int: internal.Ptr(int64(0)), Attrs: outAttr("process")}}, |
226 | 229 | {Type: Sum, Name: "system.process.num_threads", DP: internal.TestDP{Ts: now, Int: internal.Ptr(int64(7)), Attrs: outAttr("process")}}, |
227 | 230 | {Type: Gauge, Name: "system.process.memory.rss.pct", DP: internal.TestDP{Ts: now, Dbl: internal.Ptr(0.15), Attrs: outAttr("process")}}, |
228 | 231 | {Type: Sum, Name: "system.process.memory.rss.bytes", DP: internal.TestDP{Ts: now, Int: internal.Ptr(int64(2048)), Attrs: outAttr("process")}}, |
|
0 commit comments