ignore status_snr as it's deprecated
This commit is contained in:
parent
40cd0127dc
commit
d5f04c4999
1 changed files with 5 additions and 1 deletions
|
@ -30,7 +30,6 @@ class MetricInfo:
|
|||
|
||||
METRICS_INFO = {
|
||||
"status_uptime": MetricInfo(unit="seconds", kind="counter"),
|
||||
"status_snr": MetricInfo(),
|
||||
"status_seconds_to_first_nonempty_slot": MetricInfo(),
|
||||
"status_pop_ping_drop_rate": MetricInfo(),
|
||||
"status_downlink_throughput_bps": MetricInfo(),
|
||||
|
@ -162,6 +161,11 @@ def prometheus_export():
|
|||
|
||||
metrics = []
|
||||
|
||||
# snr is not supported by starlink any more but still returned by the grpc
|
||||
# service for backwards compatibility
|
||||
if "status_snr" in raw_data:
|
||||
del raw_data["status_snr"]
|
||||
|
||||
metrics.append(
|
||||
Metric(
|
||||
name="starlink_status_state",
|
||||
|
|
Loading…
Reference in a new issue