-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate process metrics with
semconv
yaml (#330)
Co-authored-by: Joao Grassi <[email protected]>
- Loading branch information
1 parent
a41f0e8
commit d21135e
Showing
5 changed files
with
368 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
extends: default | ||
|
||
ignore-from-file: | ||
- .gitignore | ||
|
||
rules: | ||
document-start: disable | ||
octal-values: enable | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
groups: | ||
- id: attributes.process.cpu | ||
prefix: process.cpu | ||
type: attribute_group | ||
brief: "Attributes for process CPU metrics." | ||
attributes: | ||
- id: state | ||
brief: "The CPU state for this data point. A process SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels." | ||
type: | ||
allow_custom_values: true | ||
members: | ||
- id: system | ||
value: 'system' | ||
- id: user | ||
value: 'user' | ||
- id: wait | ||
value: 'wait' | ||
|
||
- id: metric.process.cpu.time | ||
type: metric | ||
metric_name: process.cpu.time | ||
brief: "Total CPU seconds broken down by different states." | ||
instrument: counter | ||
unit: "s" | ||
attributes: | ||
- ref: process.cpu.state | ||
|
||
- id: metric.process.cpu.utilization | ||
type: metric | ||
metric_name: process.cpu.utilization | ||
brief: "Difference in process.cpu.time since the last measurement, divided by the elapsed time and number of CPUs available to the process." | ||
instrument: gauge | ||
unit: "1" | ||
attributes: | ||
- ref: process.cpu.state | ||
|
||
- id: metric.process.memory.usage | ||
type: metric | ||
metric_name: process.memory.usage | ||
brief: "The amount of physical memory in use." | ||
instrument: updowncounter | ||
unit: "By" | ||
attributes: [] | ||
|
||
- id: metric.process.memory.virtual | ||
type: metric | ||
metric_name: process.memory.virtual | ||
brief: "The amount of committed virtual memory." | ||
instrument: updowncounter | ||
unit: "By" | ||
attributes: [] | ||
|
||
- id: metric.process.disk.io | ||
type: metric | ||
metric_name: process.disk.io | ||
prefix: process.disk | ||
brief: "Disk bytes transferred." | ||
instrument: counter | ||
unit: "By" | ||
attributes: | ||
- ref: disk.io.direction | ||
|
||
- id: metric.process.network.io | ||
type: metric | ||
metric_name: process.network.io | ||
brief: "Network bytes transferred." | ||
instrument: counter | ||
unit: "By" | ||
attributes: | ||
- ref: network.io.direction | ||
|
||
- id: metric.process.thread.count | ||
type: metric | ||
metric_name: process.thread.count | ||
brief: "Process threads count." | ||
instrument: updowncounter | ||
unit: "{thread}" | ||
attributes: [] | ||
|
||
- id: metric.process.open_file_descriptor.count | ||
type: metric | ||
metric_name: process.open_file_descriptor.count | ||
brief: "Number of file descriptors in use by the process." | ||
instrument: updowncounter | ||
unit: "{count}" | ||
attributes: [] | ||
|
||
- id: metric.process.context_switches | ||
type: metric | ||
metric_name: process.context_switches | ||
brief: "Number of times the process has been context switched." | ||
instrument: counter | ||
unit: "{count}" | ||
attributes: | ||
- id: process.context_switch_type | ||
brief: "Specifies whether the context switches for this data point were voluntary or involuntary." | ||
type: | ||
allow_custom_values: true | ||
members: | ||
- id: voluntary | ||
value: 'voluntary' | ||
- id: involuntary | ||
value: 'involuntary' | ||
|
||
- id: metric.process.paging.faults | ||
type: metric | ||
metric_name: process.paging.faults | ||
brief: "Number of page faults the process has made." | ||
instrument: counter | ||
unit: "{fault}" | ||
attributes: | ||
- id: process.paging.fault_type | ||
brief: "The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` is for minor/soft page faults." | ||
type: | ||
allow_custom_values: true | ||
members: | ||
- id: major | ||
value: 'major' | ||
- id: minor | ||
value: 'minor' |
Oops, something went wrong.