Skip to content

Commit

Permalink
Remove deprecated modem_downstream_errors and `modem_upstream_timeo…
Browse files Browse the repository at this point in the history
…uts`
  • Loading branch information
ties committed Aug 31, 2024
1 parent 8b6bb73 commit 21b1d05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 41 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
downstream and upstream channels with same number would cause messages to be kept
while channel would be gone for their channel type.
* Improved tests of channel profile store.
* **removed `modem_downstream_errors` and `modem_upstream_timeouts`.

## 2024-8-29 (v0.6.0)

Expand Down
41 changes: 0 additions & 41 deletions sagemcom_f3896_client/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,6 @@ async def __update_upstream_channel_metrics(self, registry: CollectorRegistry):
["channel", "channel_type", "timeout_type"],
registry=registry,
)
metric_upstream_timeouts_legacy = Gauge(
"modem_upstream_timeouts",
"Upstream timeouts by type",
["channel", "channel_type", "timeout_type"],
registry=registry,
)

metric_upstream_atdma_info = Info(
"modem_upstream_atdma",
Expand Down Expand Up @@ -268,13 +262,6 @@ async def __update_upstream_channel_metrics(self, registry: CollectorRegistry):
metric_upstream_timeouts.labels(
channel=ch.channel_id, channel_type=ch.channel_type, timeout_type="t4"
).set(ch.t4_timeouts)
# legacy metric (deprecated, removal after 1-5-2024)
metric_upstream_timeouts_legacy.labels(
channel=ch.channel_id, channel_type=ch.channel_type, timeout_type="t3"
).set(ch.t3_timeouts)
metric_upstream_timeouts_legacy.labels(
channel=ch.channel_id, channel_type=ch.channel_type, timeout_type="t4"
).set(ch.t4_timeouts)

match ch.channel_type:
case "atdma":
Expand All @@ -296,17 +283,6 @@ async def __update_upstream_channel_metrics(self, registry: CollectorRegistry):
channel_type=ch.channel_type,
timeout_type="t2",
).set(ch.t2_timeouts)
# legacy metric (deprecated, removal after 1-5-2024)
metric_upstream_timeouts_legacy.labels(
channel=ch.channel_id,
channel_type=ch.channel_type,
timeout_type="t1",
).set(ch.t1_timeouts)
metric_upstream_timeouts_legacy.labels(
channel=ch.channel_id,
channel_type=ch.channel_type,
timeout_type="t2",
).set(ch.t2_timeouts)
case "ofdma":
metric_upstream_ofdma_info.labels(
channel=ch.channel_id, channel_type=ch.channel_type
Expand Down Expand Up @@ -358,13 +334,6 @@ async def __update_downstream_channel_metrics(
["channel", "channel_type", "error_type"],
registry=registry,
)
# added on 23-4-2024
metric_downstream_errors_legacy = Gauge(
"modem_downstream_errors",
"Downstream errors",
["channel", "channel_type", "error_type"],
registry=registry,
)

metric_downstream_qam_snr = Gauge(
"modem_downstream_qam_snr",
Expand Down Expand Up @@ -415,16 +384,6 @@ async def __update_downstream_channel_metrics(
channel_type=ch.channel_type,
error_type="uncorrected",
).set(ch.uncorrected_errors)
metric_downstream_errors_legacy.labels(
channel=ch.channel_id,
channel_type=ch.channel_type,
error_type="corrected",
).set(ch.corrected_errors)
metric_downstream_errors_legacy.labels(
channel=ch.channel_id,
channel_type=ch.channel_type,
error_type="uncorrected",
).set(ch.uncorrected_errors)

match ch.channel_type:
case "sc_qam":
Expand Down

0 comments on commit 21b1d05

Please sign in to comment.