{"id":13795858,"url":"https://github.com/rebuy-de/exporter-merger","last_synced_at":"2025-05-13T00:30:35.516Z","repository":{"id":46412777,"uuid":"121050789","full_name":"rebuy-de/exporter-merger","owner":"rebuy-de","description":"Merges Prometheus metrics from multiple sources","archived":true,"fork":false,"pushed_at":"2022-12-08T15:51:28.000Z","size":27,"stargazers_count":83,"open_issues_count":0,"forks_count":24,"subscribers_count":29,"default_branch":"main","last_synced_at":"2024-08-04T23:10:00.796Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rebuy-de.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":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2018-02-10T20:18:45.000Z","updated_at":"2024-07-11T14:13:13.000Z","dependencies_parsed_at":"2023-01-25T14:46:10.958Z","dependency_job_id":null,"html_url":"https://github.com/rebuy-de/exporter-merger","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rebuy-de%2Fexporter-merger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rebuy-de%2Fexporter-merger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rebuy-de%2Fexporter-merger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rebuy-de%2Fexporter-merger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rebuy-de","download_url":"https://codeload.github.com/rebuy-de/exporter-merger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225159838,"owners_count":17430190,"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-08-03T23:01:03.300Z","updated_at":"2024-11-18T10:30:54.311Z","avatar_url":"https://github.com/rebuy-de.png","language":"Go","funding_links":[],"categories":["Logs and Observability"],"sub_categories":["Observability"],"readme":"# exporter-merger\n\n\u003e :warning: We archived this project because we don't use it anymore and in\n\u003e the meantime some other solutions for the problem described in\n\u003e [prometheus/prometheus#3756](https://github.com/prometheus/prometheus/issues/3756)\n\u003e became available.\n\n[![license](https://img.shields.io/github/license/rebuy-de/exporter-merger.svg)]()\n[![GitHub release](https://img.shields.io/github/release/rebuy-de/exporter-merger.svg)]()\n\nMerges Prometheus metrics from multiple sources.\n\n\u003e **Development Status** *exporter-merger* is in an early development phase.\n\u003e Expect incompatible changes and abandoment at any time.\n\n## But Why?!\n\n\u003e [prometheus/prometheus#3756](https://github.com/prometheus/prometheus/issues/3756)\n\n## Usage\n\n*exporter-merger* needs a configuration file. Currently, nothing but URLs are accepted:\n\n```yaml\nexporters:\n- url: http://localhost:9100/metrics\n- url: http://localhost:9101/metrics\n```\n\nTo start the exporter:\n\n```\nexporter-merger --config-path merger.yaml --listen-port 8080\n```\n\n### Environment variables\n\nAlternatively configuration can be passed via environment variables, here is relevant part of `exporter-merger -h` output:\n```\n      --listen-port int      Listen port for the HTTP server. (ENV:MERGER_PORT) (default 8080)\n      --url stringSlice      URL to scrape. Can be speficied multiple times. (ENV:MERGER_URLS,space-seperated)\n\n```\n\n## Kubernetes\n\nThe exporter-merger is supposed to run as a sidecar. Here is an example config with [nginx-exporter](https://github.com/rebuy-de/nginx-exporter):\n\n```yaml\napiVersion: apps/v1\nkind: Deployment\n\nmetadata:\n  name: my-nginx\n  labels:\n    app: my-nginx\n\nspec:\n  selector:\n    matchLabels:\n      app: my-nginx\n\n  template:\n    metadata:\n      name: my-nginx\n      labels:\n        app: my-nginx\n      annotations:\n        prometheus.io/scrape: \"true\"\n        prometheus.io/port: \"8080\"\n\n    spec:\n      containers:\n      - name: \"nginx\"\n        image: \"my-nginx\" # nginx image with modified config file\n\n        volumeMounts:\n        - name: mtail\n          mountPath: /var/log/nginx/mtail\n\n      - name: nginx-exporter\n        image: quay.io/rebuy/nginx-exporter:v1.1.0\n        ports:\n        - containerPort: 9397\n        env:\n        - name: NGINX_ACCESS_LOGS\n          value: /var/log/nginx/mtail/access.log\n        - name: NGINX_STATUS_URI\n          value: http://localhost:8888/nginx_status\n        volumeMounts:\n        - name: mtail\n          mountPath: /var/log/nginx/mtail\n\n      - name: exporter-merger\n        image: quay.io/rebuy/exporter-merger:v0.2.0\n        ports:\n        - containerPort: 8080\n        env:\n        # space-separated list of URLs\n        - name: MERGER_URLS\n          value: http://localhost:9000/prometheus/metrics http://localhost:9397/metrics\n        # default exposed port, change only if need other than default 8080\n        # - name: MERGER_PORT\n        #   value: 8080\n```\n\n## Planned Features\n\n* Allow transforming of metrics from backend exporters.\n  * eg add a prefix to the metric names\n  * eg add labels to the metrics\n* Allow dynamic adding of exporters.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frebuy-de%2Fexporter-merger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frebuy-de%2Fexporter-merger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frebuy-de%2Fexporter-merger/lists"}