Skip to content

Commit

Permalink
feat: add interface link related metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
swoga committed Jul 14, 2023
1 parent 76c3c2d commit c3f2779
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions dist/modules/interface.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,23 @@ modules:
metric_type: gauge
remap_values_re:
- '^([0-9]+)000$': '${1}'
- param_name: full-duplex
param_type: bool
metric_type: gauge
- param_name: rate
param_type: int
metric_type: gauge
remap_values_re:
- '([0-9]+)Gbps': '${1}000000000'
- '([0-9]+)Mbps': '${1}000000'
- param_name: auto-negotiation
param_type: int
metric_type: gauge
remap_values:
disabled: 0
done: 1
failed: -1
incomplete: -2
metrics:
- param_name: rx-broadcast
param_type: int
Expand Down

0 comments on commit c3f2779

Please sign in to comment.