### Sample Configuration for Prometheus Metrics Proxy Source: https://github.com/dfinity/metrics-proxy/blob/master/README.md This configuration defines how the metrics proxy should operate, including listening addresses, target exporters, and metric filtering rules. It demonstrates the structure for setting up multiple proxies and applying transformations like reducing time resolution. ```yaml proxies: - listen_on: url: http://0.0.0.0:18080 connect_to: url: http://localhost:9100/metrics label_filters: - regex: .* actions: - drop - regex: node_cpu_.* actions: - reduce_time_resolution: resolution: 5s - keep metrics: url: http://127.0.0.1:8008/metrics ``` -------------------------------- ### Generate Test Certificates with OpenSSL Source: https://github.com/dfinity/metrics-proxy/blob/master/README.md This command generates a self-signed X.509 certificate and a private key for testing HTTPS configurations. Ensure to provide a common name when prompted. ```bash openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out certificate.pem ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.