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
The mock Pokemon Environment I built in 2019 to study Reinforcement Learning + Pokemon

ghetto-pokemon-rl-environment ##NOT MAINTAINED! Fork and maintain yourself. Environment I made back in 2019 to use Pokemon to practice reinforcement l

2 Dec 09, 2021
This is a repository containing the backend and the frontend of a simple pokédex.

Pokémon This is a repository containing the backend and the frontend of a simple pokédex. This is a work in progress project! Project Structure 🗂 pok

André Rato 1 Nov 28, 2021
Final project in KAIST AI class

mmodal_mixer MLP-Mixer based Multi-modal image-text retrieval Image: Original image is cropped with 16 x 16 patch size without overlap. Then, it is re

SuperSuperMoon 5 May 30, 2022
Python tools for working with Orbit Ephemeris Messages (OEMs).

Python Orbit Ephemeris Message tools Python tools for working with Orbit Ephemeris Messages (OEMs). Development Status Installation The oem package is

Brad Sease 4 Apr 06, 2022
Saturne best tools pour baiser tout le système de discord

Installation | Important | Discord 🌟 Comme Saturne est gratuit, les dons sont vraiment appréciables et maintiennent le développement! Caractéristique

GalackQSM 8 Oct 02, 2022
creates a batch file that uses adb to auto-install apks into the Windows Subsystem for Android and registers it as the default application to open apks.

wsa-apktool creates a batch file that uses adb to auto-install apks into the Windows Subsystem for Android and registers it as the default application

Aditya Vikram 3 Apr 05, 2022
Medical appointments No-Show classifier

Medical Appointments No-shows Why do 20% of patients miss their scheduled appointments? A person makes a doctor appointment, receives all the instruct

4 Apr 20, 2022
Pseudometa's dotfiles

pseudometa's dotfiles Table of Contents Why this repository? How this Repository works Special Explanations Got an idea for an improvement? Contact Wh

pseudometa 23 Dec 27, 2022
PwnDatas-DB-Project(PDDP)

PwnDatas-DB-Project PwnDatas-DB-Project(PDDP) 安裝依賴: pip3 install pymediawiki 使用: cd /opt git https://github.com/JustYoomoon/PwnDatas-DB-Project.git c

21 Jul 16, 2021
A redesign of our previous Python World Cup, aiming to simulate the 2022 World Cup all the way from the qualifiers

A redesign of our previous Python World Cup, aiming to simulate the 2022 World Cup all the way from the qualifiers. This new version is designed to be more compact and more efficient and will reflect

Sam Counsell 1 Jan 07, 2022
Devil - Very Semple Auto Filter V1 Bot

Devil Very Semple Auto Filter V1 Bot

2 Jun 27, 2022
Monitor the New World login queue and notify when it is about to finish

nwwatch - Monitor the New World queue and notify when it is about to finish Getting Started install python 3.7+ navigate to the directory where you un

14 Jan 10, 2022
Defichain maxi - Scripts to optimize performance on defichain rewards

defichain_maxi This script is made to optimize your defichain vault rewards by m

kuegi 75 Dec 31, 2022
Exercise to teach a newcomer to the CLSP grid to set up their environment and run jobs

Exercise to teach a newcomer to the CLSP grid to set up their environment and run jobs

Alexandra 2 May 18, 2022
tetrados is a tool to generate a density of states using the linear tetrahedron method from a band structure.

tetrados tetrados is a tool to generate a density of states using the linear tetrahedron method from a band structure. Currently, only VASP calculatio

Alex Ganose 1 Dec 21, 2021
A community based economy bot with python works only with python 3.7.8 as web3 requires cytoolz

A community based economy bot with python works only with python 3.7.8 as web3 requires cytoolz has some issues building with python 3.10

4 Jan 01, 2022
Python bilgilerimi eğlenceli bir şekilde hatırlamak ve daha da geliştirmek için The Big Book of Small Python Projects isimli bir kitap almıştım.

Python bilgilerimi eğlenceli bir şekilde hatırlamak ve daha da geliştirmek için The Big Book of Small Python Projects isimli bir kitap almıştım. Bu repo kitaptaki örnek programları çalıştığım oyun al

Burak Selim Senyurt 22 Oct 26, 2022
Gerador de dafaces

🎴 DefaceGenerator Obs: esse script foi criado com a intenção de ajudar pessoas iniciantes no hacking que ainda não conseguem criar suas próprias defa

LordShinigami 3 Jan 09, 2022
Certipy is a Python tool to enumerate and abuse misconfigurations in Active Directory Certificate Services (AD CS).

Certipy Certipy is a Python tool to enumerate and abuse misconfigurations in Active Directory Certificate Services (AD CS). Based on the C# variant Ce

ollypwn 1.3k Jan 01, 2023
An app about keyboards, originating from the design of u/Sonnenschirm

keebapp-backend An app about keyboards, originating from the design of u/Sonnenschirm Setup Firstly, ensure that the environment for python is install

8 Sep 04, 2022