Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@caiq1nyu
Copy link
Collaborator

@caiq1nyu caiq1nyu commented Jul 25, 2025

provide an optional feature in dt-main crate to open a prometheus style metrics api.

can open this feature by:

cd dt-main
cargo build --release --features=metrics

when enable metrics feature, can set configs by:

[metrics]
# http service host
http_host=127.0.0.1
# http service port
http_port=9090
# http service worker count
workers=2
# prometheus metrics const labels
labels=your_label1:your_value1,your_label2:your_value2

and with curl 127.0.0.1:9090/metrics, you can get the task metrics

@caiq1nyu caiq1nyu merged commit 742888f into main Jul 25, 2025
1 check passed
@caiq1nyu caiq1nyu deleted the feat/metrics branch July 25, 2025 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] provides optional built-in prometheus format monitoring interface

2 participants