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
Amazon SageMaker Delta Sharing Examples

This repository contains examples and related resources showing you how to preprocess, train, and serve your models using Amazon SageMaker with data fetched from Delta Lake.

Eitan Sela 5 May 02, 2022
Blender 2.80+ Timelapse Capture Tool Addon

SimpleTimelapser Blender 2.80+ Timelapse Capture Tool Addon Developed for Blender 3.0.0, tested working on 2.80.0 It's no ZBrush undo history but it's

4 Jan 19, 2022
Add your recently blog and douban states in your GitHub Profile

Add your recently blog and douban states in your GitHub Profile

Bingjie Yan 4 Dec 12, 2022
A collection of examples of using cocotb for functional verification of VHDL designs with GHDL.

At the moment, this repo is in an early state and serves as a learning tool for me. So it contains a a lot of quirks and code which can be done much better by cocotb-professionals.

T. Meissner 7 Mar 10, 2022
Ultimate Score Server for RealistikOsu

USSR Ultimate Score Server for RealistikOsu (well not just us but it makes the acronym work.) Also I wonder how long this name will last. What is this

RealistikOsu! 15 Dec 14, 2022
Trusted sessions for falcon using itsdangerous.

Falcon signed sessions This project allows you to easily add trusted cookies to falcon, it works by storing a signed cookie in the client's browser us

Ward 1 Feb 08, 2022
A totally unrealistic cell growth/reproduction simulation.

A totally unrealistic cell growth/reproduction simulation.

Andrien Wiandyano 1 Oct 24, 2021
Convert three types of color in your clipboard and paste it to the color property (gamma correct)

ColorPaster [Blender Addon] Convert three types of color in your clipboard and paste it to the color property (gamma correct) How to Use Hover your mo

13 Oct 31, 2022
A python program with an Objective-C GUI for building and booting OpenCore on both legacy and modern Macs

A python program with an Objective-C GUI for building and booting OpenCore on both legacy and modern Macs, see our in-depth Guide for more information.

dortania 4.7k Jan 02, 2023
Create a program for generator Truth Table

Python-Truth-Table-Ver-1.0 Create a program for generator Truth Table in here you have to install truth-table-generator module for python modules inst

JehanKandy 10 Jul 13, 2022
Why write code when you can import it directly from GitHub Copilot?

Copilot Importer Why write code when you can import it directly from GitHub Copilot? What is Copilot Importer? The copilot python module will dynamica

Mythic 41 Jan 04, 2023
HSPyLib is a Python library that will elevate your experience to another level.

HomeSetup Python Library - HSPyLib Your mature python application HSPyLib is a Python library that will elevate your experience to another level. It r

Hugo Saporetti Junior 4 Dec 14, 2022
🦕 Compile Deno executables and compress them for all platforms easily

Denoc Compile Deno executables and compress them for all platforms easily. Install You can install denoc from PyPI like any other package: pip install

Eliaz Bobadilla 8 Apr 04, 2022
Introduction to Databases Coursework 2 (SQL) - dataset generator

Introduction to Databases Coursework 2 (SQL) - dataset generator This is python script generates a text file with insert queries for the schema.sql fi

Javier Bosch 1 Nov 08, 2021
The docker-based Open edX distribution designed for peace of mind

Tutor: the docker-based Open edX distribution designed for peace of mind Tutor is a docker-based Open edX distribution, both for production and local

Overhang.IO 696 Dec 31, 2022
A repository for all ZenML projects that are specific production use-cases.

ZenFiles Original Image source: https://www.goodfon.com/wallpaper/x-files-sekretnye-materialy.html And naturally, all credits to the awesome X-Files s

ZenML 66 Jan 06, 2023
A Python script made for the Python Discord Pixels event.

Python Discord Pixels A Python script made for the Python Discord Pixels event. Usage Create an image.png RGBA image with your pattern. Transparent pi

Stanisław Jelnicki 4 Mar 23, 2022
Python implementation of the Lox language from Robert Nystrom's Crafting Interpreters

pylox Python implementation of the Lox language from Robert Nystrom's Crafting Interpreters. https://craftinginterpreters.com. This only implements th

David Beazley 37 Dec 28, 2022
Tesla App Update Differences Extractor

Tesla App Update Differences Extractor Python program that finds the differences between two versions of the Tesla App. When Tesla updates the app a l

Adrian 5 Apr 11, 2022
Set of scripts that schedules employees for shifts throughout the week based on availability, shift times, and shift necessities

Automatic-Scheduler Set of scripts that schedules employees for shifts throughout the week based on availability, shift times, and shift necessities *

Matthew 1 May 01, 2022