Comments (8)
Fixed in v3.3.0 released today. :)
from puppetboard.
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.
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.
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.
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.
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.
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.
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)
- memcached enabled and 'Error: no memcache module found'
- Localize timezones on dailyReportsChart
- Regular expressions in the node tab
- Add OpenShift Template to build Puppetboard
- The PUPPETBOARD_URL_PREFIX does not set flask's APPLICATION_ROOT
- system_uptime structured fact does not sort correctly
- Puppetboard 4.3.0 very slow with Chrome Dark Reader extension HOT 1
- Unable to setup puppetboard on ubuntu HOT 1
- Inventory tab feature legacy facts HOT 2
- puppetboard fails to start with scheduler enabled
- [BUG] applied changes during puppet run show empty on puppetboard if containing xml HOT 1
- puppetboard fails to start because module 'flask.json' has no attribute 'JSONEncoder'
- Setting GRAPH_FACTS causes a 500 error
- Intermittent errors after PuppetDB 8.0 to 8.1 upgrade HOT 13
- better support structured facts HOT 2
- Facts only showing RedHat HOT 1
- Pattern for python_version do not allow 3.11 HOT 3
- Make it More Apparent that SECRET_KEY cannot be blank HOT 3
- Allow puppetboard to start without a running puppetdb
- Offline mode tries to load external resources HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppetboard.