{"id":43943,"date":"2023-03-16T08:13:51","date_gmt":"2022-11-15T14:27:38","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/process_exporter%e4%bd%bf%e7%94%a8%e6%95%88%e6%9e%9c%e4%b8%8d%e4%bd%b3\/"},"modified":"2024-01-15T11:50:35","modified_gmt":"2024-01-15T03:50:35","slug":"process_exporter%e4%bd%bf%e7%94%a8%e6%95%88%e6%9e%9c%e4%b8%8d%e4%bd%b3","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/process_exporter%e4%bd%bf%e7%94%a8%e6%95%88%e6%9e%9c%e4%b8%8d%e4%bd%b3\/","title":{"rendered":"Process_exporter\u4f7f\u7528\u6548\u679c\u4e0d\u4f73"},"content":{"rendered":"<h1>\u9996\u5148<\/h1>\n<p>\u5927\u5bb6\u597d\uff0c\u4f60\u4eec\u662f\u5982\u4f55\u8fdb\u884c\u8fdb\u7a0b\u76d1\u63a7\u7684\u5462\uff1f\u5728 Prometheus \u4e2d\uff0c\u6709\u4e00\u4e2a\u540d\u4e3a process_exporter \u7684\u5bfc\u51fa\u5668\uff0c\u6211\u5c06\u9a8c\u8bc1\u7ed3\u679c\u8bb0\u5728\u5907\u5fd8\u5f55\u91cc\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6b63\u5728\u5be6\u969b\u904b\u7528\u6b64\u51fa\u53e3\u5546\u4e26\u4e14\u80fd\u5920\u6709\u6548\u5730\u4f7f\u7528\uff0c\u8acb\u4e00\u5b9a\u544a\u8a34\u6211\u5011\uff01\uff01\uff01<\/p>\n<h1>\u9a8c\u8bc1<\/h1>\n<p>\u691c\u8a3c\u73af\u5883\u4f7f\u7528vagrant\u5728\u672c\u5730\u642d\u5efa\uff0c\u867d\u7136\u6709\u70b9\u65e7\uff0c\u4f46\u4f7f\u7528\u4e86Ubuntu 14.04.6 LTS\u3002<\/p>\n<h2>\u5f15\u5165<\/h2>\n<p>\u6211\u53c2\u8003\u4e86\u4ee5\u4e0b\u7684\u6587\u7ae0\u5e76\u52aa\u529b\u53bb\u505a\u3002<br \/>\nhttps:\/\/qiita.com\/nekoneck\/items\/a9deab623da277afc4be<\/p>\n<p>\u4ee5\u4e0b\u662f Github \u7684\u5b58\u50a8\u5e93\uff1a<br \/>\nhttps:\/\/github.com\/ncabatoff\/process-exporter\/blob\/master\/README.md<\/p>\n<p>\u8fd9\u6b21\u6211\u4eec\u4e0d\u662f\u7528Docker\uff0c\u800c\u662f\u901a\u8fc7\u4e8c\u8fdb\u5236\u6587\u4ef6\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u624b\u52a8\u4e0b\u8f7d\u5e76\u89e3\u538b\u7f29\u3002<\/p>\n<pre class=\"post-pre\"><code>$ curl -LO https:\/\/github.com\/ncabatoff\/process-exporter\/releases\/download\/v0.2.11\/process-exporter_0.2.11_linux_amd64.tar.gz \r\n$ tar xvf process-exporter_0.2.11_linux_amd64.tar.gz\r\n<\/code><\/pre>\n<p>\u8fd9\u6837\u505a\u7684\u8bdd\uff0c\u4ee5\u4e0b\u6587\u4ef6\u5c06\u4f1a\u88ab\u89e3\u538b\u7f29\u3002<\/p>\n<pre class=\"post-pre\"><code>$ ls\r\nLICENSE  README.md  process-exporter  process-exporter_0.2.11_linux_amd64.tar.gz\r\n<\/code><\/pre>\n<h2>\u542f\u52a8<\/h2>\n<p>\u6211\u4eec\u5c06\u628aprocess-exporter\u4f5c\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\u3002\u5b9e\u9645\u4e0a\uff0c\u6211\u4eec\u5c06\u4f7f\u7528\u6807\u5fd7\u6765\u6267\u884c\u5b83\uff0c\u8ba9\u6211\u4eec\u770b\u770b\u6709\u4ec0\u4e48\u9009\u9879\u53ef\u7528\u3002<\/p>\n<pre class=\"post-pre\"><code>$ .\/process-exporter -h\r\nUsage of .\/process-exporter:\r\n  -children\r\n        if a proc is tracked, track with it any children that aren't part of their own group (default true)\r\n  -config.path string\r\n        path to YAML config file\r\n  -man\r\n        print manual\r\n  -namemapping string\r\n        comma-seperated list, alternating process name and capturing regex to apply to cmdline\r\n  -once-to-stdout\r\n        Don't bind, instead just print the metrics once to stdout and exit\r\n  -procfs string\r\n        path to read proc data from (default \"\/proc\")\r\n  -procnames string\r\n        comma-seperated list of process names to monitor\r\n  -recheck\r\n        recheck process names on each scrape\r\n  -threads\r\n        report on per-threadname metrics as well\r\n  -web.listen-address string\r\n        Address on which to expose metrics and web interface. (default \":9256\")\r\n  -web.telemetry-path string\r\n        Path under which to expose metrics. (default \"\/metrics\")\r\n<\/code><\/pre>\n<p>\u57fa\u672c\u4e0a\u53ef\u4ee5\u9009\u62e9\u8bfb\u53d6\u5916\u90e8\u914d\u7f6e\u6587\u4ef6\u6216\u8005\u4f7f\u7528-procnames\u53c2\u6570\u6765\u6267\u884c\u3002<\/p>\n<p>\u8fd9\u4e2a\u8bbe\u5b9a\u6211\u89c9\u5f97\u6709\u4e9b\u96be\u4ee5\u7406\u89e3\uff0c\u8fd9\u5c31\u662f\u6211\u8ba4\u4e3a\u8fd9\u6b21\u6709\u4e9b\u5fae\u5999\u7684\u539f\u56e0\u3002<\/p>\n<p>\u9996\u5148\uff0c\u8ba9\u6211\u4eec\u6765\u770b\u4e00\u4e0b\u8fd9\u6b21\u8981\u9488\u5bf9\u7684\u8fdb\u7a0b\u3002\u6211\u4eec\u5c06\u4ee5PostgreSQL\u7684\u8fdb\u7a0b\u4e3a\u5bf9\u8c61\u6765\u8fdb\u884c\u89c2\u5bdf\u3002<\/p>\n<pre class=\"post-pre\"><code>$ ps -ef |grep -v grep | grep postgres\r\npostgres 21127     1  0 Apr15 ?        00:00:00 \/usr\/lib\/postgresql\/9.3\/bin\/postgres -D \/var\/lib\/postgresql\/9.3\/main -c config_file=\/etc\/postgresql\/9.3\/main\/postgresql.conf\r\npostgres 21129 21127  0 Apr15 ?        00:00:00 postgres: checkpointer process\r\npostgres 21130 21127  0 Apr15 ?        00:00:00 postgres: writer process\r\npostgres 21131 21127  0 Apr15 ?        00:00:00 postgres: wal writer process\r\npostgres 21132 21127  0 Apr15 ?        00:00:00 postgres: autovacuum launcher process\r\npostgres 21133 21127  0 Apr15 ?        00:00:01 postgres: stats collector process\r\n<\/code><\/pre>\n<p>\u6211\u5df2\u7ecf\u914d\u7f6e\u4e86config\u6587\u4ef6\u3002\u6839\u636egithub\u7684\u63cf\u8ff0\uff0ccomm\u4f3c\u4e4e\u662f\u4ece\/proc\/{pid}\/stat\u7684\u7b2c\u4e8c\u5217\u63d0\u53d6\u7684\u3002<\/p>\n<pre class=\"post-pre\"><code>  # comm is the second field of \/proc\/&lt;pid&gt;\/stat minus parens.\r\n  # It is the base executable name, truncated at 15 chars.  \r\n  # It cannot be modified by the program, unlike exe.\r\n  - comm:\r\n    - bash\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>$ cat config.yaml\r\nprocess_names:\r\n  - comm:\r\n    - postgresql\r\n<\/code><\/pre>\n<p>\u90a3\u4e48\uff0c\u5c31\u8ba9\u6211\u4eec\u5f00\u59cb\u8fd0\u884c\u5427\u3002<\/p>\n<pre class=\"post-pre\"><code>$ .\/process-exporter -config.path config.yaml\r\n2019\/04\/16 05:02:48 Reading metrics from \/proc based on \"config.yaml\"\r\n<\/code><\/pre>\n<p>\u6211\u4eec\u8bd5\u8bd5\u6253\u5f00\u7ec8\u7aef\u3002<\/p>\n<pre class=\"post-pre\"><code>$ curl http:\/\/192.168.33.31:9256\/metrics |grep postgresql\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100  7215  100  7215    0     0  1081k      0 --:--:-- --:--:-- --:--:-- 1174k\r\n<\/code><\/pre>\n<p>\u55ef\uff0c\u8fd8\u6ca1\u6355\u6349\u5230\u3002\u90a3\u4e48\uff0c\u8ba9\u6211\u4eec\u5c1d\u8bd5\u7a0d\u5fae\u6539\u53d8\u4e00\u4e0b\u914d\u7f6e\u6587\u4ef6\u5427\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cat config.yaml\r\nprocess_names:\r\n  - comm:\r\n    - postgres\r\n<\/code><\/pre>\n<p>\u6211\u4f1a\u5c1d\u8bd5\u8bf7\u6c42\u8be5\u7ec8\u7aef\u70b9\u3002<\/p>\n<pre class=\"post-pre\"><code>$ curl http:\/\/192.168.33.31:9256\/metrics |grep postgres\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0namedprocess_namegroup_cpu_system_seconds_total{groupname=\"postgres\"} 0\r\nnamedprocess_namegroup_cpu_system_seconds_total{groupname=\"postgres: autovacuum launcher process   \"} 0\r\nnamedprocess_namegroup_cpu_system_seconds_total{groupname=\"postgres: checkpointer process   \"} 0\r\nnamedprocess_namegroup_cpu_system_seconds_total{groupname=\"postgres: stats collector process   \"} 0\r\nnamedprocess_namegroup_cpu_system_seconds_total{groupname=\"postgres: wal writer process   \"} 0\r\nnamedprocess_namegroup_cpu_system_seconds_total{groupname=\"postgres: writer process   \"} 0\r\nnamedprocess_namegroup_cpu_user_seconds_total{groupname=\"postgres\"} 0\r\nnamedprocess_namegroup_cpu_user_seconds_total{groupname=\"postgres: autovacuum launcher process   \"} 0\r\nnamedprocess_namegroup_cpu_user_seconds_total{groupname=\"postgres: checkpointer process   \"} 0\r\nnamedprocess_namegroup_cpu_user_seconds_total{groupname=\"postgres: stats collector process   \"} 0\r\nnamedprocess_namegroup_cpu_user_seconds_total{groupname=\"postgres: wal writer process   \"} 0\r\nnamedprocess_namegroup_cpu_user_seconds_total{groupname=\"postgres: writer process   \"} 0\r\nnamedprocess_namegroup_major_page_faults_total{groupname=\"postgres\"} 0\r\nnamedprocess_namegroup_major_page_faults_total{groupname=\"postgres: autovacuum launcher process   \"} 0\r\nnamedprocess_namegroup_major_page_faults_total{groupname=\"postgres: checkpointer process   \"} 0\r\nnamedprocess_namegroup_major_page_faults_total{groupname=\"postgres: stats collector process   \"} 0\r\nnamedprocess_namegroup_major_page_faults_total{groupname=\"postgres: wal writer process   \"} 0\r\nnamedprocess_namegroup_major_page_faults_total{groupname=\"postgres: writer process   \"} 0\r\nnamedprocess_namegroup_memory_bytes{groupname=\"postgres\",memtype=\"resident\"} 1.2640256e+07\r\nnamedprocess_namegroup_memory_bytes{groupname=\"postgres\",memtype=\"virtual\"} 2.52489728e+08\r\nnamedprocess_namegroup_memory_bytes{groupname=\"postgres: autovacuum launcher process   \",memtype=\"resident\"} 2.822144e+06\r\nnamedprocess_namegroup_memory_bytes{groupname=\"postgres: autovacuum launcher process   \",memtype=\"virtual\"} 2.5337856e+08\r\nnamedprocess_namegroup_memory_bytes{groupname=\"postgres: checkpointer process   \",memtype=\"resident\"} 3.244032e+06\r\nnamedprocess_namegroup_memory_bytes{groupname=\"postgres: checkpointer process   \",memtype=\"virtual\"} 2.52628992e+08\r\nnamedprocess_namegroup_memory_bytes{groupname=\"postgres: stats collector process   \",memtype=\"resident\"} 1.794048e+06\r\nnamedprocess_namegroup_memory_bytes{groupname=\"postgres: stats collector process   \",memtype=\"virtual\"} 1.04841216e+08\r\nnamedprocess_namegroup_memory_bytes{groupname=\"postgres: wal writer process   \",memtype=\"resident\"} 1.695744e+06\r\nnamedprocess_namegroup_memory_bytes{groupname=\"postgres: wal writer process   \",memtype=\"virtual\"} 2.52489728e+08\r\nnamedprocess_namegroup_memory_bytes{groupname=\"postgres: writer process   \",memtype=\"resident\"} 2.506752e+06\r\nnamedprocess_namegroup_memory_bytes{groupname=\"postgres: writer process   \",memtype=\"virtual\"} 2.52489728e+08\r\nnamedprocess_namegroup_minor_page_faults_total{groupname=\"postgres\"} 0\r\nnamedprocess_namegroup_minor_page_faults_total{groupname=\"postgres: autovacuum launcher process   \"} 0\r\nnamedprocess_namegroup_minor_page_faults_total{groupname=\"postgres: checkpointer process   \"} 0\r\nnamedprocess_namegroup_minor_page_faults_total{groupname=\"postgres: stats collector process   \"} 0\r\nnamedprocess_namegroup_minor_page_faults_total{groupname=\"postgres: wal writer process   \"} 0\r\nnamedprocess_namegroup_minor_page_faults_total{groupname=\"postgres: writer process   \"} 0\r\nnamedprocess_namegroup_num_procs{groupname=\"postgres\"} 1\r\nnamedprocess_namegroup_num_procs{groupname=\"postgres: autovacuum launcher process   \"} 1\r\nnamedprocess_namegroup_num_procs{groupname=\"postgres: checkpointer process   \"} 1\r\nnamedprocess_namegroup_num_procs{groupname=\"postgres: stats collector process   \"} 1\r\nnamedprocess_namegroup_num_procs{groupname=\"postgres: wal writer process   \"} 1\r\nnamedprocess_namegroup_num_procs{groupname=\"postgres: writer process   \"} 1\r\nnamedprocess_namegroup_num_threads{groupname=\"postgres\"} 1\r\nnamedprocess_namegroup_num_threads{groupname=\"postgres: autovacuum launcher process   \"} 1\r\nnamedprocess_namegroup_num_threads{groupname=\"postgres: checkpointer process   \"} 1\r\nnamedprocess_namegroup_num_threads{groupname=\"postgres: stats collector process   \"} 1\r\nnamedprocess_namegroup_num_threads{groupname=\"postgres: wal writer process   \"} 1\r\nnamedprocess_namegroup_num_threads{groupname=\"postgres: writer process   \"} 1\r\nnamedprocess_namegroup_oldest_start_time_seconds{groupname=\"postgres\"} 1.55536655e+09\r\nnamedprocess_namegroup_oldest_start_time_seconds{groupname=\"postgres: autovacuum launcher process   \"} 1.55536655e+09\r\nnamedprocess_namegroup_oldest_start_time_seconds{groupname=\"postgres: checkpointer process   \"} 1.55536655e+09\r\nnamedprocess_namegroup_oldest_start_time_seconds{groupname=\"postgres: stats collector process   \"} 1.55536655e+09\r\nnamedprocess_namegroup_oldest_start_time_seconds{groupname=\"postgres: wal writer process   \"} 1.55536655e+09\r\nnamedprocess_namegroup_oldest_start_time_seconds{groupname=\"postgres: writer process   \"} 1.55536655e+09\r\nnamedprocess_namegroup_open_filedesc{groupname=\"postgres\"} 0\r\nnamedprocess_namegroup_open_filedesc{groupname=\"postgres: autovacuum launcher process   \"} 0\r\nnamedprocess_namegroup_open_filedesc{groupname=\"postgres: checkpointer process   \"} 0\r\nnamedprocess_namegroup_open_filedesc{groupname=\"postgres: stats collector process   \"} 0\r\nnamedprocess_namegroup_open_filedesc{groupname=\"postgres: wal writer process   \"} 0\r\nnamedprocess_namegroup_open_filedesc{groupname=\"postgres: writer process   \"} 0\r\nnamedprocess_namegroup_read_bytes_total{groupname=\"postgres\"} 0\r\nnamedprocess_namegroup_read_bytes_total{groupname=\"postgres: autovacuum launcher process   \"} 0\r\nnamedprocess_namegroup_read_bytes_total{groupname=\"postgres: checkpointer process   \"} 0\r\nnamedprocess_namegroup_read_bytes_total{groupname=\"postgres: stats collector process   \"} 0\r\nnamedprocess_namegroup_read_bytes_total{groupname=\"postgres: wal writer process   \"} 0\r\nnamedprocess_namegroup_read_bytes_total{groupname=\"postgres: writer process   \"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres\",state=\"Other\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres\",state=\"Running\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres\",state=\"Sleeping\"} 1\r\nnamedprocess_namegroup_states{groupname=\"postgres\",state=\"Waiting\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres\",state=\"Zombie\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: autovacuum launcher process   \",state=\"Other\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: autovacuum launcher process   \",state=\"Running\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: autovacuum launcher process   \",state=\"Sleeping\"} 1\r\nnamedprocess_namegroup_states{groupname=\"postgres: autovacuum launcher process   \",state=\"Waiting\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: autovacuum launcher process   \",state=\"Zombie\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: checkpointer process   \",state=\"Other\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: checkpointer process   \",state=\"Running\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: checkpointer process   \",state=\"Sleeping\"} 1\r\nnamedprocess_namegroup_states{groupname=\"postgres: checkpointer process   \",state=\"Waiting\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: checkpointer process   \",state=\"Zombie\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: stats collector process   \",state=\"Other\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: stats collector process   \",state=\"Running\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: stats collector process   \",state=\"Sleeping\"} 1\r\nnamedprocess_namegroup_states{groupname=\"postgres: stats collector process   \",state=\"Waiting\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: stats collector process   \",state=\"Zombie\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: wal writer process   \",state=\"Other\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: wal writer process   \",state=\"Running\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: wal writer process   \",state=\"Sleeping\"} 1\r\nnamedprocess_namegroup_states{groupname=\"postgres: wal writer process   \",state=\"Waiting\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: wal writer process   \",state=\"Zombie\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: writer process   \",state=\"Other\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: writer process   \",state=\"Running\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: writer process   \",state=\"Sleeping\"} 1\r\nnamedprocess_namegroup_states{groupname=\"postgres: writer process   \",state=\"Waiting\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres: writer process   \",state=\"Zombie\"} 0\r\nnamedprocess_namegroup_worst_fd_ratio{groupname=\"postgres\"} 0\r\n100 18856  100 18856    0     0  1769k      0 --:--:-- --:--:-- --:--:-- 1841k\r\nnamedprocess_namegroup_worst_fd_ratio{groupname=\"postgres: autovacuum launcher process   \"} 0\r\nnamedprocess_namegroup_worst_fd_ratio{groupname=\"postgres: checkpointer process   \"} 0\r\nnamedprocess_namegroup_worst_fd_ratio{groupname=\"postgres: stats collector process   \"} 0\r\nnamedprocess_namegroup_worst_fd_ratio{groupname=\"postgres: wal writer process   \"} 0\r\nnamedprocess_namegroup_worst_fd_ratio{groupname=\"postgres: writer process   \"} 0\r\nnamedprocess_namegroup_write_bytes_total{groupname=\"postgres\"} 0\r\nnamedprocess_namegroup_write_bytes_total{groupname=\"postgres: autovacuum launcher process   \"} 0\r\nnamedprocess_namegroup_write_bytes_total{groupname=\"postgres: checkpointer process   \"} 0\r\nnamedprocess_namegroup_write_bytes_total{groupname=\"postgres: stats collector process   \"} 0\r\nnamedprocess_namegroup_write_bytes_total{groupname=\"postgres: wal writer process   \"} 0\r\nnamedprocess_namegroup_write_bytes_total{groupname=\"postgres: writer process   \"} 0\r\n<\/code><\/pre>\n<p>\u54e6\uff01\u597d\u50cf\u627e\u5230\u4e86\u70b9\u4ec0\u4e48\u3002\u770b\u8d77\u6765\uff0cpostgresql\u7684\u53c2\u6570\u4f3c\u4e4e\u662f\u901a\u8fc7groupname\u53c2\u6570\u8fdb\u884c\u5206\u7ec4\u7684\u3002<br \/>\n\u8fd9\u6837\u4e00\u6765\uff0c\u55ef\uff0c\u770b\u8d77\u6765\u53ef\u7528\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u8ba9\u6211\u4eec\u5c1d\u8bd5\u4f7f\u7528&#8221;-procnames&#8221;\u9009\u9879\u542f\u52a8\u3002<\/p>\n<pre class=\"post-pre\"><code>$ .\/process-exporter -procnames postgres\r\n2019\/04\/16 05:15:46 Reading metrics from \/proc for procnames: [postgres]\r\n<\/code><\/pre>\n<p>\u6211\u5c06\u5c1d\u8bd5\u8bbf\u95ee\u7ec8\u7aef\u70b9\u3002<\/p>\n<pre class=\"post-pre\"><code>$ curl http:\/\/192.168.33.31:9256\/metrics |grep postgres\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0namedprocess_namegroup_cpu_system_seconds_total{groupname=\"postgres\"} 0.010000000000000009\r\nnamedprocess_namegroup_cpu_user_seconds_total{groupname=\"postgres\"} 0\r\nnamedprocess_namegroup_major_page_faults_total{groupname=\"postgres\"} 0\r\nnamedprocess_namegroup_memory_bytes{groupname=\"postgres\",memtype=\"resident\"} 2.4702976e+07\r\nnamedprocess_namegroup_memory_bytes{groupname=\"postgres\",memtype=\"virtual\"} 1.368317952e+09\r\nnamedprocess_namegroup_minor_page_faults_total{groupname=\"postgres\"} 61\r\nnamedprocess_namegroup_num_procs{groupname=\"postgres\"} 6\r\nnamedprocess_namegroup_num_threads{groupname=\"postgres\"} 6\r\nnamedprocess_namegroup_oldest_start_time_seconds{groupname=\"postgres\"} 1.55536655e+09\r\nnamedprocess_namegroup_open_filedesc{groupname=\"postgres\"} 0\r\nnamedprocess_namegroup_read_bytes_total{groupname=\"postgres\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres\",state=\"Other\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres\",state=\"Running\"} 0\r\n100 10261  100 10261    0     0  1126k      0 --:--:-- --:--:-- --:--:-- 1252k\r\nnamedprocess_namegroup_states{groupname=\"postgres\",state=\"Sleeping\"} 6\r\nnamedprocess_namegroup_states{groupname=\"postgres\",state=\"Waiting\"} 0\r\nnamedprocess_namegroup_states{groupname=\"postgres\",state=\"Zombie\"} 0\r\nnamedprocess_namegroup_worst_fd_ratio{groupname=\"postgres\"} 0\r\nnamedprocess_namegroup_write_bytes_total{groupname=\"postgres\"} 0\r\n<\/code><\/pre>\n<p>\u54e6\uff0c\u8f93\u51fa\u53d1\u751f\u4e86\u53d8\u5316\u3002\u4f3c\u4e4e\u662f\u5c06\u5148\u524d\u8f93\u51fa\u7684\u4e1c\u897f\u8fdb\u884c\u4e86\u6c47\u603b\u5e76\u5c55\u793a\u51fa\u6765\u3002<br \/>\n\u5982\u679c\u60f3\u8981\u6539\u53d8groupname\u7684\u663e\u793a\u540d\u79f0\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u65b9\u5f0f\u91cd\u65b0\u7f16\u5199\u914d\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cat config.yaml\r\nprocess_names:\r\n  - name: aaaaaa\r\n    comm:\r\n      - 'postgres'\r\n<\/code><\/pre>\n<p>\u518d\u6b21\uff0c\u5c1d\u8bd5\u8c03\u7528\u7ec8\u7aef\u8282\u70b9\u3002<\/p>\n<pre class=\"post-pre\"><code>$ curl http:\/\/192.168.33.31:9256\/metrics |grep namedprocess_namegroup_num_procs\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0# HELP namedprocess_namegroup_num_procs number of processes in this group\r\n# TYPE namedprocess_namegroup_num_procs gauge\r\nnamedprocess_namegroup_num_procs{groupname=\"aaaaaa\"} 6\r\n100 10009  100 10009    0     0  1094k      0 --:--:-- --:--:-- --:--:-- 1221k\r\n<\/code><\/pre>\n<p>\u73b0\u5728\u5f00\u59cb\u3002<br \/>\n\u6211\u4eec\u5c1d\u8bd5\u4f7f\u7528\u540d\u4e3aexe\u7684\u9009\u62e9\u5668\u3002\u987a\u4fbf\u4e00\u63d0\uff0c\u5728Github\u7684\u8bf4\u660e\u4e2d\uff0c\u5199\u7740\u5982\u4e0b\u5185\u5bb9\u3002<\/p>\n<pre class=\"post-pre\"><code># exe is argv[0]. If no slashes, only basename of argv[0] need match.\r\n  # If exe contains slashes, argv[0] must match exactly.\r\n  - exe: \r\n    - postgres\r\n    - \/usr\/local\/bin\/prometheus\r\n<\/code><\/pre>\n<p>\u56e0\u6b64\uff0c\u6211\u5c1d\u8bd5\u8bbe\u7f6e\u4e86\u4ee5\u4e0b\u7684\u914d\u7f6e\u3002\u8fd9\u4e2a\u60f3\u6cd5\u662f\u83b7\u53d6\u7a0b\u5e8f\u7684\u540d\u79f0\u3002<\/p>\n<pre class=\"post-pre\"><code>process_names:\r\n  - name: postgres master process\r\n    exe:\r\n      - '\/usr\/lib\/postgresql\/9.3\/bin\/postgres'\r\n<\/code><\/pre>\n<p>\u5c1d\u8bd5\u8c03\u7528\u7ec8\u7ed3\u70b9\u3002\u55ef\uff1f\u6210\u529f\u83b7\u53d6\u5230\u4e866\u4e2a\u3002\u4e5f\u8bb8\u5b50\u8fdb\u7a0b\u4e5f\u88ab\u8ba1\u7b97\u8fdb\u53bb\u4e86\u3002\u8fd9\u6837\u7684\u8bdd\uff0c\u5c31\u4e0d\u592a\u6e05\u695a\u4e0ecomm\u7684\u533a\u522b\u4e86\u3002\u3002<\/p>\n<pre class=\"post-pre\"><code>$ curl http:\/\/192.168.33.31:9256\/metrics |grep namedprocess_namegroup_num_procs\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0# HELP namedprocess_namegroup_num_procs number of processes in this group\r\n# TYPE namedprocess_namegroup_num_procs gauge\r\nnamedprocess_namegroup_num_procs{groupname=\"postgres process\"} 6\r\n100 10180  100 10180    0     0  1145k      0 --:--:-- --:--:-- --:--:-- 1242k\r\n<\/code><\/pre>\n<p>\u6700\u540e\uff0c\u5173\u4e8ecmdline\u3002\u8fd9\u662f\u4e00\u4e2a\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u4e1c\u897f\u3002<\/p>\n<pre class=\"post-pre\"><code>  # cmdline is a list of regexps applied to argv.\r\n  # Each must match, and any captures are added to the .Matches map.\r\n  - name: \"{{.ExeFull}}:{{.Matches.Cfgfile}}\"\r\n    exe: \r\n    - \/usr\/local\/bin\/process-exporter\r\n    cmdline: \r\n    - -config.path\\s+(?P&lt;Cfgfile&gt;\\S+)\r\n<\/code><\/pre>\n<p>\u6211\u8fd9\u6837\u8fdb\u884c\u4e86\u8bbe\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code>process_names:\r\n # - name: postgres process\r\n -  exe:\r\n      - '\/usr\/lib\/postgresql\/9.3\/bin\/postgres'\r\n    cmdline:\r\n    - .*postgresql.conf\r\n<\/code><\/pre>\n<p>\u6211\u4f1a\u5c1d\u8bd5\u8bbf\u95ee\u7ec8\u7aef\u8282\u70b9\u3002\u6839\u636e\u4e0b\u9762\u7684\u5185\u5bb9\u53ef\u4ee5\u770b\u51fa\uff0c\u5982\u679c\u6ca1\u6709\u6307\u5b9aname\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4f1a\u4f7f\u7528Comm\u7684\u503c\u4f5c\u4e3a\u540d\u79f0\u3002<\/p>\n<pre class=\"post-pre\"><code>$ curl http:\/\/192.168.33.31:9256\/metrics |grep namedprocess_namegroup_num_procs\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0# HELP namedprocess_namegroup_num_procs number of processes in this group\r\n# TYPE namedprocess_namegroup_num_procs gauge\r\nnamedprocess_namegroup_num_procs{groupname=\"postgres\"} 6\r\n100 10239  100 10239    0     0  1225k      0 --:--:-- --:--:-- --:--:-- 1249k\r\n<\/code><\/pre>\n<p>\u55ef\uff0c\u6ca1\u6709\u53d8\u5316\u5462\u3002<\/p>\n<h1>\u7ed3\u8bba<\/h1>\n<p>\u6211\u8ba4\u4e3a\u53ef\u4ee5\u4f5c\u4e3a\u53ef\u7528\u6307\u6807\u7684\u6709namedprocess_namegroup_num_procs\u548cnamedprocess_namegroup_states\uff0c\u4f46\u8fd9\u4e24\u4e2a\u90fd\u53ea\u4f1a\u663e\u793a\u5206\u7ec4\u8ba1\u6570\u3002<\/p>\n<p>\u5982\u679c\u60f3\u8981\u68c0\u6d4b\u5230\u8fdb\u7a0b\u7684\u5168\u90e8\u6b7b\u4ea1\u7b49\u60c5\u51b5\uff0c\u8fd9\u4e2a\u65b9\u6cd5\u53ef\u4ee5\u4f7f\u7528\u5417\uff1f\u4f8b\u5982\uff0c\u5982\u679c\u60f3\u8981\u76d1\u89c6\u7279\u5b9a\u7684Java\u8fdb\u7a0b\uff0c\u53ef\u80fd\u9700\u8981\u5c06\u5b83\u4eec\u5168\u90e8\u5f52\u4e3aJava\u5206\u7ec4\uff0c\u53ef\u80fd\u4f1a\u6bd4\u8f83\u56f0\u96be\u3002<\/p>\n<p>\u5982\u679c\u4f7f\u7528\u65b9\u6cd5\u51fa\u9519\u6216\u6709\u4efb\u4f55\u6307\u6b63\uff0c\u8bf7\u544a\u8bc9\u6211\uff01<\/p>\n<h2>\u8ffd\u52a0\u4e8e2019\u5e745\u670816\u65e5<\/h2>\n<p>\u53d1\u5e03\u8fd9\u7bc7\u6587\u7ae0\u540e\uff0c\u6211\u7a0d\u5fae\u518d\u7814\u7a76\u4e86\u4e00\u4e0b\uff0c\u53d1\u73b0\u4e86\u4e0d\u540c\u7684\u7528\u6cd5\uff0c\u56e0\u6b64\u8fdb\u884c\u8ffd\u52a0\u3002<\/p>\n<p>\u53ea\u9700\u8981\u4e00\u4e2a\u9009\u9879\uff1a<\/p>\n<p>\u4f7f\u7528comm\u548ccmdline\u7684\u7ec4\u5408\u6280\u672f\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u53ea\u8981\u5177\u6709\u4e0d\u540c\u7684\u8fdb\u7a0bID\uff0c\u5c31\u53ef\u4ee5\u5c06\u5176\u8bc6\u522b\u4e3a\u4e0d\u540c\u7684\u8fdb\u7a0b\u3002<\/p>\n<p>\u6211\u5c06\u521b\u5efa\u4e00\u4e2a\u7528\u4e8e\u76d1\u542c\u7aef\u53e3\u7684Java\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u542f\u52a8\u5b83\u3002<\/p>\n<pre class=\"post-pre\"><code>$ ps -ef |grep java\r\nvagrant   4136  4060  0 05:14 pts\/1    00:00:00 java -jar Sample1.jar 8080\r\nvagrant   4148  4060  1 05:14 pts\/1    00:00:00 java -jar Sample2.jar 8081\r\nvagrant   4161  4060  0 05:14 pts\/1    00:00:00 grep --color=auto java\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u662fconfig\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cat config.yaml\r\nprocess_names:\r\n  - name: test1\r\n    comm:\r\n    - java\r\n    cmdline:\r\n    - Sample1.jar\r\n  - name: test2\r\n    comm:\r\n    - java\r\n    cmdline:\r\n    - Sample2.jar\r\n<\/code><\/pre>\n<p>\u6bcf\u4e2a\u90fd\u505a\u51fa\u89e3\u91ca\u3002<br \/>\n\u4f7f\u7528name\u6765\u6307\u5b9agroupname\u3002\u5728\u672c\u4f8b\u4e2d\uff0c\u4e3atest1,test2\u3002<br \/>\n\u4f7f\u7528comm\u6765\u6307\u5b9a\/proc\/{pid}\/state\u7684\u7b2c\u4e8c\u5217\u4e2d\u7684\u5b57\u7b26\u4e32\u3002<br \/>\n\u4ec5\u6709\u8fd9\u4e9b\u7684\u8bdd\u4f1a\u5c06\u6240\u6709\u5305\u542bjava\u7684\u5b57\u7b26\u4e32\u90fd\u5339\u914d\u4e0a\uff0c\u56e0\u6b64\u4f7f\u7528cmdline\u3002\u4f7f\u7528\u8fd9\u4e2a\u53c2\u6570\u53ef\u4ee5\u6307\u5b9a\u8981\u5339\u914d\u7684\u5b57\u7b26\u4e32\u3002\u4e5f\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3002\u6211\u8ba4\u4e3a\u5728\u8fd9\u91cc\u5e94\u8be5\u6307\u5b9a\u4e00\u4e2a\u80fd\u591f\u552f\u4e00\u6807\u8bc6\u8fdb\u7a0b\u7684\u5b57\u7b26\u4e32\u3002\uff08\u4f8b\u5982jar\u6587\u4ef6\u540d\u7b49\uff09<\/p>\n<p>\u6211\u4eec\u8bd5\u8bd5\u6253\u4e2a\u7ec8\u7aef\u70b9\u3002<\/p>\n<pre class=\"post-pre\"><code>$ curl http:\/\/192.168.33.31:9256\/metrics | grep namedprocess_namegroup_num_procs\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0# HELP namedprocess_namegroup_num_procs number of processes in this group\r\n# TYPE namedprocess_namegroup_num_procs gauge\r\nnamedprocess_namegroup_num_procs{groupname=\"test1\"} 1\r\nnamedprocess_namegroup_num_procs{groupname=\"test2\"} 1\r\n100 11500  100 11500    0     0  1169k      0 --:--:-- --:--:-- --:--:-- 1247k\r\n<\/code><\/pre>\n<p>\u6211\u5df2\u7ecf\u6210\u529f\u5730\u5c06Java\u8fdb\u7a0b\u5206\u9694\u5e76\u83b7\u53d6\u3002<\/p>\n<p>\u203b\u6ce8\u610f\u4e8b\u9879<br \/>\n\u7c7b\u4f3c\u4e8ePostgreSQL\u8fd9\u6837\u7684\u7236\u8fdb\u7a0b\u6d3e\u751f\u5b50\u8fdb\u7a0b\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u5728\u5b50\u8fdb\u7a0b\u4e2d\u8fdb\u884c\u5224\u65ad\uff0c\u4f46\u5bf9\u4e8e\u7236\u8fdb\u7a0b\u5219\u65e0\u6548\uff08\u5b50\u8fdb\u7a0b\u6570\u91cf\u4f1a\u4e00\u5e76\u8ba1\u7b97\u5728\u5185\uff09\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u5927\u5bb6\u597d\uff0c\u4f60\u4eec\u662f\u5982\u4f55\u8fdb\u884c\u8fdb\u7a0b\u76d1\u63a7\u7684\u5462\uff1f\u5728 Prometheus \u4e2d\uff0c\u6709\u4e00\u4e2a\u540d\u4e3a process_expor [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-43943","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Process_exporter\u4f7f\u7528\u6548\u679c\u4e0d\u4f73 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/process_exporter\u4f7f\u7528\u6548\u679c\u4e0d\u4f73\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Process_exporter\u4f7f\u7528\u6548\u679c\u4e0d\u4f73\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u5927\u5bb6\u597d\uff0c\u4f60\u4eec\u662f\u5982\u4f55\u8fdb\u884c\u8fdb\u7a0b\u76d1\u63a7\u7684\u5462\uff1f\u5728 Prometheus \u4e2d\uff0c\u6709\u4e00\u4e2a\u540d\u4e3a process_expor [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/process_exporter\u4f7f\u7528\u6548\u679c\u4e0d\u4f73\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-15T14:27:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-15T03:50:35+00:00\" \/>\n<meta name=\"author\" content=\"\u9038, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u9038, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/process_exporter%e4%bd%bf%e7%94%a8%e6%95%88%e6%9e%9c%e4%b8%8d%e4%bd%b3\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/process_exporter%e4%bd%bf%e7%94%a8%e6%95%88%e6%9e%9c%e4%b8%8d%e4%bd%b3\/\",\"name\":\"Process_exporter\u4f7f\u7528\u6548\u679c\u4e0d\u4f73 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2022-11-15T14:27:38+00:00\",\"dateModified\":\"2024-01-15T03:50:35+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/process_exporter%e4%bd%bf%e7%94%a8%e6%95%88%e6%9e%9c%e4%b8%8d%e4%bd%b3\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/process_exporter%e4%bd%bf%e7%94%a8%e6%95%88%e6%9e%9c%e4%b8%8d%e4%bd%b3\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/process_exporter%e4%bd%bf%e7%94%a8%e6%95%88%e6%9e%9c%e4%b8%8d%e4%bd%b3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Process_exporter\u4f7f\u7528\u6548\u679c\u4e0d\u4f73\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\",\"name\":\"\u9038, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"caption\":\"\u9038, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/process_exporter%e4%bd%bf%e7%94%a8%e6%95%88%e6%9e%9c%e4%b8%8d%e4%bd%b3\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Process_exporter\u4f7f\u7528\u6548\u679c\u4e0d\u4f73 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/process_exporter\u4f7f\u7528\u6548\u679c\u4e0d\u4f73\/","og_locale":"zh_CN","og_type":"article","og_title":"Process_exporter\u4f7f\u7528\u6548\u679c\u4e0d\u4f73","og_description":"\u9996\u5148 \u5927\u5bb6\u597d\uff0c\u4f60\u4eec\u662f\u5982\u4f55\u8fdb\u884c\u8fdb\u7a0b\u76d1\u63a7\u7684\u5462\uff1f\u5728 Prometheus \u4e2d\uff0c\u6709\u4e00\u4e2a\u540d\u4e3a process_expor [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/process_exporter\u4f7f\u7528\u6548\u679c\u4e0d\u4f73\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-11-15T14:27:38+00:00","article_modified_time":"2024-01-15T03:50:35+00:00","author":"\u9038, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u9038, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"10 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/process_exporter%e4%bd%bf%e7%94%a8%e6%95%88%e6%9e%9c%e4%b8%8d%e4%bd%b3\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/process_exporter%e4%bd%bf%e7%94%a8%e6%95%88%e6%9e%9c%e4%b8%8d%e4%bd%b3\/","name":"Process_exporter\u4f7f\u7528\u6548\u679c\u4e0d\u4f73 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2022-11-15T14:27:38+00:00","dateModified":"2024-01-15T03:50:35+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/process_exporter%e4%bd%bf%e7%94%a8%e6%95%88%e6%9e%9c%e4%b8%8d%e4%bd%b3\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/process_exporter%e4%bd%bf%e7%94%a8%e6%95%88%e6%9e%9c%e4%b8%8d%e4%bd%b3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/process_exporter%e4%bd%bf%e7%94%a8%e6%95%88%e6%9e%9c%e4%b8%8d%e4%bd%b3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Process_exporter\u4f7f\u7528\u6548\u679c\u4e0d\u4f73"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487","name":"\u9038, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","caption":"\u9038, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/process_exporter%e4%bd%bf%e7%94%a8%e6%95%88%e6%9e%9c%e4%b8%8d%e4%bd%b3\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/43943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=43943"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/43943\/revisions"}],"predecessor-version":[{"id":59210,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/43943\/revisions\/59210"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=43943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=43943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=43943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}