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

feat(report): Allow metadata to be sanitized and flattened #458

Merged
merged 9 commits into from
Nov 28, 2024

Conversation

gfieni
Copy link
Contributor

@gfieni gfieni commented Nov 8, 2024

PR overview:

  • Add the sanitize and flattening methods for the metadata dict of the reports ;
  • Update the PowerReport to sanitize/flatten its metadata dict for InfluxDB or Prometheus outputs ;
  • Rework of the report tags generation method ;
  • Improve unit tests for the Prometheus and InfluxDB power report serialization.

Fixes: #408

@gfieni gfieni added enhancement New feature or request consortium Issues or PRs related to a request from the consortium labels Nov 8, 2024
@gfieni gfieni requested a review from a team as a code owner November 8, 2024 13:56
@gfieni gfieni force-pushed the feat/report-processor-tags branch from c0a79be to 2d9c67d Compare November 8, 2024 14:01
@gfieni gfieni force-pushed the feat/report-processor-tags branch 2 times, most recently from 470e822 to 015ebf1 Compare November 28, 2024 15:30
Copy link

codecov bot commented Nov 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.02%. Comparing base (d21f096) to head (015ebf1).
Report is 56 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #458      +/-   ##
==========================================
+ Coverage   67.92%   68.02%   +0.10%     
==========================================
  Files          71       71              
  Lines        2977     2987      +10     
==========================================
+ Hits         2022     2032      +10     
  Misses        955      955              
Files with missing lines Coverage Δ
src/powerapi/report/power_report.py 76.47% <100.00%> (-0.28%) ⬇️
src/powerapi/report/report.py 93.65% <100.00%> (+1.34%) ⬆️

@gfieni gfieni merged commit cec1383 into master Nov 28, 2024
9 checks passed
@gfieni gfieni deleted the feat/report-processor-tags branch November 28, 2024 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consortium Issues or PRs related to a request from the consortium enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

K8S export on influxDB fields
1 participant