How to run Prometheus on Synpse
- Create secret with Prometheus configuration:
synpse secret create prometheus-config -f samples/prometheus/prometheus-config.yaml
- Create Prometheus deployment:
synpse deploy -f samples/prometheus/prometheus-synpse.yaml
To expose your Prometheus you can use Webhookrelay
-
Register and login to WHR
-
Create bidirectional tunnel with custom domain. Set destination to
http://prometheus:9090 -
Create token to configure your tunnel
-
Create secrets
relaySecretandrelayKey:
synpse secret create relaySecret -v RELAYSECRET
synpse secret create relayKey -v RELAYKEY
- Change
prometheus-synpse-webhookrelay.yamlto point to your tunnel:
- name: relayd
image: webhookrelay/webhookrelayd-aarch64:1
args:
- --mode
- tunnel
- -t
- <tunnel_name>
- Deploy
prometheus-synpse-webhookrelay.yamlto Synpse!