metrics

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Metric5GCurrentBand = prometheus.NewGauge(prometheus.GaugeOpts{
	Namespace: "gomo",
	Subsystem: "5g",
	Name:      "band",
	Help:      "The current Band of the 5G radio. GHz",
})
View Source
var Metric5GCurrentCellID = prometheus.NewGauge(prometheus.GaugeOpts{
	Namespace: "gomo",
	Subsystem: "5g",
	Name:      "cell_id",
	Help:      "The current CellID of the 5G radio. GHz",
})
View Source
var Metric5GCurrentDownlinkARFCN = prometheus.NewGauge(prometheus.GaugeOpts{
	Namespace: "gomo",
	Subsystem: "5g",
	Name:      "downlink_nr_arfcn",
	Help:      "The absolute radio frequency channel number of teh radio at this point in time",
})
View Source
var Metric5GCurrentRSRP = prometheus.NewGauge(prometheus.GaugeOpts{
	Namespace: "gomo",
	Subsystem: "5g",
	Name:      "rsrp",
	Help:      "The current RSRP of the 5G radio at this point in time. dBm",
})
View Source
var Metric5GCurrentRSRQ = prometheus.NewGauge(prometheus.GaugeOpts{
	Namespace: "gomo",
	Subsystem: "5g",
	Name:      "rsrq",
	Help:      "The current RSRQ of the 5G radio at this point in time. dBm",
})
View Source
var Metric5GCurrentSNR = prometheus.NewGauge(prometheus.GaugeOpts{
	Namespace: "gomo",
	Subsystem: "5g",
	Name:      "snr",
	Help:      "The current SNR of the 5G radio at this point in time. dB",
})
View Source
var MetricCellularBytesRecv = prometheus.NewGauge(prometheus.GaugeOpts{
	Namespace: "gomo",
	Subsystem: "cell",
	Name:      "bytes_received",
	Help:      "The reported number of bytes received over the cellular connection this uptime",
})
View Source
var MetricCellularBytesSent = prometheus.NewGauge(prometheus.GaugeOpts{
	Namespace: "gomo",
	Subsystem: "cell",
	Name:      "bytes_sent",
	Help:      "The reported number of bytes sent over the cellular connection this uptime",
})
View Source
var MetricConnectionStatus = prometheus.NewGauge(prometheus.GaugeOpts{
	Namespace: "gomo",
	Subsystem: "wan",
	Name:      "connection_status",
	Help:      "The reported connection status of the device. integer bool",
})
View Source
var MetricLTECurrentBand = prometheus.NewGauge(prometheus.GaugeOpts{
	Namespace: "gomo",
	Subsystem: "lte",
	Name:      "band",
	Help:      "The current Band of the 5G radio. GHz",
})
View Source
var MetricLTECurrentCellID = prometheus.NewGauge(prometheus.GaugeOpts{
	Namespace: "gomo",
	Subsystem: "lte",
	Name:      "cell_id",
	Help:      "The current CellID of the 5G radio. GHz",
})
View Source
var MetricLTECurrentDownlinkARFCN = prometheus.NewGauge(prometheus.GaugeOpts{
	Namespace: "gomo",
	Subsystem: "lte",
	Name:      "downlink_nr_arfcn",
	Help:      "The absolute radio frequency channel number of teh radio at this point in time",
})
View Source
var MetricLTECurrentRSRP = prometheus.NewGauge(prometheus.GaugeOpts{
	Namespace: "gomo",
	Subsystem: "lte",
	Name:      "rsrp",
	Help:      "The current RSRP of the 5G radio at this point in time. dBm",
})
View Source
var MetricLTECurrentRSRQ = prometheus.NewGauge(prometheus.GaugeOpts{
	Namespace: "gomo",
	Subsystem: "lte",
	Name:      "rsrq",
	Help:      "The current RSRQ of the 5G radio at this point in time. dBm",
})
View Source
var MetricLTECurrentRSSI = prometheus.NewGauge(prometheus.GaugeOpts{
	Namespace: "gomo",
	Subsystem: "lte",
	Name:      "rssi",
	Help:      "The absolute radio frequency channel number of teh radio at this point in time",
})
View Source
var MetricLTECurrentSNR = prometheus.NewGauge(prometheus.GaugeOpts{
	Namespace: "gomo",
	Subsystem: "lte",
	Name:      "snr",
	Help:      "The current SNR of the 5G radio at this point in time. dB",
})

Metrics5G is a convenience var for 5G metric gauges

MetricsLTE is a convenience var for LTE metric gauges

View Source
var MetricsMisc = map[string]prometheus.Gauge{
	"connection_status": MetricConnectionStatus,
	"bytes_sent":        MetricCellularBytesSent,
	"bytes_recv":        MetricCellularBytesRecv,
}

MetricsMisc is a convenience var for misc metric gauges

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL