setup-monitoring
Full monitoring setup — install agents + configure wiring + register with Prometheus
v1d4ef0dbe6 steps
Steps
auth
keebDev02.authAuthenticate with Proxmox
Configuration
apiUrl: https://10.0.0.4:8006
username: root
password: ${{ vault.get("proxmox-vault", "password") }}
realm: pam
node: keeb-dev-02
skipTlsVerify: true
discover-hub
hancockMonitoring.discoverValidate observability stack on hancock
Configuration
sshHost: 10.0.0.12
sshUser: keeb
targetsDir: /storage/02/linux/docker/prometheus/targets
lookup-vm
fleet.lookupLookup target VM in fleet
← depends on: auth (on succeeded)
Configuration
apiUrl: https://10.0.0.4:8006
ticket: ${{ model.keebDev02.resource.node.node.attributes.ticket }}
csrfToken: ${{ model.keebDev02.resource.node.node.attributes.csrfToken }}
node: keeb-dev-02
skipTlsVerify: true
install-agents
monitoringAgent.installInstall node-exporter and promtail on the VM
← depends on: lookup-vm (on succeeded)
Configuration
sshHost: ${{ model.fleet.resource.vm[inputs.vmName].attributes.ip }}
sshUser: root
configure-promtail
monitoringAgent.configureConfigure promtail on the VM to push logs to Loki
← depends on: install-agents (on succeeded), discover-hub (on succeeded)
Configuration
sshHost: ${{ model.fleet.resource.vm[inputs.vmName].attributes.ip }}
sshUser: root
register-target
hancockMonitoring.registerRegister VM as a Prometheus scrape target on hancock
← depends on: install-agents (on succeeded), discover-hub (on succeeded)
Configuration
sshHost: 10.0.0.12
sshUser: keeb
targetsDir: /storage/02/linux/docker/prometheus/targets