Browse Source

Merge pull request #10035 from TDT-AG/pr/20190920-prometheus-node-exporter-lua-fecs-fix

prometheus-node-exporter-lua: ltq-dsl.lua: use errors_fecs_*
lilik-openwrt-22.03
Etienne Champetier 5 years ago
committed by GitHub
parent
commit
fa40123f26
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      utils/prometheus-node-exporter-lua/Makefile
  2. +2
    -2
      utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/ltq-dsl.lua

+ 1
- 1
utils/prometheus-node-exporter-lua/Makefile View File

@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=prometheus-node-exporter-lua
PKG_VERSION:=2019.08.14
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
PKG_LICENSE:=Apache-2.0


+ 2
- 2
utils/prometheus-node-exporter-lua/files/usr/lib/lua/prometheus-collectors/ltq-dsl.lua View File

@ -79,8 +79,8 @@ local function scrape()
dsl_max_datarate({direction="up"}, dsl_stat.max_data_rate_up)
-- dsl errors
dsl_error_seconds_total({err="forward error correction",loc="near"}, dsl_stat.errors_fec_near)
dsl_error_seconds_total({err="forward error correction",loc="far"}, dsl_stat.errors_fec_far)
dsl_error_seconds_total({err="forward error correction",loc="near"}, dsl_stat.errors_fecs_near)
dsl_error_seconds_total({err="forward error correction",loc="far"}, dsl_stat.errors_fecs_far)
dsl_error_seconds_total({err="errored",loc="near"}, dsl_stat.errors_es_near)
dsl_error_seconds_total({err="errored",loc="far"}, dsl_stat.errors_es_near)
dsl_error_seconds_total({err="severely errored",loc="near"}, dsl_stat.errors_ses_near)


Loading…
Cancel
Save