Hentai@Home metrics with prometheus and cloudflare workers.
- Copy dist/worker.js to cloudflare worker.
- Find
ipb_member_id
andipb_pass_hash
from your e-hentai cookie, then set up worker environment variablesIPB_MEMBER_ID
andIPB_PASS_HASH
. - Configure a new job of prometheus
- job_name: 'hath-worker'
scrape_interval: 30m
scheme: https
static_configs:
- targets: ['your.worker.workers.dev:443']
Name | Type | labels |
---|---|---|
hath_region_load | Gauge | region |
hath_region_miss | Gauge | region |
hath_region_coverage | Gauge | region |
hath_region_hits | Gauge | region |
hath_region_quality | Gauge | region |
hath_client_status | Gauge | name,id,country |
hath_client_created | Gauge | name,id,country |
hath_client_file_served_total | Counter | name,id,country |
hath_client_max_speed | Gauge | name,id,country |
hath_client_trust | Gauge | name,id,country |
hath_client_quality | Gauge | name,id,country |
hath_client_hit_rate | Gauge | name,id,country |
hath_client_hath_rate | Gauge | name,id,country |