From d5f04c4999cad743f602c019d9510ddb46fd4c60 Mon Sep 17 00:00:00 2001 From: luxifer Date: Fri, 18 Nov 2022 22:25:10 +0000 Subject: [PATCH] ignore status_snr as it's deprecated --- dish_grpc_prometheus.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dish_grpc_prometheus.py b/dish_grpc_prometheus.py index 8745723..acba476 100644 --- a/dish_grpc_prometheus.py +++ b/dish_grpc_prometheus.py @@ -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",