Skip to content

refactor(config): add exporter related settings #2075

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

Merged
merged 1 commit into from
May 21, 2025

Conversation

sthaha
Copy link
Collaborator

@sthaha sthaha commented May 20, 2025

This commit restructures config as follows

log:
    level: debug
    format: text
host:
    sysfs: /sys
    procfs: /proc
monitor:
    interval: 5s
    staleness: 1s
rapl:
    zones: []
exporter:
    stdout:
        enabled: true
    prometheus:
        enabled: true
        debugCollectors:
            - go
            - process web:
    configFile: ""
debug:
    pprof:
        enabled: true
dev:
    fake-cpu-meter:
        enabled: false
        zones: []

Significant changes include:

  • new exporter setting to hold all exporter related configs
  • restructure stdout.enabled under exporter
  • add prometheus exporter related settings for debugCollectors
  • move enabled-pprof under debug related struct
  • minor changes to flags

@sthaha sthaha requested a review from vimalk78 May 20, 2025 05:42
@github-actions github-actions bot added the refactor Code refactoring without changing functionality label May 20, 2025
Copy link

codecov bot commented May 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.01%. Comparing base (25fbbc3) to head (4e3c8b3).
Report is 4 commits behind head on reboot.

Additional details and impacted files
@@            Coverage Diff             @@
##           reboot    #2075      +/-   ##
==========================================
- Coverage   92.08%   92.01%   -0.07%     
==========================================
  Files          30       30              
  Lines        2187     2218      +31     
==========================================
+ Hits         2014     2041      +27     
- Misses        131      134       +3     
- Partials       42       43       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sthaha sthaha requested a review from vprashar2929 May 20, 2025 05:52
@sthaha sthaha force-pushed the refactor-config branch 4 times, most recently from 58e03d1 to 7ab095c Compare May 20, 2025 23:33
@sthaha sthaha force-pushed the refactor-config branch 2 times, most recently from f12a552 to 4709cbe Compare May 21, 2025 06:19
This commit restructures config as follows

Configuration
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
log:
    level: debug
    format: text
host:
    sysfs: /sys
    procfs: /proc
monitor:
    interval: 5s
    staleness: 1s
rapl:
    zones: []
exporter:
    stdout:
        enabled: true
    prometheus:
        enabled: true
        debugCollectors:
            - go
            - process
web:
    configFile: ""
debug:
    pprof:
        enabled: true
dev:
    fake-cpu-meter:
        enabled: false
        zones: []

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Significant changes include:
* new exporter setting to hold all exporter related configs
* restructure stdout.enabled under exporter
* add prometheus exporter related settings for debugCollectors
* move enabled-pprof under `debug` related struct
* minor changes to flags

Signed-off-by: Sunil Thaha <[email protected]>
@sthaha sthaha force-pushed the refactor-config branch from 4709cbe to 4e3c8b3 Compare May 21, 2025 06:33
args: []string{"--no-exporter.prometheus"},
enabled: false,
}, {
name: "disable prometheus exporter with flag",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change test case name

@sthaha sthaha merged commit 25e21ed into sustainable-computing-io:reboot May 21, 2025
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Code refactoring without changing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants