{"id":17528606,"url":"https://github.com/thxcode/exporter-gateway","last_synced_at":"2025-03-06T08:32:05.743Z","repository":{"id":144370269,"uuid":"172343596","full_name":"thxCode/exporter-gateway","owner":"thxCode","description":null,"archived":true,"fork":false,"pushed_at":"2019-02-25T15:58:01.000Z","size":1253,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T11:21:53.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thxCode.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-24T13:51:38.000Z","updated_at":"2024-06-15T09:02:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ed02d73-585e-466d-8f67-eacb7444cc95","html_url":"https://github.com/thxCode/exporter-gateway","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thxCode%2Fexporter-gateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thxCode%2Fexporter-gateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thxCode%2Fexporter-gateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thxCode%2Fexporter-gateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thxCode","download_url":"https://codeload.github.com/thxCode/exporter-gateway/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242176497,"owners_count":20084583,"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":[],"created_at":"2024-10-20T15:44:20.528Z","updated_at":"2025-03-06T08:32:05.727Z","avatar_url":"https://github.com/thxCode.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rancher Monitoring Exporter Gateway\n\n`exporter-gateway` is like a gateway to aggregate the local exporters and push all metrics to the [pushgateway](https://github.com/prometheus/pushgateway).\n\n## How to use\n\n### Running parameters\n\n```bash\nNAME:\n   exporter-gateway - Gateway for the Prometheus exporters\n\nUSAGE:\n   exporter-gateway [global options] command [command options] [arguments...]\n\nVERSION:\n   ...\n\nCOMMANDS:\n     help, h  Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --interval value      [optional] Set the transmission interval (default: 15s)\n   --from value          Set the exporter routers, for example, transferring from localhost xyz exporter by '--from xyz-exporter.url=https://127.0.0.1:9010/metrics' (default: [])\n   --from.timeout value  [optional] Set timeout for scraping, must less than --interval (default: 10s)\n   --to value            Set the pushgateway routers, for example, transferring to x.y.z pushgateway by '--to xyz-pushgateway.url=http://x.y.z:9091/metrics' (default: [])\n   --to.group value      [optional] Set group for the metrics, for example, grouping all metrics by '--to.group instance=l.m.n'\n   --log.json            [optional] Log as JSON\n   --log.debug           [optional] Log debug info\n   --help, -h            show help\n   --version, -v         print the version\n```\n\n#### Router configuration for `--from`, `--to`\n```json\n{\n  \"url\": \"\", // Set URL for HTTP endpoint.\n  \"bearerToken\": \"\", // Set the `Authorization` header on every HTTP request with the configured bearer token. It is mutually exclusive with `bearerTokenFile`.\n  \"bearerTokenFile\": \"\u003cfilename\u003e\", // Set the `Authorization` header on every HTTP request with the bearer token read from the configured file. It is mutually exclusive with `bearerToken`.\n  \"basicAuth\": { // Set the `Authorization` header on every HTTP request with the configured username and password. `password` and `passwordFile` are mutually exclusive.\n    \"username\": \"\",\n    \"password\": \"\",\n    \"passwordFile\": \"\u003cfilename\u003e\"\n  },\n  \"tlsConfig\": { // Set the HTTP request's TLS settings.\n    \"caFile\": \"\u003cfilename\u003e\", // CA certificate to validate the HTTP endpoint server certificate.\n    \"certFile\": \"\u003cfilename\u003e\", // Certificate file for client cert authentication to the HTTP endpoint server.\n    \"keyFile\": \"\u003cfilename\u003e\", // Key file for client cert authentication to the HTTP endpoint server.\n    \"serverName\": \"\", // ServerName extension to indicate the name of the HTTP endpoint server.\n    \"insecureSkipVerify\": \"\" // Disable validation of the HTTP endpoint server certificate.\n  }\n}\n```\n\n### Start example\n\n```bash\nexporter-gateway \\\n    --interval 30s\n    --from kube-controller-manager.url=http://127.0.0.1:10252/metrics \\\n    --from kube-scheduler.url=http://127.0.0.1:10251/metrics \\\n    --from etcd.url=http://127.0.0.1:2379/metrics \\\n    --from etcd.tlsConfig.caFile=/var/etcd/ca.crt \\\n    --from etcd.tlsConfig.certFile=/var/etcd/peer.crt \\\n    --from etcd.tlsConfig.keyFile=/var/etcd/peer.key \\\n    --to ps1.url=http://pushgateway.cattle-prometheus.svc.cluster.local \\\n    --to.group instance=master.node.ip\n```\n\n# License\n\nCopyright (c) 2014-2019 [Rancher Labs, Inc.](http://rancher.com)\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthxcode%2Fexporter-gateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthxcode%2Fexporter-gateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthxcode%2Fexporter-gateway/lists"}