powerapi-ng / hwpc-sensor

Hardware Performance Counters monitoring agent for containers.
BSD 3-Clause "New" or "Revised" License
14 stars 16 forks source link

feat(config): Rework cli and json configuration parsers #65

Closed gfieni closed 5 months ago

gfieni commented 5 months ago

This PR is a rework of the cli and json configuration parsers, especially to replace the current json parser that was based on MongoDB's libbson to a json-c based one.

The libbson is not made to parse json files, and the way we are using it leads to complicated and very fragile field handling for configuration files. It also has the problem of not being available on most distributions, which greatly reduces the distributions where the sensor can be built. (especially as a core dependency, the json parser can't be disabled)

sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud