The CSGO-Exporter is a Prometheus Exporter, written in golang, which lets you see your CSGO Stats, that you wouldnt normally see.
To run the whole stack, just change your the credentials in the docker-compose file services.csgo-exporter.environment:
and then run the file by typing:
docker-compose up -d
and it will automatically fetch and install Prometheus, Grafana, Node-Exporter, and the CSGO-Exporter.
version: '3.3'
volumes:
prometheus:
grafana:
services:
grafana:
image: grafana/grafana:latest
ports:
- 3000:3000
volumes:
- grafana:/var/lib/grafana
restart: always
prometheus:
image: prom/prometheus:latest
ports:
- 9090:9090
volumes:
- ./prometheus/:/etc/prometheus
- prometheus:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
restart: always
node-exporter:
image: prom/node-exporter:latest
ports:
- 9200:9200
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)'
restart: unless-stopped
csgo-exporter:
build: ./
environment:
- EXPORTERPORT=9092 #Default Port -> prometheus/prometheus.yml
- STEAMID=<YourSteamID>
- STEAMKEY=<YourSteamKey>
restart: unless-stopped
The Exporter makes simple API calls to the Steam-API Servers, takes the information and parses it into readable Metrics for Prometheus.
- Use smaller Alpine Image
- Import more Metrics
- Use go binary for smaller Image Size
- Add Env for Loglevel
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D