Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UBI plugin: collect some stats about the UBIFS #3204

Merged
merged 7 commits into from
Feb 25, 2020
Merged

UBI plugin: collect some stats about the UBIFS #3204

merged 7 commits into from
Feb 25, 2020

Conversation

pticon
Copy link
Contributor

@pticon pticon commented Jul 4, 2019

ChangeLog: The new "ubifs" plugin reports block state for flash memory devices with UBIFS filesystem

This plugin collects some stats about the UBIFS:

  • bad physical underlying blocks (bad_peb_count)
  • max erase counter value (max_ec)

Signed-off-by: Pierre Lebleu [email protected]

pticon added 3 commits July 4, 2019 16:15
UBIFS is a filesystem for unmanaged flash memory devices.
This plugin collects some stats about the UBIFS:
 * bad physical underlying blocks (bad_peb_count)
 * max erase counter value (max_ec)
@pticon pticon changed the title UBI plugin: collect some stats about the UBIFS ChangeLog: UBI plugin: collect some stats about the UBIFS Jul 4, 2019
@pticon pticon changed the title ChangeLog: UBI plugin: collect some stats about the UBIFS UBI plugin: collect some stats about the UBIFS Jul 4, 2019
@collectd-bot collectd-bot added this to the Features milestone Jul 5, 2019
pticon added 3 commits July 5, 2019 11:51
* compile the plugin by default
* reword the configure.ac description
* do not touch ChangeLog
Update the README, the collectd.conf.in and collectd.conf.pod
Copy link
Contributor Author

@pticon pticon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @rpv-tomsk ,

Your remarks are taken into account.
The plugin is compiled only for the Linux system because it does not make sense for others.
I completed some documentation as well (README, conf file, ).

Should I drop this pull request and create an other one with an atomic commit ?

rpv-tomsk
rpv-tomsk previously approved these changes Jul 12, 2019
@rpv-tomsk
Copy link
Contributor

rpv-tomsk commented Jul 12, 2019

Should I drop this pull request and create an other one with an atomic commit ?

I don't think you should.

You should wait for someone who is trusted contributor to merge this PR.
I'm not this one person, as I have no such permission.

Thanks for your work.

@pticon
Copy link
Contributor Author

pticon commented Sep 22, 2019

@octo What do you think about this ?

Copy link
Contributor

@dago dago left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dago dago merged commit 471f18b into collectd:master Feb 25, 2020
@feckert
Copy link
Contributor

feckert commented Jun 23, 2020

@dago @pticon

I was about to create a plugin for OpenWrt for the luci app-statistics. Unfortunately it's not possible to create a valid picture, because the lines are always 0. The value max_ec should 68. The value bad_peb_count is 0 but that is OK, because I have no badblock on my ubi nand.

Screenshot_2020-06-23 VR2-106149 - Diagramme - LuCI

From my point of view the used data type COUNTER is wrong. I do not want to get the rate But this is calculated with the type COUNTER. Better would be the tpye GAUGE. Or am I missing something here?
https://collectd.org/wiki/index.php/Data_source.

rrdtool info ubi/max_ec-ubi0.rrd
filename = "ubi/max_ec-ubi0.rrd"
rrd_version = "0001"
step = 30blob:https://192.168.0.53/77f43508-37b5-4ca9-897b-744f5b5692fa
last_update = 1592910344
ds[value].type = "COUNTER"
ds[value].minimal_heartbeat = 60
ds[value].min = 0.0000000000e+00
ds[value].max = NaN
ds[value].last_ds = "68"
ds[value].value = 0.0000000000e+00
ds[value].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 144
rra[0].pdp_per_row = 1
rra[0].xff = 1.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 144
rra[1].pdp_per_row = 20
rra[1].xff = 1.0000000000e-01
rra[1].cdp_prep[0].value = 0.0000000000e+00
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 144
rra[2].pdp_per_row = 140
rra[2].xff = 1.0000000000e-01
rra[2].cdp_prep[0].value = 0.0000000000e+00
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[3].cf = "AVERAGE"
rra[3].rows = 144
rra[3].pdp_per_row = 620
rra[3].xff = 1.0000000000e-01
rra[3].cdp_prep[0].value = 0.0000000000e+00
rra[3].cdp_prep[0].unknown_datapoints = 0
rra[4].cf = "AVERAGE"
rra[4].rows = 144
rra[4].pdp_per_row = 7320
rra[4].xff = 1.0000000000e-01
rra[4].cdp_prep[0].value = 0.0000000000e+00
rra[4].cdp_prep[0].unknown_datapoints = 2249

@feckert
Copy link
Contributor

feckert commented Jun 24, 2020

@pticon @dago
I have staged a pull request to fix this and so I think that's right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants