Skip to content

Commit 2a4eab5

Browse files
committed
IPSec active peers with comments, #324
1 parent 575a25c commit 2a4eab5

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

mktxp/cli/config/_mktxp.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
[MKTXP]
1515
listen = '0.0.0.0:49090' # Space separated list of socket addresses to listen to, both IPV4 and IPV6
1616
socket_timeout = 5
17-
17+
1818
initial_delay_on_failure = 120
1919
max_delay_on_failure = 900
2020
delay_inc_div = 5
@@ -26,7 +26,7 @@
2626

2727
verbose_mode = False # Set it on for troubleshooting
2828

29-
fetch_routers_in_parallel = False # Fetch metrics from multiple routers in parallel / sequentially
29+
fetch_routers_in_parallel = False # Fetch metrics from multiple routers in parallel / sequentially
3030
max_worker_threads = 5 # Max number of worker threads that can fetch routers (parallel fetch only)
3131
max_scrape_duration = 30 # Max duration of individual routers' metrics collection (parallel fetch only)
3232
total_max_scrape_duration = 90 # Max overall duration of all metrics collection (parallel fetch only)

mktxp/datasource/ipsec_ds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def metric_records(router_entry, *, metric_labels=None, translation_table=None):
2929
# Format name with comment using centralized function
3030
if 'comment' in record:
3131
record['name'] = BaseOutputProcessor.format_interface_name(
32-
record['name'],
32+
record.get('name', ''),
3333
record['comment'],
3434
router_entry.config_entry.interface_name_format
3535
)

0 commit comments

Comments
 (0)