متریکهای Process Exporter
در همه این متریک ها لیبل های monitor_name , monitor_site وجود دارد که در جداول آورده نشده است . مقدار monitor_site=Default و مقدار monitor_name برابر با hostname ی است که در روتر تنظیم می شود
گروههای فرایند: CPU و context switch
Metric |
Type |
Sample label values |
Metric value |
Description |
|---|---|---|---|---|
|
counter |
ctxswitchtype=”nonvoluntary” |
|
Context switches |
|
counter |
groupname=”charon” |
|
Cpu user usage in seconds |
گروههای فرایند: حافظه
Metric |
Type |
Sample label values |
Metric value |
Description |
|---|---|---|---|---|
|
gauge |
groupname=”charon” |
|
number of bytes of memory in use |
گروههای فرایند: page fault و I/O
Metric |
Type |
Sample label values |
Metric value |
Description |
|---|---|---|---|---|
|
counter |
groupname=”charon” |
|
Major page faults |
|
counter |
groupname=”charon” |
|
Minor page faults |
|
counter |
groupname=”charon” |
|
number of bytes read by this group |
|
counter |
groupname=”charon” |
|
number of bytes written by this group |
گروههای فرایند: تعداد، ریسه، وضعیت
Metric |
Type |
Sample label values |
Metric value |
Description |
|---|---|---|---|---|
|
gauge |
groupname=”charon” |
|
number of processes in this group |
|
gauge |
groupname=”charon” |
|
Number of threads |
|
gauge |
groupname=”charon” |
|
Number of processes in states Running, Sleeping, Waiting, Zombie, or Other |
گروههای فرایند: file descriptor و uptime
Metric |
Type |
Sample label values |
Metric value |
Description |
|---|---|---|---|---|
|
gauge |
groupname=”charon” |
|
start time in seconds since 1970/01/01 of oldest process in group |
|
gauge |
groupname=”charon” |
|
number of open file descriptors for this group |
|
gauge |
groupname=”charon” |
|
the worst (closest to 1) ratio between open fds and max fds among all procs |
متریکهای per-thread
Metric |
Type |
Sample label values |
Metric value |
Description |
|---|---|---|---|---|
|
counter |
ctxswitchtype=”nonvoluntary” |
|
Context switches for these threads |
|
gauge |
groupname=”charon” |
|
Number of threads in this group with same threadname |
|
counter |
groupname=”charon” |
|
Cpu user/system usage in seconds |
|
counter |
groupname=”charon” |
|
number of bytes read/written by these threads |
|
counter |
groupname=”charon” |
|
Major page faults for these threads |
|
counter |
groupname=”charon” |
|
Minor page faults for these threads |
|
gauge |
groupname=”charon” |
|
Number of threads in this group waiting on each wchan |
خودمانیتورینگ process-exporter
Metric |
Type |
Sample label values |
Metric value |
Description |
|---|---|---|---|---|
|
counter |
- |
|
general scrape errors: no proc metrics collected during a cycle |
|
counter |
- |
|
incremented each time a tracked proc’s metrics collection fails partially, |
|
counter |
- |
|
incremented each time a proc’s metrics collection fails |
متریکهای فرایند process-exporter
Metric |
Type |
Sample label values |
Metric value |
Description |
|---|---|---|---|---|
|
counter |
- |
|
Total user and system CPU time spent in seconds. |
|
gauge |
branch=”” |
|
A metric with a constant ‘1’ value labeled by version, revision, branch, and |
|
gauge |
- |
|
Maximum number of open file descriptors. |
|
gauge |
- |
|
Number of open file descriptors. |
|
gauge |
- |
|
Resident memory size in bytes. |
|
gauge |
- |
|
Start time of the process since unix epoch in seconds. |
|
gauge |
- |
|
Virtual memory size in bytes. |
|
gauge |
- |
|
Maximum amount of virtual memory available in bytes. |
HTTP handler (Prometheus scrape)
Metric |
Type |
Sample label values |
Metric value |
Description |
|---|---|---|---|---|
|
counter |
cause=”encoding” |
|
Total number of internal errors encountered by the promhttp metric handler. |
|
gauge |
- |
|
Current number of scrapes being served. |
|
counter |
code=”200” |
|
Total number of scrapes by HTTP status code. |
تعداد کل متریکها: 34