This is a docker-compose stack created for a test enviroment to monitor MOC network switches. It consits of a working SNMP exporter with Prometheus and Grafana.
-
Ensure you have docker and docker compose on your system
-
In prometheus/prometheus.yml, replace
INSERT IPs, can insert a list
with the IP address of the target switches. -
In snmp_exporter/snmp.yml, replace
COMMUNITY_STRING
with the community string of the SNMP device (it should be the last line of the file)
- Generate the
snmp.yml
file withdocker-compose -f compose-generator.yml up
- Run the docker-compose stack with
docker-compose up
- Prometheus is running on port 9990
- Grafana is running on port 3110
- Exporter is running on port 9116
Prometheus and Grafana are not running on their default ports because the test VM already had those provisioned.