Skip to content

Commit

Permalink
metric name change: starlink_dish_dishDeviceInfo -> starlink_dish_info
Browse files Browse the repository at this point in the history
  • Loading branch information
dwillcocks committed Apr 23, 2021
1 parent 280426e commit bd84bb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ scrape_configs
# TYPE starlink_dish_alert_unexpected_location gauge
# HELP starlink_dish_currently_obstructed Status of view of the sky
# TYPE starlink_dish_currently_obstructed gauge
# HELP starlink_dish_dishDeviceInfo Running software versions and IDs of hardware
# TYPE starlink_dish_dishDeviceInfo gauge
# HELP starlink_dish_info Running software versions and IDs of hardware
# TYPE starlink_dish_info gauge
# HELP starlink_dish_state The Current dishState of the Dish (Unknown, Booting, Searching, Connected).
# TYPE starlink_dish_state gauge
# HELP starlink_dish_downlink_throughput_bytes Amount of bandwidth in bytes per second download
Expand Down
8 changes: 4 additions & 4 deletions internal/exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ var (
"Time to scrape metrics from starlink dish",
nil, nil,
)
dishDeviceInfo = prometheus.NewDesc(
prometheus.BuildFQName(namespace, "dish", "dishDeviceInfo"),
dishInfo = prometheus.NewDesc(
prometheus.BuildFQName(namespace, "dish", "info"),
"Running software versions and IDs of hardware",
[]string{"device_id", "hardware_version", "software_version", "country_code", "utc_offset"}, nil,
)
Expand Down Expand Up @@ -165,7 +165,7 @@ func New(address string) (*Exporter, error) {
func (e *Exporter) Describe(ch chan<- *prometheus.Desc) {
ch <- dishUp
ch <- dishScrapeDurationSeconds
ch <- dishDeviceInfo
ch <- dishInfo
ch <- dishState
ch <- dishUptimeSeconds
ch <- dishPopPingDropRatio
Expand Down Expand Up @@ -228,7 +228,7 @@ func (e *Exporter) collectDish(ch chan<- prometheus.Metric) bool {
alerts := dishStatus.GetAlerts()

ch <- prometheus.MustNewConstMetric(
dishDeviceInfo, prometheus.GaugeValue, 1.00,
dishInfo, prometheus.GaugeValue, 1.00,
deviceInfo.GetId(),
deviceInfo.GetHardwareVersion(),
deviceInfo.GetSoftwareVersion(),
Expand Down

0 comments on commit bd84bb8

Please sign in to comment.