Giter Site home page Giter Site logo

Comments (8)

gdubicki avatar gdubicki commented on July 16, 2024 1

Fixed in v3.3.0 released today. :)

from puppetboard.

daenney avatar daenney commented on July 16, 2024

PuppetDB doesn't store structured facts in any sane way so I'd have to start doing string parsing, loading it as JSON and deal with a whole bunch of edge cases and issues that can arise from there. Besides that it can be rather complex to get it right depending on how crazy people go with structured facts. That's a lot of work and very fragile code which I'm not willing to pull in.

A design to store structured facts in PuppetDB and the API around it is going to be up soon for discussion. I'll chime in on that and make sure we get something that we can work with. Once that lands we can add support for it in Puppetboard in good and reliable way and correctly detect and differentiate between 'old' and structured facts. This would also affect other things like the ability to be able to query for a certain value out of a structured fact for example.

It's a bit unfortunate that structured facts landed before PuppetDB could actually deal with them in a nice way but it is what it is.

from puppetboard.

gertvdijk avatar gertvdijk commented on July 16, 2024

Fair enough.

With Puppetboard relying heavily on PuppetDB's API and without sane support (PDB-28) in it I agree this is a slippery slope.

from puppetboard.

daenney avatar daenney commented on July 16, 2024

I'm reopening this, just so that there is an issue about it and that people can find the rationale for it. I'll close it in due time through a commit once this gets fixed.

from puppetboard.

corey-hammerton avatar corey-hammerton commented on July 16, 2024

Starting with PuppetDB 3.0 Structured facts are available in JSON format and new endpoints fact-paths, fact-contents and factsets are available.

As @daenney said it is a lot of work to implement reliable browsing in PuppetBoard with both string and JSON type fact values. This will be on the backlog but if anybody really needs this support please submit a PR with a link to this issue.

from puppetboard.

daenney avatar daenney commented on July 16, 2024

So Puppetboard has a jsonprint template filter that you can use, see templates/metric.html and templates/query.html.

It doesn't provide for a nice way to browse and click through it but will at least print it as more humanly readable JSON instead of a long string.

from puppetboard.

corey-hammerton avatar corey-hammerton commented on July 16, 2024

We are open to PRs if anyone wants to attempt to implement an API for this. Hopefully it can make it into the 0.2.x series.

from puppetboard.

corey-hammerton avatar corey-hammerton commented on July 16, 2024

As of PuppetDB 4.2.0 a new Inventory endpoint is being provided as well as "dotted query" syntax is made available, also the dot notation is experimental.

It may be possible to make use of these new features in the 0.3.0 series with PuppetDB 5.0.0.

from puppetboard.

Related Issues (20)

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.