mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-13 00:16:21 +08:00
Add more explicit comment on metrics destination
This commit is contained in:
parent
45d45704de
commit
70a8e423a9
1 changed files with 1 additions and 0 deletions
|
@ -214,6 +214,7 @@ def send_prometheus_metrics(
|
|||
authentication = None
|
||||
|
||||
# Fix for #150, job name needs to be unique in order to avoid overwriting previous job in push gateway
|
||||
# destination contains the URI of the push gateway as well as the job name
|
||||
destination = f"{destination}___repo_name={repo_name}___action={operation}"
|
||||
upload_metrics(destination, authentication, no_cert_verify, metrics)
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue