1"use strict";(self.webpackChunkmetricshub_doc=self.webpackChunkmetricshub_doc||[]).push([["11463"],{7206(e,t,r){r.r(t),r.d(t,{metadata:()=>n,default:()=>p,frontMatter:()=>o,contentTitle:()=>c,toc:()=>d,assets:()=>l});var n=JSON.parse('{"id":"connectors/librehardwaremonitor","title":"Libre Hardware Monitor","description":"This connector enables hardware monitoring for processors, temperatures, fans, voltages, GPU, memory modules, physical disk of a computer.","source":"@site/docs/connectors/librehardwaremonitor.md","sourceDirName":"connectors","slug":"/connectors/librehardwaremonitor","permalink":"/docs/latest/connectors/librehardwaremonitor","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"title":"Libre Hardware Monitor","description":"This connector enables hardware monitoring for processors, temperatures, fans, voltages, GPU, memory modules, physical disk of a computer.","keywords":["metricshub","connector","librehardwaremonitor","microsoft windows"],"hide_table_of_contents":true,"displayed_sidebar":"docsSidebar","pagination_prev":null,"pagination_next":null},"sidebar":"docsSidebar"}'),s=r(74848),i=r(28453),a=r(6228);let o={title:"Libre Hardware Monitor",description:"This connector enables hardware monitoring for processors, temperatures, fans, voltages, GPU, memory modules, physical disk of a computer.",keywords:["metricshub","connector","librehardwaremonitor","microsoft windows"],hide_table_of_contents:!0,displayed_sidebar:"docsSidebar",pagination_prev:null,pagination_next:null},c="Libre Hardware Monitor",l={},d=[{value:"Description",id:"description",level:2},{value:"Target",id:"target",level:2},{value:"Prerequisites",id:"prerequisites",level:2},{value:"Examples",id:"examples",level:2},{value:"CLI",id:"cli",level:3},{value:"metricshub.yaml",id:"metricshubyaml",level:3},{value:"Connector Activation Criteria",id:"connector-activation-criteria",level:2},{value:"Metrics",id:"metrics",level:2}];function h(e){let t={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"libre-hardware-monitor",children:"Libre Hardware Monitor"})}),"\n",(0,s.jsx)(t.h2,{id:"description",children:"Description"}),"\n",(0,s.jsx)(t.p,{children:"This connector enables hardware monitoring for processors, temperatures, fans, voltages, GPU, memory modules, physical disk of a computer."}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.a,{href:"/docs/latest/connectors/tags/hardware",children:(0,s.jsx)(t.code,{children:"hardware"})})," ",(0,s.jsx)(t.a,{href:"/docs/latest/connectors/tags/windows",children:(0,s.jsx)(t.code,{children:"windows"})})]}),"\n",(0,s.jsxs)(t.admonition,{title:"Superseded Connector",type:"warning",children:[(0,s.jsx)(t.p,{children:"This connector is superseded by:"}),(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.a,{href:"/docs/latest/connectors/director61nt",children:"Director61NT"})}),"\n"]})]}),"\n",(0,s.jsx)(t.h2,{id:"target",children:"Target"}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"Typical platform:"})," ",(0,s.jsx)(t.a,{href:"/docs/latest/connectors/platforms/microsoft-windows",children:"Microsoft Windows"})]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"Operating system:"})," Microsoft Windows"]}),"\n",(0,s.jsx)(t.h2,{id:"prerequisites",children:"Prerequisites"}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"Leverages:"})," Libre Hardware Monitor"]}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.strong,{children:"Technology and protocols:"})," WMI"]}),"\n",(0,s.jsx)(t.h2,{id:"examples",children:"Examples"}),"\n",(0,s.jsx)(t.h3,{id:"cli",children:"CLI"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-batch",children:"metricshub HOSTNAME -t win -c +LibreHardwareMonitor --wmi -u USER\n"})}),"\n",(0,s.jsx)(t.h3,{id:"metricshubyaml",children:"metricshub.yaml"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-yaml",children:"resourceGroups:\n <RESOURCE_GROUP>:\n resources:\n <HOSTNAME-ID>:\n attributes:\n host.name: <HOSTNAME> # Change with actual host name\n host.type: win\n connectors: [ +LibreHardwareMonitor ] # Optional, to load only this connector\n protocols:\n wmi:\n username: <USERNAME> # Change with actual credentials\n password: <PASSWORD> # Encrypted using metricshub-encrypt\n"})}),"\n",(0,s.jsx)(t.h2,{id:"connector-activation-criteria",children:"Connector Activation Criteria"}),"\n",(0,s.jsxs)(t.p,{children:["The ",(0,s.jsx)(t.strong,{children:"Libre Hardware Monitor"})," connector will be automatically activated, and its status will be reported as OK if all the below criteria are met:"]}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:["The device type must be one of: ",(0,s.jsx)(t.strong,{children:"NT"})]}),"\n",(0,s.jsxs)(t.li,{children:["The ",(0,s.jsx)(t.strong,{children:"WMI query"})," below succeeds:","\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:["Namespace: ",(0,s.jsx)(t.code,{children:"root\\LibreHardwareMonitor"})]}),"\n",(0,s.jsxs)(t.li,{children:["Query: ",(0,s.jsx)(t.code,{children:"SELECT Name FROM WMINET_InstrumentedAssembly"})]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(t.h2,{id:"metrics",children:"Metrics"}
1),"\n",(0,s.jsx)(a.A,{data:[{type:"cpu",metrics:["hw.cpu.speed",'hw.energy{hw.type="cpu"}','hw.power{hw.type="cpu"}','hw.status{hw.type="cpu", state="present"}'],attributes:["hw.parent.id","hw.parent.type","id","model","name"]},{type:"enclosure",metrics:['hw.status{hw.type="enclosure", state="present"}'],attributes:["id","model","name","type","vendor"]},{type:"fan",metrics:["hw.fan.speed",'hw.status{hw.type="fan", state="present"}'],attributes:["hw.parent.id","hw.parent.type","id","name"]},{type:"gpu",metrics:['hw.energy{hw.type="gpu"}','hw.gpu.io{direction="receive"}','hw.gpu.io{direction="transmit"}',"hw.gpu.memory.limit","hw.gpu.memory.utilization",'hw.gpu.utilization{task="decoder"}','hw.gpu.utilization{task="encoder"}','hw.gpu.utilization{task="general"}','hw.power{hw.type="gpu"}','hw.status{hw.type="gpu", state="present"}'],attributes:["hw.parent.id","hw.parent.type","id","name","vendor"]},{type:"memory",metrics:["hw.memory.limit",'hw.status{hw.type="memory", state="present"}'],attributes:["hw.parent.id","hw.parent.type","id","name"]},{type:"physical_disk",metrics:['hw.physical_disk.endurance_utilization{state="remaining"}','hw.status{hw.type="physical_disk", state="present"}'],attributes:["hw.parent.id","hw.parent.type","id","name","vendor"]},{type:"temperature",metrics:['hw.status{hw.type="temperature", state="present"}',"hw.temperature",'hw.temperature.limit{limit_type="high.critical"}','hw.temperature.limit{limit_type="high.degraded"}'],attributes:["hw.parent.id","hw.parent.type","id","name","sensor_location"]},{type:"voltage",metrics:['hw.status{hw.type="voltage", state="present"}',"hw.voltage"],attributes:["hw.parent.id","hw.parent.type","id","name","sensor_location"]}]})]})}function p(e={}){let{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},6228(e,t,r){r.d(t,{A:()=>i});var n=r(74848),s=r(96540);function i({data:e}){return e&&0!==e.length?(0,n.jsx)("div",{className:"tableWrapper_qs3z",children:(0,n.jsxs)("table",{className:"metricsTable_SMom",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"Type"}),(0,n.jsx)("th",{children:"Collected Metrics"}),(0,n.jsx)("th",{children:"Specific Attributes"})]})}),(0,n.jsx)("tbody",{children:e.map((e,t)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"typeCell_BkqM",children:(0,n.jsx)("strong",{children:e.type})}),(0,n.jsx)("td",{className:"metricsCell_ll3D",children:e.metrics.length>0?e.metrics.map((t,r)=>(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("code",{children:t}),r<e.metrics.length-1&&(0,n.jsx)("br",{})]},r)):"-"}),(0,n.jsx)("td",{className:"attributesCell_x8LT",children:e.attributes.length>0?e.attributes.map((t,r)=>(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("code",{children:t}),r<e.attributes.length-1&&(0,n.jsx)("br",{})]},r)):"-"})]},t))})]})}):(0,n.jsx)("p",{children:"No specific metrics are collected by this connector."})}},28453(e,t,r){r.d(t,{R:()=>a,x:()=>o});var n=r(96540);let s={},i=n.createContext(s);function a(e){let t=n.useContext(i);return n.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),n.createElement(i.Provider,{value:t},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.