GithubHelp home page GithubHelp logo

supreme-elite / srcds_exporter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from galexrt/srcds_exporter

0.0 1.0 1.0 3.45 MB

Prometheus exporter for SRCDS Gameserver using Source RCON.

License: Apache License 2.0

Go 91.47% Makefile 8.04% Dockerfile 0.49%

srcds_exporter's Introduction

srcds_exporter

SRCDS Gameserver Prometheus exporter.

Docker Repository on Quay license

Compatibility

Tested Games

It may work with newer Source Engine games like Counter-Strike: Global Offensive too, but hasn't been tested too much by the project team.

If you have any issues with a game, please create an issue containing the rcon output of status command and we'll look into it.

Collectors

(*Collectors, the "code" that collects metrics)

Whick collectors are enabled is controlled by the --collectors.enabled flag.

Enabled by default

Name Description
playercount Current player count
map Current map played

Disabled by default

Name Description
players Report all players by with their Steam ID label as a metric.

Usage

Create the srcds_exporter config file (see srcds.example.yml for an example). The config file can be named whatever you want, the path to the config must be passed to the srcds_exporter through the -config.file=FILE_PATH flag (default: ./srcds.yaml (current directoy file srcds.yaml)).

Then just run the srcds_exporter binary, through Docker (don't forget to add a mount so the config is available in the container), directly or by having it in your PATH.

To get a list of all available flags, use the --help flag (srcds_exporter --help).

Example output:

$ srcds_exporter --help
srcds_exporter [FLAGS]
  -collectors.enabled string
    	Comma separated list of active collectors (default "map,playercount")
  -collectors.print
    	If true, print available collectors and exit.
  -config.file string
    	Config file to use. (default "./srcds.yaml")
  -debug
    	Enable debug output
  -help
    	Show help menu
  -version
    	Show version information
  -web.listen-address string
    	The address to listen on for HTTP requests (default ":9137")
  -web.telemetry-path string
    	Path the metrics will be exposed under (default "/metrics")

Docker Image

The Docker image is available from Quay.io:

  • quay.io/galexrt/srcds_exporter:TAG

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.