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.4-py2.py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 2 Python 3

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