here is my configuration if you want to see it in practice https://github.com/sioodmy/dotfiles/tree/f881916328fcb13ffaf7c436a7f0fa2c28103273
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Prerequisites: | |
# sudo apt install pipx curl jq tar | |
# sudo pipx install b2 | |
# | |
# Enabled admin api in your prometheus, see: https://prometheus.io/docs/prometheus/2.1/querying/api/#tsdb-admin-apis | |
# | |
# pass 6 args: | |
# - prometheus base url, example: http://localhost:9090 |