0.2.8 • Published 3 years ago

prometheus_lighthouse_exporter v0.2.8

Weekly downloads
12
License
MIT
Repository
github
Last release
3 years ago

Prometheus Lighthouse Exporter

This is an simple Prometheus Exporter for Lighthouse Performance Data. With this you monitor continuously the Lighthouse Score of your Webpage.

Install

You can install it with npm. --unsafe-perm is needed because i use Puppeteer and without it you cannot install it globally.

sudo npm i -g prometheus_lighthouse_exporter --unsafe-perm

Sample Prometheus Config

global:
  scrape_interval: 5m
  evaluation_interval: 30s
  scrape_timeout: 1m

scrape_configs:
  - job_name: 'lighthouse'
    metrics_path: /probe
    static_configs:
      - targets:
        - https://philippkeschl.at
        - https://username:password@philippkeschl.at
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: 127.0.0.1:9593

If you want to Test and Page with HTTP Basic Authetication you can add the Username und Password to the URL of the Target as you can see in the Example above.

Grafana Dashboard

npm.io

0.2.8

3 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago