-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[service] use mdatagen for service metrics (#10273)
This reverts the reverts #10271 and adds a mechanism to skip adding a create settings method for the service package component test. Will need to figure out if servicetelemetry.TelemetrySettings should be renamed to fit w/ the other CreateSettings structs before removing this check. Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
- Loading branch information
Showing
11 changed files
with
481 additions
and
88 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
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,55 @@ | ||
[comment]: <> (Code generated by mdatagen. DO NOT EDIT.) | ||
|
||
# service | ||
|
||
## Internal Telemetry | ||
|
||
The following telemetry is emitted by this component. | ||
|
||
### process_cpu_seconds | ||
|
||
Total CPU user and system time in seconds | ||
|
||
| Unit | Metric Type | Value Type | Monotonic | | ||
| ---- | ----------- | ---------- | --------- | | ||
| s | Sum | Double | true | | ||
|
||
### process_memory_rss | ||
|
||
Total physical memory (resident set size) | ||
|
||
| Unit | Metric Type | Value Type | | ||
| ---- | ----------- | ---------- | | ||
| By | Gauge | Int | | ||
|
||
### process_runtime_heap_alloc_bytes | ||
|
||
Bytes of allocated heap objects (see 'go doc runtime.MemStats.HeapAlloc') | ||
|
||
| Unit | Metric Type | Value Type | | ||
| ---- | ----------- | ---------- | | ||
| By | Gauge | Int | | ||
|
||
### process_runtime_total_alloc_bytes | ||
|
||
Cumulative bytes allocated for heap objects (see 'go doc runtime.MemStats.TotalAlloc') | ||
|
||
| Unit | Metric Type | Value Type | Monotonic | | ||
| ---- | ----------- | ---------- | --------- | | ||
| By | Sum | Int | true | | ||
|
||
### process_runtime_total_sys_memory_bytes | ||
|
||
Total bytes of memory obtained from the OS (see 'go doc runtime.MemStats.Sys') | ||
|
||
| Unit | Metric Type | Value Type | | ||
| ---- | ----------- | ---------- | | ||
| By | Gauge | Int | | ||
|
||
### process_uptime | ||
|
||
Uptime of the process | ||
|
||
| Unit | Metric Type | Value Type | Monotonic | | ||
| ---- | ----------- | ---------- | --------- | | ||
| s | Sum | Double | true | |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.