Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/acdha/lighthouse-prometheus
Export Google Lighthouse reports to Prometheus
https://github.com/acdha/lighthouse-prometheus
Last synced: 2 months ago
JSON representation
Export Google Lighthouse reports to Prometheus
- Host: GitHub
- URL: https://github.com/acdha/lighthouse-prometheus
- Owner: acdha
- License: cc0-1.0
- Created: 2018-02-20T22:25:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-07T21:32:02.000Z (3 months ago)
- Last Synced: 2024-10-14T17:55:20.460Z (3 months ago)
- Language: Python
- Homepage:
- Size: 104 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Save Lighthouse reports to Prometheus
Run one or more sites through [Google's
Lighthouse](https://developers.google.com/web/tools/lighthouse/) and send the
scores to the Prometheus pushgateway.These values are collected from an off-site network to measure production CDN
behaviour as our users see it:http://prometheus.loctest.gov/grafana/dashboard/db/lighthouse-web-metrics
## Quickstart
```bash
$ pipenv run ./lighthouse-to-prometheus.py --chrome-flags="--proxy-server=socks5://localhost:1080" https://www.loc.gov https://www.wdl.org https://chroniclingamerica.loc.gov https://congress.gov https://blogs.loc.gov
Launching lighthouse for https://www.loc.gov…
Launching lighthouse for https://www.wdl.org…
Launching lighthouse for https://chroniclingamerica.loc.gov…
Launching lighthouse for https://congress.gov…
Pushed 112 results to http://prometheus:9091/metrics/job/lighthouse: ('total_time', (('instance', 'https://www.loc.gov/'),), 29605)…
```## Installation
1. `npm install -g lighthouse`
1. `pipenv install`