From ba3cffdc79a3aac81010266d1cd4d5a144aadb6f Mon Sep 17 00:00:00 2001 From: Tom Powell Date: Wed, 8 Feb 2023 09:30:36 +0000 Subject: [PATCH] Applying PR comments Signed-off-by: Tom Powell --- collector/teradici_pcoip.go | 82 +++++------ collector/teradici_pcoip_test.go | 4 +- collector/vmware_blast.go | 232 +++++++++++++++---------------- collector/vmware_blast_test.go | 4 +- docs/collector.teradici_pcoip.md | 28 ++-- docs/collector.vmware_blast.md | 122 ++++++++-------- 6 files changed, 236 insertions(+), 236 deletions(-) diff --git a/collector/teradici_pcoip.go b/collector/teradici_pcoip.go index 0ee230ac..cda5b756 100644 --- a/collector/teradici_pcoip.go +++ b/collector/teradici_pcoip.go @@ -12,17 +12,17 @@ import ( ) func init() { - registerCollector("teradici_pcoip", NewTeradiciPcoipCollector) + registerCollector("teradici_pcoip", newTeradiciPcoipCollector) } -// A TeradiciPcoipCollector is a Prometheus collector for WMI metrics: -// Win32_PerfRawData_TeradiciPerf_PCoIPSessionAudioStatistics -// Win32_PerfRawData_TeradiciPerf_PCoIPSessionGeneralStatistics -// Win32_PerfRawData_TeradiciPerf_PCoIPSessionImagingStatistics -// Win32_PerfRawData_TeradiciPerf_PCoIPSessionNetworkStatistics -// Win32_PerfRawData_TeradiciPerf_PCoIPSessionUsbStatistics +// A teradiciPcoipCollector is a Prometheus collector for WMI metrics: +// win32_PerfRawData_TeradiciPerf_PCoIPSessionAudioStatistics +// win32_PerfRawData_TeradiciPerf_PCoIPSessionGeneralStatistics +// win32_PerfRawData_TeradiciPerf_PCoIPSessionImagingStatistics +// win32_PerfRawData_TeradiciPerf_PCoIPSessionNetworkStatistics +// win32_PerfRawData_TeradiciPerf_PCoIPSessionUsbStatistics -type TeradiciPcoipCollector struct { +type teradiciPcoipCollector struct { AudioBytesReceived *prometheus.Desc AudioBytesSent *prometheus.Desc AudioRXBWkbitPersec *prometheus.Desc @@ -66,18 +66,18 @@ type TeradiciPcoipCollector struct { USBTXBWkbitPersec *prometheus.Desc } -// NewTeradiciPcoipCollector constructs a new TeradiciPcoipCollector -func NewTeradiciPcoipCollector() (Collector, error) { +// newTeradiciPcoipCollector constructs a new teradiciPcoipCollector +func newTeradiciPcoipCollector() (Collector, error) { const subsystem = "teradici_pcoip" - return &TeradiciPcoipCollector{ + return &teradiciPcoipCollector{ AudioBytesReceived: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "audio_bytes_received"), + prometheus.BuildFQName(Namespace, subsystem, "audio_bytes_received_total"), "(AudioBytesReceived)", nil, nil, ), AudioBytesSent: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "audio_bytes_sent"), + prometheus.BuildFQName(Namespace, subsystem, "audio_bytes_sent_total"), "(AudioBytesSent)", nil, nil, @@ -102,43 +102,43 @@ func NewTeradiciPcoipCollector() (Collector, error) { ), BytesReceived: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "bytes_received"), + prometheus.BuildFQName(Namespace, subsystem, "bytes_received_total"), "(BytesReceived)", nil, nil, ), BytesSent: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "bytes_sent"), + prometheus.BuildFQName(Namespace, subsystem, "bytes_sent_total"), "(BytesSent)", nil, nil, ), PacketsReceived: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "packets_received"), + prometheus.BuildFQName(Namespace, subsystem, "packets_received_total"), "(PacketsReceived)", nil, nil, ), PacketsSent: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "packets_sent"), + prometheus.BuildFQName(Namespace, subsystem, "packets_sent_total"), "(PacketsSent)", nil, nil, ), RXPacketsLost: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "rx_packets_lost"), + prometheus.BuildFQName(Namespace, subsystem, "rx_packets_lost_total"), "(RXPacketsLost)", nil, nil, ), SessionDurationSeconds: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "session_duration_seconds"), + prometheus.BuildFQName(Namespace, subsystem, "session_duration_seconds_total"), "(SessionDurationSeconds)", nil, nil, ), TXPacketsLost: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "tx_packets_lost"), + prometheus.BuildFQName(Namespace, subsystem, "tx_packets_lost_total"), "(TXPacketsLost)", nil, nil, @@ -157,13 +157,13 @@ func NewTeradiciPcoipCollector() (Collector, error) { nil, ), ImagingBytesReceived: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "imaging_bytes_received"), + prometheus.BuildFQName(Namespace, subsystem, "imaging_bytes_received_total"), "(ImagingBytesReceived)", nil, nil, ), ImagingBytesSent: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "imaging_bytes_sent"), + prometheus.BuildFQName(Namespace, subsystem, "imaging_bytes_sent_total"), "(ImagingBytesSent)", nil, nil, @@ -187,7 +187,7 @@ func NewTeradiciPcoipCollector() (Collector, error) { nil, ), ImagingNegativeAcknowledgements: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "imaging_negative_acks"), + prometheus.BuildFQName(Namespace, subsystem, "imaging_negative_acks_total"), "(ImagingNegativeAcknowledgements)", nil, nil, @@ -273,13 +273,13 @@ func NewTeradiciPcoipCollector() (Collector, error) { ), USBBytesReceived: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "usb_bytes_received"), + prometheus.BuildFQName(Namespace, subsystem, "usb_bytes_received_total"), "(USBBytesReceived)", nil, nil, ), USBBytesSent: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "usb_bytes_sent"), + prometheus.BuildFQName(Namespace, subsystem, "usb_bytes_sent_total"), "(USBBytesSent)", nil, nil, @@ -301,7 +301,7 @@ func NewTeradiciPcoipCollector() (Collector, error) { // Collect sends the metric values for each metric // to the provided prometheus Metric channel. -func (c *TeradiciPcoipCollector) Collect(ctx *ScrapeContext, ch chan<- prometheus.Metric) error { +func (c *teradiciPcoipCollector) Collect(ctx *ScrapeContext, ch chan<- prometheus.Metric) error { if desc, err := c.collectAudio(ch); err != nil { log.Error("failed collecting teradici session audio metrics:", desc, err) return err @@ -325,7 +325,7 @@ func (c *TeradiciPcoipCollector) Collect(ctx *ScrapeContext, ch chan<- prometheu return nil } -type Win32_PerfRawData_TeradiciPerf_PCoIPSessionAudioStatistics struct { +type win32_PerfRawData_TeradiciPerf_PCoIPSessionAudioStatistics struct { AudioBytesReceived uint64 AudioBytesSent uint64 AudioRXBWkbitPersec uint64 @@ -333,7 +333,7 @@ type Win32_PerfRawData_TeradiciPerf_PCoIPSessionAudioStatistics struct { AudioTXBWLimitkbitPersec uint64 } -type Win32_PerfRawData_TeradiciPerf_PCoIPSessionGeneralStatistics struct { +type win32_PerfRawData_TeradiciPerf_PCoIPSessionGeneralStatistics struct { BytesReceived uint64 BytesSent uint64 PacketsReceived uint64 @@ -343,7 +343,7 @@ type Win32_PerfRawData_TeradiciPerf_PCoIPSessionGeneralStatistics struct { TXPacketsLost uint64 } -type Win32_PerfRawData_TeradiciPerf_PCoIPSessionImagingStatistics struct { +type win32_PerfRawData_TeradiciPerf_PCoIPSessionImagingStatistics struct { ImagingActiveMinimumQuality uint32 ImagingApex2800Offload uint32 ImagingBytesReceived uint64 @@ -357,7 +357,7 @@ type Win32_PerfRawData_TeradiciPerf_PCoIPSessionImagingStatistics struct { ImagingTXBWkbitPersec uint64 } -type Win32_PerfRawData_TeradiciPerf_PCoIPSessionNetworkStatistics struct { +type win32_PerfRawData_TeradiciPerf_PCoIPSessionNetworkStatistics struct { RoundTripLatencyms uint32 RXBWkbitPersec uint64 RXBWPeakkbitPersec uint32 @@ -370,15 +370,15 @@ type Win32_PerfRawData_TeradiciPerf_PCoIPSessionNetworkStatistics struct { TXPacketLossPercent_Base uint32 } -type Win32_PerfRawData_TeradiciPerf_PCoIPSessionUsbStatistics struct { +type win32_PerfRawData_TeradiciPerf_PCoIPSessionUsbStatistics struct { USBBytesReceived uint64 USBBytesSent uint64 USBRXBWkbitPersec uint64 USBTXBWkbitPersec uint64 } -func (c *TeradiciPcoipCollector) collectAudio(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { - var dst []Win32_PerfRawData_TeradiciPerf_PCoIPSessionAudioStatistics +func (c *teradiciPcoipCollector) collectAudio(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { + var dst []win32_PerfRawData_TeradiciPerf_PCoIPSessionAudioStatistics q := queryAll(&dst) if err := wmi.Query(q, &dst); err != nil { return nil, err @@ -420,8 +420,8 @@ func (c *TeradiciPcoipCollector) collectAudio(ch chan<- prometheus.Metric) (*pro return nil, nil } -func (c *TeradiciPcoipCollector) collectGeneral(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { - var dst []Win32_PerfRawData_TeradiciPerf_PCoIPSessionGeneralStatistics +func (c *teradiciPcoipCollector) collectGeneral(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { + var dst []win32_PerfRawData_TeradiciPerf_PCoIPSessionGeneralStatistics q := queryAll(&dst) if err := wmi.Query(q, &dst); err != nil { return nil, err @@ -475,8 +475,8 @@ func (c *TeradiciPcoipCollector) collectGeneral(ch chan<- prometheus.Metric) (*p return nil, nil } -func (c *TeradiciPcoipCollector) collectImaging(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { - var dst []Win32_PerfRawData_TeradiciPerf_PCoIPSessionImagingStatistics +func (c *teradiciPcoipCollector) collectImaging(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { + var dst []win32_PerfRawData_TeradiciPerf_PCoIPSessionImagingStatistics q := queryAll(&dst) if err := wmi.Query(q, &dst); err != nil { return nil, err @@ -554,8 +554,8 @@ func (c *TeradiciPcoipCollector) collectImaging(ch chan<- prometheus.Metric) (*p return nil, nil } -func (c *TeradiciPcoipCollector) collectNetwork(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { - var dst []Win32_PerfRawData_TeradiciPerf_PCoIPSessionNetworkStatistics +func (c *teradiciPcoipCollector) collectNetwork(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { + var dst []win32_PerfRawData_TeradiciPerf_PCoIPSessionNetworkStatistics q := queryAll(&dst) if err := wmi.Query(q, &dst); err != nil { return nil, err @@ -627,8 +627,8 @@ func (c *TeradiciPcoipCollector) collectNetwork(ch chan<- prometheus.Metric) (*p return nil, nil } -func (c *TeradiciPcoipCollector) collectUsb(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { - var dst []Win32_PerfRawData_TeradiciPerf_PCoIPSessionUsbStatistics +func (c *teradiciPcoipCollector) collectUsb(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { + var dst []win32_PerfRawData_TeradiciPerf_PCoIPSessionUsbStatistics q := queryAll(&dst) if err := wmi.Query(q, &dst); err != nil { return nil, err diff --git a/collector/teradici_pcoip_test.go b/collector/teradici_pcoip_test.go index 8593d792..99149575 100644 --- a/collector/teradici_pcoip_test.go +++ b/collector/teradici_pcoip_test.go @@ -4,6 +4,6 @@ import ( "testing" ) -func BenchmarkTeradiciPcoipCollector(b *testing.B) { - benchmarkCollector(b, "teradici_pcoip", NewTeradiciPcoipCollector) +func benchmarkTeradiciPcoipCollector(b *testing.B) { + benchmarkCollector(b, "teradici_pcoip", newTeradiciPcoipCollector) } diff --git a/collector/vmware_blast.go b/collector/vmware_blast.go index f72934e9..320f6c01 100644 --- a/collector/vmware_blast.go +++ b/collector/vmware_blast.go @@ -10,24 +10,24 @@ import ( ) func init() { - registerCollector("vmware_blast", NewVmwareBlastCollector) + registerCollector("vmware_blast", newVmwareBlastCollector) } -// A VmwareBlastCollector is a Prometheus collector for WMI metrics: -// Win32_PerfRawData_Counters_VMwareBlastAudioCounters -// Win32_PerfRawData_Counters_VMwareBlastCDRCounters -// Win32_PerfRawData_Counters_VMwareBlastClipboardCounters -// Win32_PerfRawData_Counters_VMwareBlastHTML5MMRCounters -// Win32_PerfRawData_Counters_VMwareBlastImagingCounters -// Win32_PerfRawData_Counters_VMwareBlastRTAVCounters -// Win32_PerfRawData_Counters_VMwareBlastSerialPortandScannerCounters -// Win32_PerfRawData_Counters_VMwareBlastSessionCounters -// Win32_PerfRawData_Counters_VMwareBlastSkypeforBusinessControlCounters -// Win32_PerfRawData_Counters_VMwareBlastThinPrintCounters -// Win32_PerfRawData_Counters_VMwareBlastUSBCounters -// Win32_PerfRawData_Counters_VMwareBlastWindowsMediaMMRCounters +// A vmwareBlastCollector is a Prometheus collector for WMI metrics: +// win32_PerfRawData_Counters_VMwareBlastAudioCounters +// win32_PerfRawData_Counters_VMwareBlastCDRCounters +// win32_PerfRawData_Counters_VMwareBlastClipboardCounters +// win32_PerfRawData_Counters_VMwareBlastHTML5MMRCounters +// win32_PerfRawData_Counters_VMwareBlastImagingCounters +// win32_PerfRawData_Counters_VMwareBlastRTAVCounters +// win32_PerfRawData_Counters_VMwareBlastSerialPortandScannerCounters +// win32_PerfRawData_Counters_VMwareBlastSessionCounters +// win32_PerfRawData_Counters_VMwareBlastSkypeforBusinessControlCounters +// win32_PerfRawData_Counters_VMwareBlastThinPrintCounters +// win32_PerfRawData_Counters_VMwareBlastUSBCounters +// win32_PerfRawData_Counters_VMwareBlastWindowsMediaMMRCounters -type VmwareBlastCollector struct { +type vmwareBlastCollector struct { AudioReceivedBytes *prometheus.Desc AudioReceivedPackets *prometheus.Desc AudioTransmittedBytes *prometheus.Desc @@ -110,105 +110,105 @@ type VmwareBlastCollector struct { WindowsMediaMMRTransmittedPackets *prometheus.Desc } -// NewVmwareBlastCollector constructs a new VmwareBlastCollector -func NewVmwareBlastCollector() (Collector, error) { +// newVmwareBlastCollector constructs a new vmwareBlastCollector +func newVmwareBlastCollector() (Collector, error) { const subsystem = "vmware_blast" - return &VmwareBlastCollector{ + return &vmwareBlastCollector{ AudioReceivedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "audio_received_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "audio_received_bytes_total"), "(AudioReceivedBytes)", nil, nil, ), AudioReceivedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "audio_received_packets"), + prometheus.BuildFQName(Namespace, subsystem, "audio_received_packets_total"), "(AudioReceivedPackets)", nil, nil, ), AudioTransmittedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "audio_transmitted_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "audio_transmitted_bytes_total"), "(AudioTransmittedBytes)", nil, nil, ), AudioTransmittedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "audio_transmitted_packets"), + prometheus.BuildFQName(Namespace, subsystem, "audio_transmitted_packets_total"), "(AudioTransmittedPackets)", nil, nil, ), CDRReceivedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "cdr_received_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "cdr_received_bytes_total"), "(CDRReceivedBytes)", nil, nil, ), CDRReceivedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "cdr_received_packets"), + prometheus.BuildFQName(Namespace, subsystem, "cdr_received_packets_total"), "(CDRReceivedPackets)", nil, nil, ), CDRTransmittedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "cdr_transmitted_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "cdr_transmitted_bytes_total"), "(CDRTransmittedBytes)", nil, nil, ), CDRTransmittedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "cdr_transmitted_packets"), + prometheus.BuildFQName(Namespace, subsystem, "cdr_transmitted_packets_total"), "(CDRTransmittedPackets)", nil, nil, ), ClipboardReceivedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "clipboard_received_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "clipboard_received_bytes_total"), "(ClipboardReceivedBytes)", nil, nil, ), ClipboardReceivedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "clipboard_received_packets"), + prometheus.BuildFQName(Namespace, subsystem, "clipboard_received_packets_total"), "(ClipboardReceivedPackets)", nil, nil, ), ClipboardTransmittedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "clipboard_transmitted_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "clipboard_transmitted_bytes_total"), "(ClipboardTransmittedBytes)", nil, nil, ), ClipboardTransmittedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "clipboard_transmitted_packets"), + prometheus.BuildFQName(Namespace, subsystem, "clipboard_transmitted_packets_total"), "(ClipboardTransmittedPackets)", nil, nil, ), HTML5MMRReceivedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "html5_mmr_received_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "html5_mmr_received_bytes_total"), "(HTML5MMRReceivedBytes)", nil, nil, ), HTML5MMRReceivedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "html5_mmr_received_packets"), + prometheus.BuildFQName(Namespace, subsystem, "html5_mmr_received_packets_total"), "(HTML5MMRReceivedPackets)", nil, nil, ), HTML5MMRTransmittedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "html5_mmr_transmitted_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "html5_mmr_transmitted_bytes_total"), "(HTML5MMRTransmittedBytes)", nil, nil, ), HTML5MMRTransmittedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "html5_mmr_transmitted_packets"), + prometheus.BuildFQName(Namespace, subsystem, "html5_mmr_transmitted_packets_total"), "(HTML5MMRTransmittedPackets)", nil, nil, @@ -239,130 +239,130 @@ func NewVmwareBlastCollector() (Collector, error) { nil, ), ImagingReceivedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "imaging_received_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "imaging_received_bytes_total"), "(ImagingReceivedBytes)", nil, nil, ), ImagingReceivedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "imaging_received_packets"), + prometheus.BuildFQName(Namespace, subsystem, "imaging_received_packets_total"), "(ImagingReceivedPackets)", nil, nil, ), ImagingTotalDirtyFrames: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "imaging_total_dirty_frames"), + prometheus.BuildFQName(Namespace, subsystem, "imaging_total_dirty_frames_total"), "(ImagingTotalDirtyFrames)", nil, nil, ), ImagingTotalFBC: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "imaging_total_fbc"), + prometheus.BuildFQName(Namespace, subsystem, "imaging_fbc_total"), "(ImagingTotalFBC)", nil, nil, ), ImagingTotalFrames: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "imaging_total_frames"), + prometheus.BuildFQName(Namespace, subsystem, "imaging_frames_total"), "(ImagingTotalFrames)", nil, nil, ), ImagingTotalPoll: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "imaging_total_poll"), + prometheus.BuildFQName(Namespace, subsystem, "imaging_poll_total"), "(ImagingTotalPoll)", nil, nil, ), ImagingTransmittedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "imaging_transmitted_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "imaging_transmitted_bytes_total"), "(ImagingTransmittedBytes)", nil, nil, ), ImagingTransmittedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "imaging_transmitted_packets"), + prometheus.BuildFQName(Namespace, subsystem, "imaging_transmitted_packets_total"), "(ImagingTransmittedPackets)", nil, nil, ), RTAVReceivedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "rtav_received_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "rtav_received_bytes_total"), "(RTAVReceivedBytes)", nil, nil, ), RTAVReceivedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "rtav_received_packets"), + prometheus.BuildFQName(Namespace, subsystem, "rtav_received_packets_total"), "(RTAVReceivedPackets)", nil, nil, ), RTAVTransmittedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "rtav_transmitted_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "rtav_transmitted_bytes_total"), "(RTAVTransmittedBytes)", nil, nil, ), RTAVTransmittedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "rtav_transmitted_packets"), + prometheus.BuildFQName(Namespace, subsystem, "rtav_transmitted_packets_total"), "(RTAVTransmittedPackets)", nil, nil, ), SerialPortandScannerReceivedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "serial_port_and_scanner_received_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "serial_port_and_scanner_received_bytes_total"), "(SerialPortandScannerReceivedBytes)", nil, nil, ), SerialPortandScannerReceivedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "serial_port_and_scanner_received_packets"), + prometheus.BuildFQName(Namespace, subsystem, "serial_port_and_scanner_received_packets_total"), "(SerialPortandScannerReceivedPackets)", nil, nil, ), SerialPortandScannerTransmittedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "serial_port_and_scanner_transmitted_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "serial_port_and_scanner_transmitted_bytes_total"), "(SerialPortandScannerTransmittedBytes)", nil, nil, ), SerialPortandScannerTransmittedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "serial_port_and_scanner_transmitted_packets"), + prometheus.BuildFQName(Namespace, subsystem, "serial_port_and_scanner_transmitted_packets_total"), "(SerialPortandScannerTransmittedPackets)", nil, nil, ), SessionAutomaticReconnectCount: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "session_automatic_reconnect_count"), + prometheus.BuildFQName(Namespace, subsystem, "session_automatic_reconnect_count_total"), "(SessionAutomaticReconnectCount)", nil, nil, ), SessionCumulativeReceivedBytesOverTCP: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "session_cumlative_received_bytes_over_tcp"), + prometheus.BuildFQName(Namespace, subsystem, "session_cumlative_received_bytes_over_tcp_total"), "(SessionCumulativeReceivedBytesOverTCP)", nil, nil, ), SessionCumulativeReceivedBytesOverUDP: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "session_cumlative_received_bytes_over_udp"), + prometheus.BuildFQName(Namespace, subsystem, "session_cumlative_received_bytes_over_udp_total"), "(SessionCumulativeReceivedBytesOverUDP)", nil, nil, ), SessionCumulativeTransmittedBytesOverTCP: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "session_cumlative_transmitted_bytes_over_tcp"), + prometheus.BuildFQName(Namespace, subsystem, "session_cumlative_transmitted_bytes_over_tcp_total"), "(SessionCumulativeTransmittedBytesOverTCP)", nil, nil, ), SessionCumulativeTransmittedBytesOverUDP: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "session_cumlative_transmitted_bytes_over_udp"), + prometheus.BuildFQName(Namespace, subsystem, "session_cumlative_transmitted_bytes_over_udp_total"), "(SessionCumulativeTransmittedBytesOverUDP)", nil, nil, @@ -374,25 +374,25 @@ func NewVmwareBlastCollector() (Collector, error) { nil, ), SessionInstantaneousReceivedBytesOverTCP: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "session_instantaneous_received_bytes_over_tcp"), + prometheus.BuildFQName(Namespace, subsystem, "session_instantaneous_received_bytes_over_tcp_total"), "(SessionInstantaneousReceivedBytesOverTCP)", nil, nil, ), SessionInstantaneousReceivedBytesOverUDP: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "session_instantaneous_received_bytes_over_udp"), + prometheus.BuildFQName(Namespace, subsystem, "session_instantaneous_received_bytes_over_udp_total"), "(SessionInstantaneousReceivedBytesOverUDP)", nil, nil, ), SessionInstantaneousTransmittedBytesOverTCP: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "session_instantaneous_transmitted_bytes_over_tcp"), + prometheus.BuildFQName(Namespace, subsystem, "session_instantaneous_transmitted_bytes_over_tcp_total"), "(SessionInstantaneousTransmittedBytesOverTCP)", nil, nil, ), SessionInstantaneousTransmittedBytesOverUDP: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "session_instantaneous_transmitted_bytes_over_udp"), + prometheus.BuildFQName(Namespace, subsystem, "session_instantaneous_transmitted_bytes_over_udp_total"), "(SessionInstantaneousTransmittedBytesOverUDP)", nil, nil, @@ -410,13 +410,13 @@ func NewVmwareBlastCollector() (Collector, error) { nil, ), SessionReceivedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "session_received_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "session_received_bytes_total"), "(SessionReceivedBytes)", nil, nil, ), SessionReceivedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "session_received_packets"), + prometheus.BuildFQName(Namespace, subsystem, "session_received_packets_total"), "(SessionReceivedPackets)", nil, nil, @@ -428,113 +428,113 @@ func NewVmwareBlastCollector() (Collector, error) { nil, ), SessionTransmittedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "session_transmitted_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "session_transmitted_bytes_total"), "(SessionTransmittedBytes)", nil, nil, ), SessionTransmittedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "session_transmitted_packets"), + prometheus.BuildFQName(Namespace, subsystem, "session_transmitted_packets_total"), "(SessionTransmittedPackets)", nil, nil, ), SkypeforBusinessControlReceivedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "skype_for_business_control_received_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "skype_for_business_control_received_bytes_total"), "(SkypeforBusinessControlReceivedBytes)", nil, nil, ), SkypeforBusinessControlReceivedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "skype_for_business_control_received_packets"), + prometheus.BuildFQName(Namespace, subsystem, "skype_for_business_control_received_packets_total"), "(SkypeforBusinessControlReceivedPackets)", nil, nil, ), SkypeforBusinessControlTransmittedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "skype_for_business_control_transmitted_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "skype_for_business_control_transmitted_bytes_total"), "(SkypeforBusinessControlTransmittedBytes)", nil, nil, ), SkypeforBusinessControlTransmittedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "skype_for_business_control_transmitted_packets"), + prometheus.BuildFQName(Namespace, subsystem, "skype_for_business_control_transmitted_packets_total"), "(SkypeforBusinessControlTransmittedPackets)", nil, nil, ), ThinPrintReceivedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "thinprint_received_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "thinprint_received_bytes_total"), "(ThinPrintReceivedBytes)", nil, nil, ), ThinPrintReceivedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "thinprint_received_packets"), + prometheus.BuildFQName(Namespace, subsystem, "thinprint_received_packets_total"), "(ThinPrintReceivedPackets)", nil, nil, ), ThinPrintTransmittedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "thinprint_transmitted_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "thinprint_transmitted_bytes_total"), "(ThinPrintTransmittedBytes)", nil, nil, ), ThinPrintTransmittedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "thinprint_transmitted_packets"), + prometheus.BuildFQName(Namespace, subsystem, "thinprint_transmitted_packets_total"), "(ThinPrintTransmittedPackets)", nil, nil, ), USBReceivedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "usb_received_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "usb_received_bytes_total"), "(USBReceivedBytes)", nil, nil, ), USBReceivedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "usb_received_packets"), + prometheus.BuildFQName(Namespace, subsystem, "usb_received_packets_total"), "(USBReceivedPackets)", nil, nil, ), USBTransmittedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "usb_transmitted_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "usb_transmitted_bytes_total"), "(USBTransmittedBytes)", nil, nil, ), USBTransmittedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "usb_transmitted_packets"), + prometheus.BuildFQName(Namespace, subsystem, "usb_transmitted_packets_total"), "(USBTransmittedPackets)", nil, nil, ), WindowsMediaMMRReceivedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "windows_media_mmr_received_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "windows_media_mmr_received_bytes_total"), "(WindowsMediaMMRReceivedBytes)", nil, nil, ), WindowsMediaMMRReceivedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "windows_media_mmr_received_packets"), + prometheus.BuildFQName(Namespace, subsystem, "windows_media_mmr_received_packets_total"), "(WindowsMediaMMRReceivedPackets)", nil, nil, ), WindowsMediaMMRTransmittedBytes: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "windows_media_mmr_transmitted_bytes"), + prometheus.BuildFQName(Namespace, subsystem, "windows_media_mmr_transmitted_bytes_total"), "(WindowsMediaMMRTransmittedBytes)", nil, nil, ), WindowsMediaMMRTransmittedPackets: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "windows_media_mmr_transmitted_packets"), + prometheus.BuildFQName(Namespace, subsystem, "windows_media_mmr_transmitted_packets_total"), "(WindowsMediaMMRTransmittedPackets)", nil, nil, @@ -544,7 +544,7 @@ func NewVmwareBlastCollector() (Collector, error) { // Collect sends the metric values for each metric // to the provided prometheus Metric channel. -func (c *VmwareBlastCollector) Collect(ctx *ScrapeContext, ch chan<- prometheus.Metric) error { +func (c *vmwareBlastCollector) Collect(ctx *ScrapeContext, ch chan<- prometheus.Metric) error { if desc, err := c.collectAudio(ch); err != nil { log.Error("failed collecting vmware blast audio metrics:", desc, err) return err @@ -596,35 +596,35 @@ func (c *VmwareBlastCollector) Collect(ctx *ScrapeContext, ch chan<- prometheus. return nil } -type Win32_PerfRawData_Counters_VMwareBlastAudioCounters struct { +type win32_PerfRawData_Counters_VMwareBlastAudioCounters struct { ReceivedBytes uint32 ReceivedPackets uint32 TransmittedBytes uint32 TransmittedPackets uint32 } -type Win32_PerfRawData_Counters_VMwareBlastCDRCounters struct { +type win32_PerfRawData_Counters_VMwareBlastCDRCounters struct { ReceivedBytes uint32 ReceivedPackets uint32 TransmittedBytes uint32 TransmittedPackets uint32 } -type Win32_PerfRawData_Counters_VMwareBlastClipboardCounters struct { +type win32_PerfRawData_Counters_VMwareBlastClipboardCounters struct { ReceivedBytes uint32 ReceivedPackets uint32 TransmittedBytes uint32 TransmittedPackets uint32 } -type Win32_PerfRawData_Counters_VMwareBlastHTML5MMRcounters struct { +type win32_PerfRawData_Counters_VMwareBlastHTML5MMRcounters struct { ReceivedBytes uint32 ReceivedPackets uint32 TransmittedBytes uint32 TransmittedPackets uint32 } -type Win32_PerfRawData_Counters_VMwareBlastImagingCounters struct { +type win32_PerfRawData_Counters_VMwareBlastImagingCounters struct { Dirtyframespersecond uint32 FBCRate uint32 Framespersecond uint32 @@ -639,21 +639,21 @@ type Win32_PerfRawData_Counters_VMwareBlastImagingCounters struct { TransmittedPackets uint32 } -type Win32_PerfRawData_Counters_VMwareBlastRTAVCounters struct { +type win32_PerfRawData_Counters_VMwareBlastRTAVCounters struct { ReceivedBytes uint32 ReceivedPackets uint32 TransmittedBytes uint32 TransmittedPackets uint32 } -type Win32_PerfRawData_Counters_VMwareBlastSerialPortandScannerCounters struct { +type win32_PerfRawData_Counters_VMwareBlastSerialPortandScannerCounters struct { ReceivedBytes uint32 ReceivedPackets uint32 TransmittedBytes uint32 TransmittedPackets uint32 } -type Win32_PerfRawData_Counters_VMwareBlastSessionCounters struct { +type win32_PerfRawData_Counters_VMwareBlastSessionCounters struct { AutomaticReconnectCount uint32 CumulativeReceivedBytesoverTCP uint32 CumulativeReceivedBytesoverUDP uint32 @@ -673,36 +673,36 @@ type Win32_PerfRawData_Counters_VMwareBlastSessionCounters struct { TransmittedPackets uint32 } -type Win32_PerfRawData_Counters_VMwareBlastSkypeforBusinessControlCounters struct { +type win32_PerfRawData_Counters_VMwareBlastSkypeforBusinessControlCounters struct { ReceivedBytes uint32 ReceivedPackets uint32 TransmittedBytes uint32 TransmittedPackets uint32 } -type Win32_PerfRawData_Counters_VMwareBlastThinPrintCounters struct { +type win32_PerfRawData_Counters_VMwareBlastThinPrintCounters struct { ReceivedBytes uint32 ReceivedPackets uint32 TransmittedBytes uint32 TransmittedPackets uint32 } -type Win32_PerfRawData_Counters_VMwareBlastUSBCounters struct { +type win32_PerfRawData_Counters_VMwareBlastUSBCounters struct { ReceivedBytes uint32 ReceivedPackets uint32 TransmittedBytes uint32 TransmittedPackets uint32 } -type Win32_PerfRawData_Counters_VMwareBlastWindowsMediaMMRCounters struct { +type win32_PerfRawData_Counters_VMwareBlastWindowsMediaMMRCounters struct { ReceivedBytes uint32 ReceivedPackets uint32 TransmittedBytes uint32 TransmittedPackets uint32 } -func (c *VmwareBlastCollector) collectAudio(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { - var dst []Win32_PerfRawData_Counters_VMwareBlastAudioCounters +func (c *vmwareBlastCollector) collectAudio(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { + var dst []win32_PerfRawData_Counters_VMwareBlastAudioCounters q := queryAll(&dst) if err := wmi.Query(q, &dst); err != nil { return nil, err @@ -740,8 +740,8 @@ func (c *VmwareBlastCollector) collectAudio(ch chan<- prometheus.Metric) (*prome return nil, nil } -func (c *VmwareBlastCollector) collectCdr(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { - var dst []Win32_PerfRawData_Counters_VMwareBlastCDRCounters +func (c *vmwareBlastCollector) collectCdr(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { + var dst []win32_PerfRawData_Counters_VMwareBlastCDRCounters q := queryAll(&dst) if err := wmi.Query(q, &dst); err != nil { return nil, err @@ -779,8 +779,8 @@ func (c *VmwareBlastCollector) collectCdr(ch chan<- prometheus.Metric) (*prometh return nil, nil } -func (c *VmwareBlastCollector) collectClipboard(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { - var dst []Win32_PerfRawData_Counters_VMwareBlastClipboardCounters +func (c *vmwareBlastCollector) collectClipboard(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { + var dst []win32_PerfRawData_Counters_VMwareBlastClipboardCounters q := queryAll(&dst) if err := wmi.Query(q, &dst); err != nil { return nil, err @@ -818,8 +818,8 @@ func (c *VmwareBlastCollector) collectClipboard(ch chan<- prometheus.Metric) (*p return nil, nil } -func (c *VmwareBlastCollector) collectHtml5Mmr(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { - var dst []Win32_PerfRawData_Counters_VMwareBlastHTML5MMRcounters +func (c *vmwareBlastCollector) collectHtml5Mmr(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { + var dst []win32_PerfRawData_Counters_VMwareBlastHTML5MMRcounters q := queryAll(&dst) if err := wmi.Query(q, &dst); err != nil { return nil, err @@ -857,8 +857,8 @@ func (c *VmwareBlastCollector) collectHtml5Mmr(ch chan<- prometheus.Metric) (*pr return nil, nil } -func (c *VmwareBlastCollector) collectImaging(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { - var dst []Win32_PerfRawData_Counters_VMwareBlastImagingCounters +func (c *vmwareBlastCollector) collectImaging(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { + var dst []win32_PerfRawData_Counters_VMwareBlastImagingCounters q := queryAll(&dst) if err := wmi.Query(q, &dst); err != nil { return nil, err @@ -944,8 +944,8 @@ func (c *VmwareBlastCollector) collectImaging(ch chan<- prometheus.Metric) (*pro return nil, nil } -func (c *VmwareBlastCollector) collectRtav(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { - var dst []Win32_PerfRawData_Counters_VMwareBlastRTAVCounters +func (c *vmwareBlastCollector) collectRtav(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { + var dst []win32_PerfRawData_Counters_VMwareBlastRTAVCounters q := queryAll(&dst) if err := wmi.Query(q, &dst); err != nil { return nil, err @@ -983,8 +983,8 @@ func (c *VmwareBlastCollector) collectRtav(ch chan<- prometheus.Metric) (*promet return nil, nil } -func (c *VmwareBlastCollector) collectSerialPortandScanner(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { - var dst []Win32_PerfRawData_Counters_VMwareBlastSerialPortandScannerCounters +func (c *vmwareBlastCollector) collectSerialPortandScanner(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { + var dst []win32_PerfRawData_Counters_VMwareBlastSerialPortandScannerCounters q := queryAll(&dst) if err := wmi.Query(q, &dst); err != nil { return nil, err @@ -1022,8 +1022,8 @@ func (c *VmwareBlastCollector) collectSerialPortandScanner(ch chan<- prometheus. return nil, nil } -func (c *VmwareBlastCollector) collectSession(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { - var dst []Win32_PerfRawData_Counters_VMwareBlastSessionCounters +func (c *vmwareBlastCollector) collectSession(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { + var dst []win32_PerfRawData_Counters_VMwareBlastSessionCounters q := queryAll(&dst) if err := wmi.Query(q, &dst); err != nil { return nil, err @@ -1139,8 +1139,8 @@ func (c *VmwareBlastCollector) collectSession(ch chan<- prometheus.Metric) (*pro return nil, nil } -func (c *VmwareBlastCollector) collectSkypeforBusinessControl(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { - var dst []Win32_PerfRawData_Counters_VMwareBlastSkypeforBusinessControlCounters +func (c *vmwareBlastCollector) collectSkypeforBusinessControl(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { + var dst []win32_PerfRawData_Counters_VMwareBlastSkypeforBusinessControlCounters q := queryAll(&dst) if err := wmi.Query(q, &dst); err != nil { return nil, err @@ -1178,8 +1178,8 @@ func (c *VmwareBlastCollector) collectSkypeforBusinessControl(ch chan<- promethe return nil, nil } -func (c *VmwareBlastCollector) collectThinPrint(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { - var dst []Win32_PerfRawData_Counters_VMwareBlastThinPrintCounters +func (c *vmwareBlastCollector) collectThinPrint(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { + var dst []win32_PerfRawData_Counters_VMwareBlastThinPrintCounters q := queryAll(&dst) if err := wmi.Query(q, &dst); err != nil { return nil, err @@ -1217,8 +1217,8 @@ func (c *VmwareBlastCollector) collectThinPrint(ch chan<- prometheus.Metric) (*p return nil, nil } -func (c *VmwareBlastCollector) collectUsb(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { - var dst []Win32_PerfRawData_Counters_VMwareBlastUSBCounters +func (c *vmwareBlastCollector) collectUsb(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { + var dst []win32_PerfRawData_Counters_VMwareBlastUSBCounters q := queryAll(&dst) if err := wmi.Query(q, &dst); err != nil { return nil, err @@ -1256,8 +1256,8 @@ func (c *VmwareBlastCollector) collectUsb(ch chan<- prometheus.Metric) (*prometh return nil, nil } -func (c *VmwareBlastCollector) collectWindowsMediaMmr(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { - var dst []Win32_PerfRawData_Counters_VMwareBlastWindowsMediaMMRCounters +func (c *vmwareBlastCollector) collectWindowsMediaMmr(ch chan<- prometheus.Metric) (*prometheus.Desc, error) { + var dst []win32_PerfRawData_Counters_VMwareBlastWindowsMediaMMRCounters q := queryAll(&dst) if err := wmi.Query(q, &dst); err != nil { return nil, err diff --git a/collector/vmware_blast_test.go b/collector/vmware_blast_test.go index 1060f9c0..a6c46a30 100644 --- a/collector/vmware_blast_test.go +++ b/collector/vmware_blast_test.go @@ -4,6 +4,6 @@ import ( "testing" ) -func BenchmarkVmwareBlastCollector(b *testing.B) { - benchmarkCollector(b, "vmware_blast", NewVmwareBlastCollector) +func benchmarkVmwareBlastCollector(b *testing.B) { + benchmarkCollector(b, "vmware_blast", newVmwareBlastCollector) } diff --git a/docs/collector.teradici_pcoip.md b/docs/collector.teradici_pcoip.md index 0bab4a88..2fc0d04c 100644 --- a/docs/collector.teradici_pcoip.md +++ b/docs/collector.teradici_pcoip.md @@ -16,26 +16,26 @@ None Name | Description | Type | Labels -----|-------------|------|------- -`windows_teradici_pcoip_audio_bytes_received` | _Not yet documented_ | counter | None -`windows_teradici_pcoip_audio_bytes_sent` | _Not yet documented_ | counter | None +`windows_teradici_pcoip_audio_bytes_received_total` | _Not yet documented_ | counter | None +`windows_teradici_pcoip_audio_bytes_sent_total` | _Not yet documented_ | counter | None `windows_teradici_pcoip_audio_rx_bw_kbit_persec` | _Not yet documented_ | gauge | None `windows_teradici_pcoip_audio_tx_bw_kbit_persec` | _Not yet documented_ | gauge | None `windows_teradici_pcoip_audio_tx_bw_limit_kbit_persec` | _Not yet documented_ | gauge | None -`windows_teradici_pcoip_bytes_received` | _Not yet documented_ | counter | None -`windows_teradici_pcoip_bytes_sent` | _Not yet documented_ | counter | None -`windows_teradici_pcoip_packets_received` | _Not yet documented_ | counter | None -`windows_teradici_pcoip_packets_sent` | _Not yet documented_ | counter | None -`windows_teradici_pcoip_rx_packets_lost` | _Not yet documented_ | counter | None -`windows_teradici_pcoip_session_duration_seconds` | _Not yet documented_ | counter | None -`windows_teradici_pcoip_tx_packets_lost` | _Not yet documented_ | counter | None +`windows_teradici_pcoip_bytes_received_total` | _Not yet documented_ | counter | None +`windows_teradici_pcoip_bytes_sent_total` | _Not yet documented_ | counter | None +`windows_teradici_pcoip_packets_received_total` | _Not yet documented_ | counter | None +`windows_teradici_pcoip_packets_sent_total` | _Not yet documented_ | counter | None +`windows_teradici_pcoip_rx_packets_lost_total` | _Not yet documented_ | counter | None +`windows_teradici_pcoip_session_duration_seconds_total` | _Not yet documented_ | counter | None +`windows_teradici_pcoip_tx_packets_lost_total` | _Not yet documented_ | counter | None `windows_teradici_pcoip_imaging_active_min_quality` | _Not yet documented_ | gauge | None `windows_teradici_pcoip_imaging_apex2800_offload` | _Not yet documented_ | gauge | None -`windows_teradici_pcoip_imaging_bytes_received` | _Not yet documented_ | counter | None -`windows_teradici_pcoip_imaging_bytes_sent` | _Not yet documented_ | counter | None +`windows_teradici_pcoip_imaging_bytes_received_total` | _Not yet documented_ | counter | None +`windows_teradici_pcoip_imaging_bytes_sent_total` | _Not yet documented_ | counter | None `windows_teradici_pcoip_imaging_decoder_capability_kbit_persec` | _Not yet documented_ | gauge | None `windows_teradici_pcoip_imaging_encoded_frames_persec` | _Not yet documented_ | gauge | None `windows_teradici_pcoip_imaging_megapixel_persec` | _Not yet documented_ | gauge | None -`windows_teradici_pcoip_imaging_negative_acks` | _Not yet documented_ | counter | None +`windows_teradici_pcoip_imaging_negative_acks_total` | _Not yet documented_ | counter | None `windows_teradici_pcoip_imaging_rx_bw_kbit_persec` | _Not yet documented_ | gauge | None `windows_teradici_pcoip_imaging_svga_devtap_frames_persec` | _Not yet documented_ | gauge | None `windows_teradici_pcoip_imaging_tx_bw_kbit_persec` | _Not yet documented_ | gauge | None @@ -49,8 +49,8 @@ Name | Description | Type | Labels `windows_teradici_pcoip_tx_bw_limit_kbit_persec` | _Not yet documented_ | gauge | None `windows_teradici_pcoip_tx_packet_loss_percent` | _Not yet documented_ | gauge | None `windows_teradici_pcoip_tx_packet_loss_percent_base` | _Not yet documented_ | gauge | None -`windows_teradici_pcoip_usb_bytes_received` | _Not yet documented_ | counter | None -`windows_teradici_pcoip_usb_bytes_sent` | _Not yet documented_ | counter | None +`windows_teradici_pcoip_usb_bytes_received_total` | _Not yet documented_ | counter | None +`windows_teradici_pcoip_usb_bytes_sent_total` | _Not yet documented_ | counter | None `windows_teradici_pcoip_usb_rx_bw_kbit_persec` | _Not yet documented_ | gauge | None `windows_teradici_pcoip_usb_tx_bw_kbit_persec` | _Not yet documented_ | gauge | None diff --git a/docs/collector.vmware_blast.md b/docs/collector.vmware_blast.md index 10530d27..aac689ac 100644 --- a/docs/collector.vmware_blast.md +++ b/docs/collector.vmware_blast.md @@ -18,75 +18,75 @@ Some of these metrics may not be collected, depending on the installation option Name | Description | Type | Labels -----|-------------|------|------- -`windows_vmware_blast_audio_received_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_audio_received_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_audio_transmitted_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_audio_transmitted_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_cdr_received_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_cdr_received_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_cdr_transmitted_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_cdr_transmitted_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_clipboard_received_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_clipboard_received_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_clipboard_transmitted_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_clipboard_transmitted_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_html5_mmr_received_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_html5_mmr_received_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_html5_mmr_transmitted_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_html5_mmr_transmitted_packets` | _Not yet documented_ | counter | None +`windows_vmware_blast_audio_received_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_audio_received_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_audio_transmitted_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_audio_transmitted_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_cdr_received_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_cdr_received_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_cdr_transmitted_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_cdr_transmitted_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_clipboard_received_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_clipboard_received_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_clipboard_transmitted_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_clipboard_transmitted_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_html5_mmr_received_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_html5_mmr_received_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_html5_mmr_transmitted_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_html5_mmr_transmitted_packets_total` | _Not yet documented_ | counter | None `windows_vmware_blast_imaging_dirty_frames_per_second` | _Not yet documented_ | gauge | None `windows_vmware_blast_imaging_fbc_rate` | _Not yet documented_ | gauge | None `windows_vmware_blast_imaging_frames_per_second` | _Not yet documented_ | gauge | None `windows_vmware_blast_imaging_poll_rate` | _Not yet documented_ | gauge | None -`windows_vmware_blast_imaging_received_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_imaging_received_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_imaging_total_dirty_frames` | _Not yet documented_ | counter | None -`windows_vmware_blast_imaging_total_fbc` | _Not yet documented_ | counter | None -`windows_vmware_blast_imaging_total_frames` | _Not yet documented_ | counter | None -`windows_vmware_blast_imaging_total_poll` | _Not yet documented_ | counter | None -`windows_vmware_blast_imaging_transmitted_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_imaging_transmitted_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_rtav_received_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_rtav_received_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_rtav_transmitted_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_rtav_transmitted_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_serial_port_and_scanner_received_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_serial_port_and_scanner_received_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_serial_port_and_scanner_transmitted_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_serial_port_and_scanner_transmitted_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_session_automatic_reconnect_count` | _Not yet documented_ | counter | None -`windows_vmware_blast_session_cumlative_received_bytes_over_tcp` | _Not yet documented_ | counter | None -`windows_vmware_blast_session_cumlative_received_bytes_over_udp` | _Not yet documented_ | counter | None -`windows_vmware_blast_session_cumlative_transmitted_bytes_over_tcp` | _Not yet documented_ | counter | None -`windows_vmware_blast_session_cumlative_transmitted_bytes_over_udp` | _Not yet documented_ | counter | None +`windows_vmware_blast_imaging_received_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_imaging_received_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_imaging_dirty_frames_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_imaging_fbc_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_imaging_frames_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_imaging_poll_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_imaging_transmitted_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_imaging_transmitted_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_rtav_received_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_rtav_received_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_rtav_transmitted_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_rtav_transmitted_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_serial_port_and_scanner_received_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_serial_port_and_scanner_received_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_serial_port_and_scanner_transmitted_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_serial_port_and_scanner_transmitted_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_session_automatic_reconnect_count_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_session_cumlative_received_bytes_over_tcp_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_session_cumlative_received_bytes_over_udp_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_session_cumlative_transmitted_bytes_over_tcp_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_session_cumlative_transmitted_bytes_over_udp_total` | _Not yet documented_ | counter | None `windows_vmware_blast_session_estimated_bandwidth_uplink` | _Not yet documented_ | gauge | None -`windows_vmware_blast_session_instantaneous_received_bytes_over_tcp` | _Not yet documented_ | counter | None -`windows_vmware_blast_session_instantaneous_received_bytes_over_udp` | _Not yet documented_ | counter | None -`windows_vmware_blast_session_instantaneous_transmitted_bytes_over_tcp` | _Not yet documented_ | counter | None -`windows_vmware_blast_session_instantaneous_transmitted_bytes_over_udp` | _Not yet documented_ | counter | None +`windows_vmware_blast_session_instantaneous_received_bytes_over_tcp_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_session_instantaneous_received_bytes_over_udp_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_session_instantaneous_transmitted_bytes_over_tcp_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_session_instantaneous_transmitted_bytes_over_udp_total` | _Not yet documented_ | counter | None `windows_vmware_blast_session_jitter_uplink` | _Not yet documented_ | gauge | None `windows_vmware_blast_session_packet_loss_uplink` | _Not yet documented_ | gauge | None -`windows_vmware_blast_session_received_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_session_received_packets` | _Not yet documented_ | counter | None +`windows_vmware_blast_session_received_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_session_received_packets_total` | _Not yet documented_ | counter | None `windows_vmware_blast_session_rtt` | _Not yet documented_ | gauge | None -`windows_vmware_blast_session_transmitted_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_session_transmitted_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_skype_for_business_control_received_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_skype_for_business_control_received_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_skype_for_business_control_transmitted_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_skype_for_business_control_transmitted_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_thinprint_received_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_thinprint_received_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_thinprint_transmitted_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_thinprint_transmitted_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_usb_received_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_usb_received_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_usb_transmitted_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_usb_transmitted_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_windows_media_mmr_received_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_windows_media_mmr_received_packets` | _Not yet documented_ | counter | None -`windows_vmware_blast_windows_media_mmr_transmitted_bytes` | _Not yet documented_ | counter | None -`windows_vmware_blast_windows_media_mmr_transmitted_packets` | _Not yet documented_ | counter | None +`windows_vmware_blast_session_transmitted_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_session_transmitted_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_skype_for_business_control_received_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_skype_for_business_control_received_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_skype_for_business_control_transmitted_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_skype_for_business_control_transmitted_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_thinprint_received_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_thinprint_received_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_thinprint_transmitted_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_thinprint_transmitted_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_usb_received_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_usb_received_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_usb_transmitted_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_usb_transmitted_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_windows_media_mmr_received_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_windows_media_mmr_received_packets_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_windows_media_mmr_transmitted_bytes_total` | _Not yet documented_ | counter | None +`windows_vmware_blast_windows_media_mmr_transmitted_packets_total` | _Not yet documented_ | counter | None ### Example metric _This collector does not yet have explained examples, we would appreciate your help adding them!_