متریک‌های Process Exporter

در همه این متریک ها لیبل های monitor_name , monitor_site وجود دارد که در جداول آورده نشده است . مقدار monitor_site=Default و مقدار monitor_name برابر با hostname ی است که در روتر تنظیم می شود

گروه‌های فرایند: CPU و context switch

Metric

Type

Sample label values

Metric value

Description

namedprocess_namegroup_context_switches_total

counter

ctxswitchtype=”nonvoluntary”
groupname=”charon”

9465

Context switches

namedprocess_namegroup_cpu_seconds_total

counter

groupname=”charon”
mode=”system”

1.03

Cpu user usage in seconds


گروه‌های فرایند: حافظه

Metric

Type

Sample label values

Metric value

Description

namedprocess_namegroup_memory_bytes

gauge

groupname=”charon”
memtype=”proportionalResident”

1.0667008e+07

number of bytes of memory in use


گروه‌های فرایند: page fault و I/O

Metric

Type

Sample label values

Metric value

Description

namedprocess_namegroup_major_page_faults_total

counter

groupname=”charon”

153

Major page faults

namedprocess_namegroup_minor_page_faults_total

counter

groupname=”charon”

1980

Minor page faults

namedprocess_namegroup_read_bytes_total

counter

groupname=”charon”

4.58752e+06

number of bytes read by this group

namedprocess_namegroup_write_bytes_total

counter

groupname=”charon”

0

number of bytes written by this group


گروه‌های فرایند: تعداد، ریسه، وضعیت

Metric

Type

Sample label values

Metric value

Description

namedprocess_namegroup_num_procs

gauge

groupname=”charon”

1

number of processes in this group

namedprocess_namegroup_num_threads

gauge

groupname=”charon”

17

Number of threads

namedprocess_namegroup_states

gauge

groupname=”charon”
state=”Other”

0

Number of processes in states Running, Sleeping, Waiting, Zombie, or Other


گروه‌های فرایند: file descriptor و uptime

Metric

Type

Sample label values

Metric value

Description

namedprocess_namegroup_oldest_start_time_seconds

gauge

groupname=”charon”

1.771663848e+09

start time in seconds since 1970/01/01 of oldest process in group

namedprocess_namegroup_open_filedesc

gauge

groupname=”charon”

23

number of open file descriptors for this group

namedprocess_namegroup_worst_fd_ratio

gauge

groupname=”charon”

0.0224609375

the worst (closest to 1) ratio between open fds and max fds among all procs
in this group


متریک‌های per-thread

Metric

Type

Sample label values

Metric value

Description

namedprocess_namegroup_thread_context_switches_total

counter

ctxswitchtype=”nonvoluntary”
groupname=”charon”
threadname=”charon-systemd”

9341

Context switches for these threads

namedprocess_namegroup_thread_count

gauge

groupname=”charon”
threadname=”charon-systemd”

17

Number of threads in this group with same threadname

namedprocess_namegroup_thread_cpu_seconds_total

counter

groupname=”charon”
mode=”system”
threadname=”charon-systemd”

0.8600000000000005

Cpu user/system usage in seconds

namedprocess_namegroup_thread_io_bytes_total

counter

groupname=”charon”
iomode=”read”
threadname=”charon-systemd”

110592

number of bytes read/written by these threads

namedprocess_namegroup_thread_major_page_faults_total

counter

groupname=”charon”
threadname=”charon-systemd”

3

Major page faults for these threads

namedprocess_namegroup_thread_minor_page_faults_total

counter

groupname=”charon”
threadname=”charon-systemd”

193

Minor page faults for these threads

namedprocess_namegroup_threads_wchan

gauge

groupname=”charon”
wchan=”do_sigtimedwait.isra.0”

2

Number of threads in this group waiting on each wchan


خودمانیتورینگ process-exporter

Metric

Type

Sample label values

Metric value

Description

namedprocess_scrape_errors

counter

-

0

general scrape errors: no proc metrics collected during a cycle

namedprocess_scrape_partial_errors

counter

-

102

incremented each time a tracked proc’s metrics collection fails partially,
e.g. unreadable I/O stats

namedprocess_scrape_procread_errors

counter

-

0

incremented each time a proc’s metrics collection fails


متریک‌های فرایند process-exporter

Metric

Type

Sample label values

Metric value

Description

process_cpu_seconds_total

counter

-

38.67

Total user and system CPU time spent in seconds.

process_exporter_build_info

gauge

branch=””
goversion=”go1.17.3”
revision=”935906b20e56b70afc22443137fa0337f7fa5d05”
version=”0.7.10”

1

A metric with a constant ‘1’ value labeled by version, revision, branch, and
goversion from which process_exporter was built.

process_max_fds

gauge

-

524288

Maximum number of open file descriptors.

process_open_fds

gauge

-

8

Number of open file descriptors.

process_resident_memory_bytes

gauge

-

2.87744e+07

Resident memory size in bytes.

process_start_time_seconds

gauge

-

1.77166247373e+09

Start time of the process since unix epoch in seconds.

process_virtual_memory_bytes

gauge

-

7.4313728e+08

Virtual memory size in bytes.

process_virtual_memory_max_bytes

gauge

-

1.8446744073709552e+19

Maximum amount of virtual memory available in bytes.


HTTP handler (Prometheus scrape)

Metric

Type

Sample label values

Metric value

Description

promhttp_metric_handler_errors_total

counter

cause=”encoding”

0

Total number of internal errors encountered by the promhttp metric handler.

promhttp_metric_handler_requests_in_flight

gauge

-

1

Current number of scrapes being served.

promhttp_metric_handler_requests_total

counter

code=”200”

424

Total number of scrapes by HTTP status code.


  • تعداد کل متریک‌ها: 34