Git Product home page Git Product logo

Comments (3)

hansmi avatar hansmi commented on June 16, 2024 1

I've tagged version 0.3.3 including commit e501804.

from prometheus-lvm-exporter.

hansmi avatar hansmi commented on June 16, 2024

Likely similar to #2 and #29. There are so many fields it's very difficult to find all possibilities (all instances of lv_lockargs in current test data are empty).

I'm happy to submit a fix similar to commit a855fad. Would you be able to provide me with a raw JSON snippet with real values for use in tests? One or two LVs are sufficient.

The command would be as follows (apply sudo, etc. as necessary):

/usr/sbin/lvm lvs --all --config 'global/suffix=false global/units=b report/binary_values_as_numeric=1 report/output_format=json report/buffered=false report/time_format=%s' \
  --configreport lv --options \
  lv_uuid,lv_name,lv_lockargs

from prometheus-lvm-exporter.

raspbeguy avatar raspbeguy commented on June 16, 2024

Here is the result limited to 2 LV plus the special LV lvmlock (which is used internally by lvmlockd and has no value for lv_lockargs):

  {
      "report": [
          {
              "lv": [
                  {"lv_uuid":"YvnAc9-CH9k-Fq5F-WfTl-oONA-5njZ-t1ChZm", "lv_name":"alpinetest", "lv_lockargs":"1.0.0:570425344"},
                  {"lv_uuid":"FmOsEf-s4PL-qNOn-KSLb-GAIG-kuuP-ErGbTp", "lv_name":"lvtest", "lv_lockargs":"1.0.0:620756992"},
                  {"lv_uuid":"PN2YZw-aWgL-O0Rc-Vkbx-Dx09-lvDp-fhpbXe", "lv_name":"[lvmlock]", "lv_lockargs":""}
              ]
          }
      ]
  }

from prometheus-lvm-exporter.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.