https://github.com/mayniklas/valorant-exporter
https://github.com/mayniklas/valorant-exporter
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mayniklas/valorant-exporter
- Owner: MayNiklas
- Created: 2022-06-24T09:04:10.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-31T08:52:10.000Z (about 2 years ago)
- Last Synced: 2025-02-09T10:09:41.065Z (over 1 year ago)
- Language: Go
- Size: 30.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# valorant-exporter
A valorant elo exporter written in golang.
## Available metrics
Name | Description
---------|------------
valorant_elo | Elo of a player
valorant_games | Number of games played
valorant_tier | Tier of a player
valorant_wins | Number of games won
All metrics include the following labels:
* username
* tagline
## How to execute for development purposes
### Nix / NixOS
This repository contains a `flake.nix` file.
```sh
# run the package
nix run .#valorant_exporter
# build the package
nix build .#valorant_exporter
```
### General
Make sure [golang](https://go.dev) is installed.
```sh
# run application
go run .
# build application
go build
```
## How to install
### NixOS
1. Add this repository to your `flake.nix`:
```nix
{
inputs.valorant-exporter = {
url = "github:MayNiklas/valorant-exporter";
inputs = { nixpkgs.follows = "nixpkgs"; };
};
}
```
2. Enable the service & the prometheus scraper in your configuration:
```nix
{ valorant-exporter, ... }: {
imports = [ valorant-exporter.nixosModules.default ];
services.shelly-exporter = {
enable = true;
port = "1091";
listen = "localhost";
user = "valorant-exporter";
group = "valorant-exporter";
configure-prometheus = true;
targets = [
"mayniklas/niki"
];
};
}
```
### Libaries used
* https://github.com/prometheus/client_golang
### Libary documentation
* https://pkg.go.dev/github.com/prometheus/client_golang/prometheus