mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-10 06:56:38 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a41b9de37c | ||
|
|
745f0a6f61 |
@@ -138,18 +138,18 @@ func mangleNetworkName(name string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Win32_PerfRawData_Tcpip_NetworkInterface struct {
|
type Win32_PerfRawData_Tcpip_NetworkInterface struct {
|
||||||
BytesReceivedPerSec uint32
|
BytesReceivedPerSec uint64
|
||||||
BytesSentPerSec uint32
|
BytesSentPerSec uint64
|
||||||
BytesTotalPerSec uint64
|
BytesTotalPerSec uint64
|
||||||
Name string
|
Name string
|
||||||
PacketsOutboundDiscarded uint32
|
PacketsOutboundDiscarded uint64
|
||||||
PacketsOutboundErrors uint32
|
PacketsOutboundErrors uint64
|
||||||
PacketsPerSec uint32
|
PacketsPerSec uint64
|
||||||
PacketsReceivedDiscarded uint32
|
PacketsReceivedDiscarded uint64
|
||||||
PacketsReceivedErrors uint32
|
PacketsReceivedErrors uint64
|
||||||
PacketsReceivedPerSec uint32
|
PacketsReceivedPerSec uint64
|
||||||
PacketsReceivedUnknown uint32
|
PacketsReceivedUnknown uint64
|
||||||
PacketsSentPerSec uint32
|
PacketsSentPerSec uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *NetworkCollector) collect(ch chan<- prometheus.Metric) (*prometheus.Desc, error) {
|
func (c *NetworkCollector) collect(ch chan<- prometheus.Metric) (*prometheus.Desc, error) {
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ mkdir -Force Work,Output | Out-Null
|
|||||||
Write-Verbose "Downloading files"
|
Write-Verbose "Downloading files"
|
||||||
# Somewhat obscure url, points to WiX 3.10 binary release
|
# Somewhat obscure url, points to WiX 3.10 binary release
|
||||||
Write-Verbose "Downloading WiX..."
|
Write-Verbose "Downloading WiX..."
|
||||||
Get-FileIfNotExists "http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=wix&DownloadId=1504735&FileTime=130906491728530000&Build=21040" "$sourceDir\wix-binaries.zip"
|
Get-FileIfNotExists "http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=wix&DownloadId=1587180&FileTime=131118854877130000&Build=21046" "$sourceDir\wix-binaries.zip"
|
||||||
mkdir -Force WiX | Out-Null
|
mkdir -Force WiX | Out-Null
|
||||||
Expand-Archive -Path "${sourceDir}\wix-binaries.zip" -DestinationPath WiX -Force
|
Expand-Archive -Path "${sourceDir}\wix-binaries.zip" -DestinationPath WiX -Force
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user