Grafana agent
Jump to navigation
Jump to search
Add
#!/bin/bash set -eu sudo mkdir -p /etc/apt/keyrings/ wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg > /dev/null echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" | sudo tee /etc/apt/sources.list.d/grafana.list sudo apt-get update sudo apt-get install grafana-agent
Remove
#!/bin/bash set -eu sudo systemctl stop grafana-agent sudo apt-get remove grafana-agent sudo rm -i /etc/apt/sources.list.d/grafana.list