This project interrogate Statuscake to fetch pagespeeed data of some shows regularly. Thoses data are exported on Prometheus. A library to take advantage of the API of https://www.statuscake.com/
Get access to this following information:
- URL
- Title
- Loadtime_ms
- Filesize_kb
- Requests
To configure the project, we use npm config package, follow config/default.json.dist example to define yours with:
- interval (Speedtime is check every second by default)
- apikey (Imperative to get access to statuscake)
- username (Imperative to get access to statuscake)
- baseUrl (Imperative to get access to statuscake)
- route (Name your route)
- listener (3000 by default)
- testTitleFilter (Name of your filter)
- firstTag (Name of your tag)
- nameOflLoadTimeGauge (Name of your loadtime gauge)
- nameOfFileSizeGauge (Name of your filesize gauge)
- nameOfRequestGauge (Name of your request gauge)
- tagsFromTestTitleRegexp (Your regex)
- tags (Your tags)
Use debug to access to the data, or to check if you got some errors:
DEBUG=statuscake yarn startDEBUG=error yarn startIf you need more information on this package: https://www.npmjs.com/package/debug
yarn testIf you need more information on this package: https://jestjs.io/docs/en/getting-started
yarn lintyarn installGet access to node server with yarn start.
yarn startThis README was generated with ❤️ by readme-md-generator