unyxos / srcds_exporter Goto Github PK
View Code? Open in Web Editor NEWPrometheus Exporter for SRCDS game servers, working with CSGO, CSS, GMod, HL2, L4D2 and TF2 !
Prometheus Exporter for SRCDS game servers, working with CSGO, CSS, GMod, HL2, L4D2 and TF2 !
Hello, on grafana, i can check by serveur, but i can't check all server in one page
Need to get the exporter working for CSS servers
Need to get the exporter working for HL2DM servers
Hey is it possible to add a status beside Online (1) Offline (0) like Hybernate (2) or new new status hybernate (0/1)
status
hostname: Counter-Strike: Global Offensive
version : 1.38.5.5/13855 1547/8853 secure [G:1:6214660]
udp/ip : 0.0.0.0:27015 (public ip: 78.46.XXX.XXX)
os : Linux
type : community dedicated
map : de_train
players : 0 humans, 0 bots (20/0 max) (hibernating)
# userid name uniqueid connected ping loss state rate adr
#end
Need to get the exporter working for TF2 servers
Need to get the exporter working for L4D2 servers
The srcds exporter seems to be polling stats sometimes on map change this causes really high server MS, etc to be reported. Ideally it should hold off for a couple of seconds and poll for new stats.
E.g. Useful for setting up alerts for high sv ms, etc.
If the server name contains :
in it's name, it won't be properly parsed and will not output the full hostname
Hello :)
Is it possible to add other games like sons of the forest? I have a dedicated server installed via docker.
Thanks!
After added correctly to Prometheus, state of the target is "up".
So port and so on should be correct.
But when I try to access the metrics in Prometheus graph with srcds_status (directly copied from metrics), it is always value 0.
But of course the server is running.
Do you have an Idea?
Hi guys,
I was trying the exporter, but encounter the same error again and again as you can see below.
I precise that i used the same config files as describe on this repository, exporter is install on the game server.
docker-compose file:
services:
srcds_exporter:
ports:
- '9591:9591'
container_name: srcds_exporter
restart: always
image: corentincl/srcds_exporter
On the prometheus side:
static_configs:
- targets: ["192.168.1.210:27015:12345:csgo"]
relabel_configs:
- source_labels: [__address__]
regex: "(.+):.+:.+:.+"
replacement: "$1"
target_label: __param_ip
- source_labels: [__address__]
regex: ".+:(.+):.+:.+"
replacement: "$1"
target_label: __param_port
- source_labels: [__address__]
regex: ".+:.+:(.+):.+"
replacement: "$1"
target_label: __param_password
- source_labels: [__address__]
regex: ".+:.+:.+:(.+)"
replacement: "$1"
target_label: __param_game
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: 192.168.1.210:9591
And as you can see all the metrics are returning 0 :
Thanks in advance guys
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.