Skip to content

Add new metric label server_binding_address_type - #1558

Merged
josecelano merged 1 commit into
torrust:developfrom
josecelano:1375-overhaul-stats-increase-ipv4-stats-for-ipv6-ips-with-the-prefix-ffff
Jun 4, 2025
Merged

josecelano merged 1 commit into
torrust:developfrom
josecelano:1375-overhaul-stats-increase-ipv4-stats-for-ipv6-ips-with-the-prefix-ffff

Conversation

@josecelano

@josecelano josecelano commented Jun 4, 2025 •

Copy link
Copy Markdown
Member

Add new metric label server_binding_address_type.

  • Label name: server_binding_address_type
  • Label values: plain, v4_mapped_v6

Usage example in Prometheus format:

udp_tracker_server_requests_accepted_total{request_kind="connect",server_binding_address_type="plain",server_binding_ip="0.0.0.0",server_binding_port="6969",server_binding_protocol="udp"} 1

Example of IPv4-mapped-IPv6 IP: [::ffff:192.0.2.33]

It should be included whenever another IP label value is used.

cc @devnakx

- Label name: `server_binding_address_type`
- Label values: `plain`, `v4_mapped_v6`

Usage example in Prometheous format:

```
udp_tracker_server_requests_accepted_total{request_kind="connect",server_binding_address_type="plain",server_binding_ip="0.0.0.0",server_binding_port="6969",server_binding_protocol="udp"} 1
```

Example of IPv4-mapped-IPv6 IP: `[::ffff:192.0.2.33]`
@josecelano josecelano self-assigned this Jun 4, 2025
@josecelano
josecelano requested a review from da2ce7 June 4, 2025 17:49
@josecelano

Copy link
Copy Markdown
Member Author

ACK d4c43bd

@codecov

codecov Bot commented Jun 4, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 97.82609% with 1 line in your changes missing coverage. Please review.

Project coverage is 83.40%. Comparing base (a7cbdcb) to head (d4c43bd).
Report is 2 commits behind head on develop.

Files with missing lines Patch % Lines
packages/primitives/src/service_binding.rs 97.05% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1558      +/-   ##
===========================================
+ Coverage    83.37%   83.40%   +0.03%     
===========================================
  Files          282      282              
  Lines        19822    19868      +46     
  Branches     19822    19868      +46     
===========================================
+ Hits         16526    16571      +45     
- Misses        3002     3003       +1     
  Partials       294      294              

☔ 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.

@josecelano
josecelano merged commit 33e69ff into torrust:develop Jun 4, 2025
@da2ce7

da2ce7 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Post-merge note: this pull request requested a review from this account and was closed without one at its final head. A post-merge review will not be done: Only 6 of the 66 executable lines it added remain in this repository; most of the rest left with packages that #1893 extracted to standalone repositories.

This branch was previously deployed

1 inactive deployment
coverage — d4c43bd3 Deployed Jun 4, 2025 by josecelano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Overhaul stats: Increase IPv4 stats for IPv6 IPs with the prefix ::ffff:

2 participants