Fix `process.args_count` attribute (#1331)
This commit is contained in:
parent
8101a6397c
commit
a4fc971e0c
|
|
@ -15,7 +15,7 @@ An operating system process.
|
|||
|
||||
| Attribute | Type | Description | Examples | Stability |
|
||||
| ----------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- | ---------------------------------------------------------------- |
|
||||
| `args_count` | int | Length of the process.command_args array [1] | `4` |  |
|
||||
| `process.args_count` | int | Length of the process.command_args array [1] | `4` |  |
|
||||
| `process.command` | string | The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`. | `cmd/otelcol` |  |
|
||||
| `process.command_args` | string[] | All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`. | `["cmd/otecol", "--config=config.yaml"]` |  |
|
||||
| `process.command_line` | string | The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead. | `C:\cmd\otecol --config="my directory\config.yaml"` |  |
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ groups:
|
|||
executables, this would be the full argv vector passed to `main`.
|
||||
examples:
|
||||
- ['cmd/otecol', '--config=config.yaml']
|
||||
- id: args_count
|
||||
- id: process.args_count
|
||||
type: int
|
||||
stability: experimental
|
||||
brief: >
|
||||
|
|
|
|||
Loading…
Reference in New Issue