Xonotic server monitoring - Printable Version +- Xonotic Forums (https://forums.xonotic.org) +-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3) +--- Forum: Xonotic - Server Administration (https://forums.xonotic.org/forumdisplay.php?fid=16) +--- Thread: Xonotic server monitoring (/showthread.php?tid=7701) |
Xonotic server monitoring - Sl@va - 04-01-2018 Hi, If you are hosting your own xonotic server you probably had an idea to make server monitoring with graphs and maybe even alerts (so you will receive notification if something goes wrong). I'd like to to show you one way to do it. I'm using it for monitoring my own servers, also most graphs are public, so you can check them here and here. I'll post screenshot for convenience. Heart of my monitoring system is prometheus, which collects and stores metrics data, also it allows easy querying and processing of this data. It interesting system, because while most monitoring system are push based, prometheus is pull-based. It means that prometheus requests metrics from other parties and not vice versa (other party not pushes metrics). As already you have seen, I'm using graphana as UI for prometheus data. Each graph you have seen in links I have posted below are result of prometheus queries. Any data store and UI aren't useful without actual data to process and graph. Promtheus can work with applications that specially developed to be compatible with it or with gateways (called exports in prometheus) that export metrics in prometheus format, so it can collect and save those metrics. I'm using 3 exporters:
For alerting I'm using alertmanager, it is part of prometheus project. To make you setup easier, I'll post here example prometheus config: Code: global: It's actually simplified version of my own config. Also, note that prometheus is using yaml for confgiuration file. If you have any question about this setup you can ask me here or IRC, I will be happy to help. Also, I want announce about second release of xrcon library. New release have few fixes also new tool: xping. Which can ping xonotic server or client, also it supports other games too (it supports Quake 3, Quake 2 and qfusion protocols). Hope this will be helpful for you. RE: Xonotic server monitoring - Antibody - 04-01-2018 That is really, really nice Slava. Thanks for sharing! Have an upvote. RE: Xonotic server monitoring - kwakkiezalf - 04-05-2018 Wow that looks good Slava, u the KING!!! I will need some help to set this up:-) cheers kwak RE: Xonotic server monitoring - MarisaG - 09-17-2018 Looks great! I tried installing it but when I run: Code: pip install -e git+https://github.com/bacher09/xrcon#egg=xrcon i get these errors: Code: Traceback (most recent call last): I would also like to set up graphs - can you help me with these issues? Thanks! RE: Xonotic server monitoring - BuddyFriendGuy - 09-18-2018 (09-17-2018, 01:17 AM)MarisaG Wrote: i get these errors: Perhaps this? https://stackoverflow.com/questions/49836676/error-after-upgrading-pip-cannot-import-name-main RE: Xonotic server monitoring - MarisaG - 09-18-2018 Looks like that might be it... Thx. RE: Xonotic server monitoring - Sl@va - 09-16-2022 This is a bit old (but for some reason I got email notification about this thread). Anyway, wanted to say that current exporter is a bit outdated and I made a new one. It has some api functionality, as well as prometheus exporter. That's what I'm using for regulars.win website. RE: Xonotic server monitoring - FAF - 04-16-2023 (09-16-2022, 04:46 AM)Sl@va Wrote: This is a bit old (but for some reason I got email notification about this thread). Anyway, wanted to say that current exporter is a bit outdated and I made a new one. It has some api functionality, as well as prometheus exporter. That's what I'm using for regulars.win website. Thank you. Looking into it. RE: Xonotic server monitoring - FAF - 04-16-2023 (09-16-2022, 04:46 AM)Sl@va Wrote: This is a bit old (but for some reason I got email notification about this thread). Anyway, wanted to say that current exporter is a bit outdated and I made a new one. It has some api functionality, as well as prometheus exporter. That's what I'm using for regulars.win website. Thinking of using a Docker Prometheus container and a Xonotic exporter. Do you have any documentation? RE: Xonotic server monitoring - Sl@va - 04-16-2023 You can check some graphs (that's public) here . Regarding documentation, no I don't have any documentation for it, but everything is dead simple. Old exporter has configuration sample and new one has JSON schema for the configuration file which follows same format. You also can experiment with my instance that is running, for example players API: Code: https://api.regulars.win/servers Also it's open-source, so you can modify it as you want too to fit your need. RE: Xonotic server monitoring - FAF - 04-17-2023 (04-16-2023, 10:56 AM)Sl@va Wrote: You can check some graphs (that's public) here . OK, thank you, I will check it out. |