【Windows 10】Prometheus监控平台安装以及配置windows Exporter探针

这篇具有很好参考价值的文章主要介绍了【Windows 10】Prometheus监控平台安装以及配置windows Exporter探针。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

Prometheus

简介

Prometheus是一个开放性的监控解决方案,用户可以非常方便的安装和使用Prometheus并且能够非常方便的对其进行扩展。
在Prometheus的架构设计中,Prometheus Server并不直接服务监控特定的目标,其主要任务负责数据的收集,存储并且对外提供数据查询支持。因此为了能够能够监控到某些东西,如主机的CPU使用率,我们需要使用到Exporter。Prometheus周期性的从Exporter暴露的HTTP服务地址(通常是/metrics)拉取监控样本数据。
Exporter可以是一个相对开放的概念,其可以是一个独立运行的程序独立于监控目标以外,也可以是直接内置在监控目标中。只要能够向Prometheus提供标准格式的监控样本数据即可。

更详细的文档请戳:Prometheus 中文文档

Prometheus下载安装

下载地址:https://prometheus.io/download/
【Windows 10】Prometheus监控平台安装以及配置windows Exporter探针
下载完成后,解压压缩包,直接运行prometheus.exe即可。

访问Prometheus

prometheus默认端口是9090,在浏览器输入:localhost:9090即可访问。
【Windows 10】Prometheus监控平台安装以及配置windows Exporter探针

也可以在prometheus.yaml中修改默认端口。
【Windows 10】Prometheus监控平台安装以及配置windows Exporter探针

Windows Exporter

下载安装

Windows Exporter 由 Prometheus Community 维护,官方地址是:https://github.com/prometheus-community/windows_exporter 。 当前版本是 v0.18.0 ,发行于 2022.02.05 。

Windows Exporter 是一个采集 Windows 机器指标的采集器。支持 Windows Server 2008R2 以上版本或者 Windows 7 以上版本。

Windows Exporter 在发布的是时候提供了两种格式的文件,分别是 *.exe 和 *.msi 。

MSI (Microsoft Installers)是 Windows 的包管理器,类似于 Linux 的 rpm 。

Windows Exporter 每个版本都提供一个 .msi 安装程序。安装程序将 windows_exporter 设置为 Windows 服务,并在 Windows 防火墙中创建一个异常。

我们在使用的时候可以选择任意一种格式来进行安装。

下载地址:https://github.com/prometheus-community/windows_exporter/releases
【Windows 10】Prometheus监控平台安装以及配置windows Exporter探针
下载完成后,管理员直接运行windows_exporter-0.18.1-amd64.exe文件即可。

访问Windows Exporter

windows_exporter默认端口是9182,在浏览器输入:localhost:9182即可访问。
【Windows 10】Prometheus监控平台安装以及配置windows Exporter探针

采集的指标

这个列表是 Windows Exporter 支持采集的指标,有一些指标是启动后缺省会打开的,有一些是需要手动打开的。
https://github.com/prometheus-community/windows_exporter

名称 说明 是否默认开启
ad Active Directory Domain Services ×
adcs Active Directory Certificate Services ×
adfs Active Directory Federation Services ×
cache Cache metrics ×
cpu CPU usage
cpu_info CPU Information ×
cs “Computer System” metrics(system properties, num cpu / total memory)
container Container metrics ×
dfsr DFSR metrics ×
dhcp DHCP Server ×
dns DNS Server ×
exchange Exchange metrics ×
hyperv Hyper-V hosts ×
iis IIS sites and applications ×
logical_disk Logical disks, disk I/O
logon User logon sessions ×
memory Memory usage metrics ×
msmq MSMQ queues ×
mssql SQL Server Performance Objects metrics ×
netframework_clrexceptions .NET Framework CLR Exceptions ×
netframework_clrinterop .NET Framework Interop Metrics ×
netframework_clrjit .NET Framework JIT metrics ×
netframework_clrloading .NET Framework CLR Loading metrics ×
netframework_clrlocksandthreads .NET Framework locks and metrics threads ×
netframework_clrmemory .NET Framework Memory metrics ×
netframework_clrremoting .NET Framework Remoting metrics ×
netframework_clrsecurity .NET Framework Security Check metrics ×
net Network interface I/O
os OS metrics (memory, processes, users)
process Per-process metrics ×
remote_fx RemoteFX protocol (RDP) metrics ×
service Service state metrics
smtp IIS SMTP Server ×
system System calls
tcp TCP connections ×
time Windows Time Service ×
thermalzone Thermal information ×
terminal_services Terminal services (RDS) ×
textfile Read prometheus metrics from a text file
vmware Performance counters installed by the Vmware Guest agent ×

使用配置文件

Windows Exporter 支持使用 --config.file 参数来指定一个 YAML 格式的文件作为配置文件来启动,比如: .\windows_exporter.exe --config.file=config.yml .
这个配置文件支持配置要采集的内容,日志、等内容。

Prometheus配置exporter

