dolejska-daniel / riot-api

Riot League of Legends & DataDragon API wrappers for PHP7 and PHP8.
GNU General Public License v3.0
112 stars 25 forks source link

Add an option to export current api usage statistics #18

Closed cohenu closed 6 years ago

cohenu commented 6 years ago

Hi, I wanted to know if it's possible to export the current usage statistics (Rate Limit Tokens) so that I can export them to prometheus. Is there a build in function for fetching the current usage statistics?

TheKeymaster commented 6 years ago

I am not sure about exporting but you can atleast see this data at the developers website by Riot Games. You can filter by API Keys and other details such as specific methods etc. For me it looks like: image

TheKeymaster commented 6 years ago

They also provide some really cool graphs that I just saw 📈

image

cohenu commented 6 years ago

@TheKeymaster nice, where can I find these graphs ?

TheKeymaster commented 6 years ago

Sorry for my late answer. You can find them under https://developer.riotgames.com/. At the bottom there is a gray button that says "View API Key usage".

cohenu commented 6 years ago

Thanks @TheKeymaster! I cannot find the graphs in that section (API Key usage) can you be more specific ?

TheKeymaster commented 6 years ago

I hope this screenshot explains enough :) riotgames_api

cohenu commented 6 years ago

@TheKeymaster I found already the api key usage per endpoint but I cannot find the graphs - is it in the same portal?

dolejska-daniel commented 6 years ago

Since this is not really a bug or feature of this library and it has been inactive for quite some time, I will close this issue.