Skip to main content

Prometheus Exporter for Fantasy Premier League.

Project description

FPL Exporter

https://img.shields.io/pypi/v/fpl_exporter.svg https://img.shields.io/travis/P6rguvyrst/fpl_exporter.svg Documentation Status Updates

Prometheus Exporter for Fantasy Premier League.

Installation & Upgrade

helm upgrade fpl-exporter charts/incubator/prometheus-exporter –namespace exporter -f values.yaml –install

Internal Metrics

Metric

Description

prometheus_exporter_fpl_work_time

Time spemnt processing API response data

prometheus_exporter_fpl_api_response_time

API response time

Generic Metrics

Metric

Description

fpl_players_total

Number of FPL players

fpl_assets_total

Number of Premier League assets (players)

Team Metrics

Metric

Description

fpl_team_availability

Team availability, current gameweek

fpl_team_strength_attack_home

Team offensive strength on home games

fpl_team_strength_attack_away

Team offensive strength on away games

fpl_team_strength_defence_home

Team defensive strength on home games

fpl_team_strength_defence_away

Team defensive strength on away games

fpl_team_strength_overal_home

Team overall strength on home games

fpl_team_strength_overal_away

Team overall strength on away games

fpl_team_strength

Team strength

fpl_team_table_position

Team position in Premier League table

fpl_team_table_points

Team points accumulated in Premier League table

fpl_team_games_played

Games played

fpl_team_games_won

Ganes won

fpl_team_games_lost

Games lost

fpl_team_games_drawn

Games drawn

Asset Metrics

Metric

Description

fpl_asset_ict_index

Asset ICT Index

fpl_asset_influence

Asset Influence

fpl_asset_creatifity

Asset Creativity

fpl_asset_threat

Asset Threat

fpl_asset_selected_by_percent

Asset Selected by people (percentage)

fpl_asset_form

Asset Form

fpl_asset_bonus

Asset Bonus

fpl_asset_bps

Asset Bonus Point Scores

NB! There’s more metrics instrumented, but since I haven’t yet found use for them and don’t want to overload exporter with useless functionality. Defined metrics can be found at fpl_exporter/metrics.py.

Features

  • HELP: fpl-exporter –help

  • DEBUG MODE: fpl-exporter -vd -p bootstrap-static

Endpoints

https://fantasy.premierleague.com/api/entry/{teamId}/history https://fantasy.premierleague.com/api/entry/{teamId}

https://fantasy.premierleague.com/api/fixtures https://fantasy.premierleague.com/api/bootstrap-static http://fantasy.premierleague.com/api/element-summary/{playerId}

http://fantasy.premierleague.com/api/leagues-classic-standings/{leagueId} http://fantasy.premierleague.com/api/leagues-h2h-standings/{leagueId}

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.0.1 (2019-07-16)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

fpl_exporter-0.1.5-py2.py3-none-any.whl (8.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file fpl_exporter-0.1.5-py2.py3-none-any.whl.

File metadata

  • Download URL: fpl_exporter-0.1.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.3

File hashes

Hashes for fpl_exporter-0.1.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 84547e3615b8775611e8d31e79e9d9e290b9e181bd23607b2275b607ac66b8e6
MD5 4b0ba2328c6f175b711e38383abca527
BLAKE2b-256 04deb6bf88ae32c848002ff2d1dbc7424d6ca2beddec1d8d270b83cbf7ab1ab5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page