-
Notifications
You must be signed in to change notification settings - Fork 50
Labels
- Admin -Enjoyable to Install and Setup our SoftwareEnjoyable to Install and Setup our Software- Developer -Torrust Improvement ExperienceTorrust Improvement ExperienceEasyGood for NewcomersGood for Newcomers
Description
More info: https://prometheus.io/docs/instrumenting/exposition_formats/#text-format-example
For example, for this line:
udp_tracker_server_requests_received_total{server_binding_ip="0.0.0.0",server_binding_port="6868",server_binding_protocol="udp"} 36661
We should add:
# HELP udp_tracker_server_requests_received_total Total number of UDP requests received
# TYPE udp_tracker_server_requests_received_total counter
udp_tracker_server_requests_received_total{server_binding_ip="0.0.0.0",server_binding_port="6868",server_binding_protocol="udp"} 36661
TYPE and HELP values can be obtained from the metric description:
metrics.metric_collection.describe_counter(
&metric_name!(UDP_TRACKER_SERVER_REQUESTS_RECEIVED_TOTAL),
Some(Unit::Count),
Some(&MetricDescription::new("Total number of UDP requests received")),
);
Metadata
Metadata
Assignees
Labels
- Admin -Enjoyable to Install and Setup our SoftwareEnjoyable to Install and Setup our Software- Developer -Torrust Improvement ExperienceTorrust Improvement ExperienceEasyGood for NewcomersGood for Newcomers