mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[PR #578] add --output-metrics format using prometheus-client #558
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/bootandy/dust/pull/578
Author: @clonejo
Created: 5/28/2026
Status: 🔄 Open
Base:
master← Head:openmetrics-collector📝 Commits (1)
5543033add --output-metrics format using prometheus-client📊 Changes
12 files changed (+198 additions, -3 deletions)
View changed files
📝
Cargo.lock(+83 -0)📝
Cargo.toml(+1 -0)📝
completions/_dust(+1 -0)📝
completions/_dust.ps1(+1 -0)📝
completions/dust.bash(+1 -1)📝
completions/dust.elv(+1 -0)📝
completions/dust.fish(+1 -0)📝
man-page/dust.1(+4 -1)📝
src/cli.rs(+4 -0)📝
src/config.rs(+4 -0)📝
src/display_node.rs(+88 -1)📝
src/main.rs(+9 -0)📄 Description
I wanted to see over time where my disk space was being lost to, so i now run this a loop. Example output:
This can then be consumed by node-exporter's
textfilecollector.I had originally hand-rolled the prometheus text format, but by adding a dependency generating the format correctly is already solved.
What is your opinion on adding such a feature?
Obvs this still needs tests, and the added code in
display_node.rsis probably big enough to move into a separate module.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.