Examples
Tcp Byte Counters
Prometheus counters for bytes forwarded over TCP connections in each direction, labeled by listener
Category: Setup-dependent integration
Task: Prometheus counters for bytes forwarded over TCP connections in each direction, labeled by listener
Prerequisites: The external service, credentials, or certificates referenced by this configuration.
Run it: Use ghcr.io/praxis-proxy/praxis:0.8.0 and follow the first reverse-proxy tutorial to mount and start the configuration.
This configuration comes from the selected release. The example has not been run here; external services are not bundled.
Download the source file.
# TCP Byte Counters
#
# Prometheus counters for bytes forwarded over TCP connections in each
# direction, labeled by listener. Totals stay accurate when a session ends
# on an idle timeout or shutdown rather than a clean close. Scraped via the
# metrics listener.
#
admin:
metrics_address: "127.0.0.1:9902"
insecure_options:
allow_private_upstreams: true
listeners:
- name: postgres
address: "127.0.0.1:5432"
protocol: tcp
upstream: "127.0.0.1:15432"