Attention

This is the documentation for HARP Proxy, actually published as an early preview. Both the software and documentation are a work in progress, and although we already use it on various production servers, they may contain inaccuracies, typographical errors, huge mistakes and empty pages. We work hard to eradicate all mistakes and implement stuff, but it is a long and tedious process. We appreciate your patience and understanding. Of course, any help will be greatly appreciated.

Prometheus

Warning

This feature is mostly for internal use for now, and although we’ll keep a prometheus integration in the future, configuration will change.

Enable the middleware using …

USE_ASGI_PROMETHEUS_MIDDLEWARE=true harp ...

Then you can access the metrics at /.prometheus/metrics.

Here is an example scrape configuration for prometheus:

scrape_configs:
  - job_name: harp
    honor_timestamps: true
    scrape_interval: 10s
    scrape_timeout: 10s
    metrics_path: /.prometheus/metrics
    scheme: http
    static_configs:
      - targets:
          - url.or.ip.for.harp.example.com:4080