mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-10 06:54:54 +08:00
Typo fix in metric
This commit is contained in:
parent
22bdccbcac
commit
9323f8b4b0
1 changed files with 3 additions and 1 deletions
|
@ -120,7 +120,9 @@ def metric_writer(
|
|||
metrics.append(
|
||||
f'npbackup_oper_state{{{labels},action="{operation}",repo="{repo_name}"}} {0 if restic_result else 1}'
|
||||
)
|
||||
metrics.append(f'npbackup_exec_state{{{labels}}},action="{operation}" {exec_state}')
|
||||
metrics.append(
|
||||
f'npbackup_exec_state{{{labels},action="{operation}"}} {exec_state}'
|
||||
)
|
||||
logger.debug("Metrics computed:\n{}".format("\n".join(metrics)))
|
||||
if destination:
|
||||
logger.debug("Sending metrics to {}".format(destination))
|
||||
|
|
Loading…
Add table
Reference in a new issue