打开prometheus的配置文件:
【Windows 10】Prometheus监控平台安装以及配置windows Exporter探针
在prometheus.yaml中加上如下内容:

	- job_name: “windows_exporter”
	
	# you can customize the job name’.
	  static_configs:
		- targets: ["localhost:9182", "10.47.38.66:9182", "10.47.38.62:9182"]

【Windows 10】Prometheus监控平台安装以及配置windows Exporter探针

重启prometheus即可查看已经配置好的exporter。
【Windows 10】Prometheus监控平台安装以及配置windows Exporter探针

了解更多的Exporter

关于Exporter的介绍可以看这篇文章,介绍的非常详细。
https://xie.infoq.cn/article/230d2f31f102259dfe821519f文章来源地址https://www.toymoban.com/news/detail-442812.html

到了这里,关于【Windows 10】Prometheus监控平台安装以及配置windows Exporter探针的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • Windows10下TELEDYNE DALSA相机连接电脑以及网卡配置教程

    右键相机,选择Scan Network 选择SHOW Status Dialog Box,出现发现的设备 设备显示为红色说明连接有问题,这里有两种解决办法,一种是以下文件中的中的以下章节进行配置 还有一种是直接通过修改网口ip来进行,步骤如下: 打开控制面板,选择网络和Internet 选择网络和共享中心

    2024年02月10日
    浏览(35)
  • Mac安装虚拟机Parallels Desktop,以及Windows10系统详细教程

    Mac的老用户想必对Parallels Desktop已经非常熟悉,一款运行快速、操作简单、功能强大的应用程序,无需重启即可在您的Intel 或 Apple M 系列Mac 上运行Windows。包含 40 多种一键式工具,可简化 Mac 和Windows上的日常任务。无需重启,即可在 Mac 上运行 Windows。 Parallels Desktop安装包 链接

    2023年04月08日
    浏览(39)
  • 在Windows10平台安装Blender 3D建模软件并调用Python API接口

    要在Windows上安装Blender(https://www.blender.org/),请按照以下步骤操作: 首先,从Blender官网下载最新版本的Blender。请确保选择适用于您的操作系统的版本,例如Windows 64位。 下载完成后,打开安装程序。按照向导的指示进行操作,包括选择安装位置和添加快捷方式等选项。 安

    2024年02月16日
    浏览(30)
  • 全网最详细的zabbix监控(zabbix安装和配置、web页面配置、监控Linux主机、监控华为交换机、监控Windows、监控nginx)

    目录 前言 一、准备工作 二、zabbix server端 三、zabbix-agent Linux客户端的安装 四、zabbix-agent Windows客户端的安装 五、使用zabbix监控nginx 六、使用zabbix监控华为交换机 七、结尾 什么是zabbix? zabbix安装是当下主流的监控解决方案,zabbix安装与配置简单,学习成本低,完全开源免费

    2023年04月26日
    浏览(36)
  • Windows:prometheus + grafana + wmi_exporter+ 主机信息监控页面 + 支持主机信息告警

    下载地址:Download | Prometheus 选择对应的系统的版本下载并解压压缩包,运行程序 本人在window系统上操作 双击 验证 浏览器输入http://localhost:9090/ 点击Staatus=Targets 出现以下即成功   下载地址:Download Grafana | Grafana Labs 同理选择对应的系统下载(本人通篇均使用window系统 下载并

    2024年02月12日
    浏览(32)
  • Anaconda平台下从0到1安装TensorFlow环境详细教程(Windows10+Python)

    Anaconda下载链接:Free Download | Anaconda 下载完成之后,开始安装,修改安装路径至指定文件夹下,由于安装过程比较简单,此处略过;   在安装之前,我们需要如下准备工作 2.1 确定电脑的独显GPU型号,查看方式如下:搜索--计算机管理--设备管理器--显示适配器;如下图所示,

    2024年02月11日
    浏览(33)
  • windows10下安装和配置nodejs环境

    官方下载地址:下载最新LTS windows版本:  16.15.0  (includes npm 8.5.5)  Node.js ,如下图 安装可以更改安装路径(我的是默认地址 C:Program Files ) 其余的都是选择 下一步, 安装  测试是否安装 成功 打开开始菜单中输入cmd,打开cmd命令窗口,分别输入如下命令 node -v 查看node的版本 npm

    2023年04月26日
    浏览(33)
  • Windows10安装配置MySQL超详细教程(最新)

    用网盘或者去官网下载Mysql,我这里下载的是社区版,与企业版区别不大 官网下载链接:https://dev.mysql.com/downloads/mysql/ 第一个安装包比较小, 第二个安装包比较大, 因为包含调试工具,我这里下载的是第一个。 选择下方的 “No thanks, just start my download.”,进入下载。 这里的 解

    2023年04月08日
    浏览(27)
  • Windows 上 ElasticSearch 8 的安装以及配置

    Elastic search 的安装以及下载 Elasticsearch 使用 Java 语言开发,在安装之前需要安装 JDK 环境。基本支持所有主流操作系统,安装包在官网下载,目前最新的版本为 8.6.1 。  打开页面之后选择Windows版本之后便可以下载其压缩包了。 本地配置 下载完之后,对于elasticsearch-8.6.1-wind

    2024年01月17日
    浏览(25)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包