Prometheus exporter for chess.com player data

Overview

chess-exporter

Prometheus exporter for chess.com player data implemented via chess.com's published data API and Prometheus Python Client

Example use cases:

Deployment into Kubernetes

Simply deploy the Kubernetes manifests in the manifests folder. Have a look at kustomization.yaml first. Ensure that namespace suits you, and optionally uncomment servicemonitor.yaml.

kubectl apply -k manifests

Available metrics

Metric name description values
chess_rapid_rating_current{playerName="playerName"} Current chess.com rating of player playerName in rapid integer
chess_rapid_wins{playerName="playerName"} Total number of wins of player playerName in rapid integer
chess_rapid_losses{playerName="playerName"} Total number of losses of player playerName in rapid integer
chess_rapid_draws{playerName="playerName"} Total number of draws of player playerName in rapid integer
chess_blitz_rating_current{playerName="playerName"} Current chess.com rating of player playerName in blitz integer
chess_blitz_wins{playerName="playerName"} Total number of wins of player playerName in blitz integer
chess_blitz_losses{playerName="playerName"} Total number of losses of player playerName in blitz integer
chess_blitz_draws{playerName="playerName"} Total number of draws of player playerName in blitz integer
chess_bullet_rating_current{playerName="playerName"} Current chess.com rating of player playerName in bullet integer
chess_bullet_wins{playerName="playerName"} Total number of wins of player playerName in bullet integer
chess_bullet_losses{playerName="playerName"} Total number of losses of player playerName in bullet integer
chess_bullet_draws{playerName="playerName"} Total number of draws of player playerName in bullet integer
chess_online{chess_online="online",playerName="playerName"} online status of player playerName, currently not working 0 or 1
chess_online{chess_online="offline",playerName="playerName"} online status of player playerName, currently not working 0 or 1
chess_online{chess_online="unknown",playerName="playerName"} online status of player playerName, currently not working 0 or 1

Configuration

Chess-exporter is highly configurable via environment variables, and a configuration file.


Inspired by https://trstringer.com/quick-and-easy-prometheus-exporter/

Owner
Mário Uhrík
DevOps Engineer
Mário Uhrík
Calculate the efficient frontier

关于 代码主要参考Fábio Neves的文章,你可以在他的文章中找到一些细节性的解释

Wyman Lin 104 Nov 11, 2022
💻 Algo-Phantoms-Backend is an Application that provides pathways and quizzes along with a code editor to help you towards your DSA journey.📰🔥 This repository contains the REST APIs of the application.✨

Algo-Phantom-Backend 💻 Algo-Phantoms-Backend is an Application that provides pathways and quizzes along with a code editor to help you towards your D

Algo Phantoms 44 Nov 15, 2022
This is a library which aiming to save all my code about cpp. It will help me to code conveniently.

This is a library which aiming to save all my code about cpp. It will help me to code conveniently.

Paul Leo 21 Dec 06, 2021
AndroidEnv is a Python library that exposes an Android device as a Reinforcement Learning (RL) environment.

AndroidEnv is a Python library that exposes an Android device as a Reinforcement Learning (RL) environment.

DeepMind 814 Dec 26, 2022
OnTime is a small python that you set a time and on that time, app will send you notification and also play an alarm.

OnTime Always be OnTime! What is OnTime? OnTime is a small python that you set a time and on that time, app will send you notification and also play a

AmirHossein Mohammadi 11 Jan 16, 2022
Fisherman is a free open source fishing bot written in python.

Fisherman is a free open source fishing bot written in python.

Pure | Cody 33 Jan 29, 2022
A simple script that can watch a list of directories for change and does some action

plot_watcher A simple script that can watch a list of directories and does some action when a specific kind of change happens In its current implement

Charaf Errachidi 12 Sep 10, 2021
A collection of design patterns and idioms in Python (With tests!).

Python Patterns Help the project financially: Donate: https://smartlegion.github.io/donate/ Yandex Money: https://yoomoney.ru/to/4100115206129186 PayP

5 Sep 12, 2021
Add all JuliaLang unicode abbreviations to AutoKey.

Autokey Unicode characters Usage This script adds all the unicode character abbreviations supported by Julia to autokey. However, instead of [TAB], th

Randolf Scholz 49 Dec 02, 2022
The purpose of this tool is to check RDP capabilities of a user on specific targets.

RDPChecker The purpose of this tool is to check RDP capabilities of a user on specific targets. Programming concept was taken from RDPassSpray and thu

Hypnoze57 57 Aug 04, 2022
The repository for AnyMacro: a Fusion360 Add-In

AnyMacro AnyMacro is an Autodesk® Fusion 360™ add-in for chaining multiple commands in a row to form Macros. Macros are created from a set of commands

1 Jan 07, 2022
An easy way to access to your EPITECH subjects based on the Roslyn's database.

An easy way to access to your EPITECH subjects based on the Roslyn's database.

Mathias 1 Feb 09, 2022
This is the community maintained fork of ungleich's cdist (after f061fb1).

cdist This is the community maintained fork of ungleich's cdist (after f061fb1). Work is split between three repositories: cdist - implementation of t

cdist community edition 0 Aug 02, 2022
Python meta class and abstract method library with restrictions.

abcmeta Python meta class and abstract method library with restrictions. This library provides a restricted way to validate abstract methods. The Pyth

Morteza NourelahiAlamdari 8 Dec 14, 2022
XAC HID Gamepad implementation for CircuitPython 7 or above.

CircuitPython_XAC_Gamepad Setup process Install CircuitPython 7 or above in your board. Add the init.py file under \lib\adafruit_hid directory of CIRC

5 Dec 19, 2022
Cairo-bloom - A naive bloom filter implementation in Cairo

🥀 cairo-bloom A naive bloom filter implementation in Cairo. A Bloom filter is a

Sam Barnes 37 Oct 01, 2022
combs is a package used to generate all possible combinations of a given length k on a given set.

The package combs is a package used to generate all possible combinations of a given length k on a given set. The set is given as a list, and k must b

1 Dec 24, 2021
DG - A(n) (unusual) programming language

DG - A(n) (unusual) programming language General structure There are no infix-operators (i.e. 1 + 1) Each operator takes 2 parameters When there are m

1 Mar 05, 2022
Python library for converting Python calculations into rendered latex.

Covert art by Joshua Hoiberg handcalcs: Python calculations in Jupyter, as though you wrote them by hand. handcalcs is a library to render Python calc

Connor Ferster 5.1k Jan 07, 2023
COVID-19 case tracker in Dash

covid_dashy_personal This is a personal project to build a simple COVID-19 tracker for Australia with Dash. Key functions of this dashy will be to Dis

Jansen Zhang 1 Nov 30, 2021