{"id":13585668,"url":"https://github.com/mrichar1/exporter_proxy","last_synced_at":"2025-04-14T12:52:03.901Z","repository":{"id":56661590,"uuid":"307338283","full_name":"mrichar1/exporter_proxy","owner":"mrichar1","description":"A small pure-python Reverse HTTP proxy for Prometheus exporters with TLS support.","archived":false,"fork":false,"pushed_at":"2021-09-28T10:42:54.000Z","size":32,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T02:01:45.971Z","etag":null,"topics":["exporters","node-exporter","prometheus","proxy","reverse-proxy","ssl","tls","tls-proxy"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrichar1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-26T10:38:16.000Z","updated_at":"2024-03-04T08:41:50.000Z","dependencies_parsed_at":"2022-08-15T22:50:27.711Z","dependency_job_id":null,"html_url":"https://github.com/mrichar1/exporter_proxy","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrichar1%2Fexporter_proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrichar1%2Fexporter_proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrichar1%2Fexporter_proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrichar1%2Fexporter_proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrichar1","download_url":"https://codeload.github.com/mrichar1/exporter_proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248885306,"owners_count":21177618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["exporters","node-exporter","prometheus","proxy","reverse-proxy","ssl","tls","tls-proxy"],"created_at":"2024-08-01T15:05:04.310Z","updated_at":"2025-04-14T12:52:03.873Z","avatar_url":"https://github.com/mrichar1.png","language":"Python","readme":"# exporter_proxy\n\nA small pure-python Reverse HTTP proxy for [Prometheus](https://prometheus.io) exporters with TLS support.\n\n# Installation\n\n`exporter_proxy` can be downloaded and run as a standalone script. `setup.py` is provided for simplifying package builds.\n\nSince it is pure-python, `exporter_proxy` should run on any OS with Python built with SSL support. It has been tested on Linux and Windows.\n\n# Use\n\n```\nexporter_proxy --help\nusage: exporter_proxy [-h] [-c CONFIG]\n\nCommand-line options\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -c CONFIG, --config CONFIG\n                        Path to config file. (Defaults to: /etc/prometheus/exporter_proxy.ini)\n```\n\n# Configuration\n\nThe configuration is held in an `ini-file`. The section title must be `[exporter_proxy]`. See `config.ini` as an example.\n\nThe following configuration options are available:\n\n* _proxy_address_ - The address to bind the proxy listener to.\n* _proxy_port_ - The port to bind the proxy listener to.\n* _server_url_ - The URL (optionally including port) of the server to proxy.\n* _ssl_cert_ - Path to file containing the public certificate or chain for the proxy server (optional - if set enables SSL).\n* _ssl_key_ - Path to file containing the certificate key for the proxy server. (optional, if key is in the certfile).\n* _ssl_verify_ - Should client certificate verification be performed. (optional).\n* _ssl_clients_ - A space-separated list of allowed clients. Matches entries in the client certificate `subjectAltName` field (optional - requires `ssl_verify` to be set).\n\n## Prometheus\n\nThe documentation on configuring Prometheus to scrape using TLS is here: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#tls_config\n\nTLS is configured separately for each scrape job:\n\n```\nscrape_configs:\n  - job_name: node\n    scheme: https\n    tls_config:\n        cert_file: /etc/prometheus/exporter_proxy.crt\n        key_file: /etc/prometheus/exporter_proxy.key\n    file_sd_configs:\n    - files:\n      - /etc/prometheus/targets.d/node_targets.json\n```\n\n# Multiple Exporters\n\n`exporter_proxy@.service` is an example `systemd` 'instance' service that will start an instance of `exporter_proxy` by loading a config file based on the instance name.\n\nFor example `systemctl start exporter_proxy@node` would run using the config in `/etc/prometheus/exporter_proxy/node.ini`\n","funding_links":[],"categories":["Python","Proxies"],"sub_categories":["Miscellaneous"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrichar1%2Fexporter_proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrichar1%2Fexporter_proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrichar1%2Fexporter_proxy/lists"}