通过Grafana与prometheus监控windows指定进程的CPU与内存

windows_exporter的官方文档
windows_exporter是可以带参数启动的

–collector.process.whitelist
Regexp of processes to include. Process name must both match whitelist and not match blacklist to be included. Recommended to keep down number of returned metrics.

–collector.process.blacklist Regexp of processes to exclude. Process name must both match whitelist and not match blacklist to be included.
Recommended to keep down number of returned metrics.

Example To match all firefox processes:
–collector.process.whitelist=“firefox.+”. Note that multiple processes with the same name will be disambiguated by Windows by
adding a number suffix, such as firefox#2. Your regexp must take these
suffixes into consideration.

⚠️ The regexp is case-sensitive, so
–collector.process.whitelist=“FIREFOX.+” will NOT match a process named firefox .

To specify multiple names, use the pipe | character:

–collector.process.whitelist=“firefox.+|FIREFOX.+|chrome.+” This will match all processes named firefox, FIREFOX or chrome .

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值