Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
b9f14892
Commit
b9f14892
authored
5 years ago
by
rjshrjndrn
Browse files
Options
Download
Patches
Plain Diff
Issue #000 feat: cleanup for backup
parent
cd0d2beb
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/roles/prometheus-backup-v2/tasks/main.yml
+1
-10
ansible/roles/prometheus-backup-v2/tasks/main.yml
with
1 addition
and
10 deletions
+1
-10
ansible/roles/prometheus-backup-v2/tasks/main.yml
+
1
−
10
View file @
b9f14892
---
# tasks file for ansible/roles/prometheus-backup-v2
# Issue: https://github.com/prometheus/prometheus/issues/5686
-
name
:
preparing snapshot
uri
:
url
:
"
{{
prometheus_url
}}/api/v1/admin/tsdb/snapshot"
method
:
POST
register
:
temp_snap
-
name
:
taking snapshot
uri
:
url
:
"
{{
prometheus_url
}}/api/v1/admin/tsdb/snapshot?skip_head=True"
...
...
@@ -32,11 +26,8 @@
-
name
:
Deleting snapshot
file
:
path
:
"
{{
prometheus_data_dir
}}/snapshots/{{
item
}}"
path
:
"
{{
prometheus_data_dir
}}/snapshots/{{
snapshot_name
}}"
state
:
absent
with_items
:
-
"
{{
snapshot_name
}}"
-
"
{{
temp_snap.json.data.name
}}"
-
name
:
Deleting archive snapshot
file
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets