I installed Crowdsec as a plugin on my OPNsense and changed the listening interface of Prometheus, in the config.yml:
prometheus:
enabled: true
level: full
listen_addr: 0.0.0.0
listen_port: 6060
I try to scrape the data from a docker service with Prometheus. This is the config:
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'firewall'
static_configs:
- targets: ['192.168.1.1:6060']
labels:
machine: 'firewall'
However, I am unable to get any data in Grafana..
I used this tutorial for reference: https://medium.com/@ravipatel.it/building-a-monitoring-stack-with-prometheus-grafana-and-alerting-a-docker-compose-ef78127e4a19