mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-06 13:05:24 +08:00
Reformat file with black
This commit is contained in:
parent
df15993e4c
commit
990722f9f7
1 changed files with 3 additions and 1 deletions
|
@ -52,7 +52,9 @@ def metric_writer(
|
|||
metrics = []
|
||||
|
||||
try:
|
||||
labels = {"npversion": f"{NAME}{version_dict['version']}-{version_dict['buildtype']}"}
|
||||
labels = {
|
||||
"npversion": f"{NAME}{version_dict['version']}-{version_dict['buildtype']}"
|
||||
}
|
||||
if repo_config.g("prometheus.metrics"):
|
||||
labels["instance"] = repo_config.g("prometheus.instance")
|
||||
labels["backup_job"] = repo_config.g("prometheus.backup_job")
|
||||
|
|
Loading…
Add table
Reference in a new issue