{"id":22869885,"url":"https://github.com/kobtea/iapetus","last_synced_at":"2025-05-05T22:10:43.238Z","repository":{"id":48794696,"uuid":"131718822","full_name":"kobtea/iapetus","owner":"kobtea","description":"Iapetus is a reverse proxy for Prometheus.","archived":false,"fork":false,"pushed_at":"2021-07-12T01:23:16.000Z","size":130,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T00:11:12.419Z","etag":null,"topics":["grafana","grafana-prometheus","prometheus","prometheus-proxy"],"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/kobtea.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":"2018-05-01T13:54:10.000Z","updated_at":"2023-12-20T16:19:02.000Z","dependencies_parsed_at":"2022-09-23T21:30:44.336Z","dependency_job_id":null,"html_url":"https://github.com/kobtea/iapetus","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobtea%2Fiapetus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobtea%2Fiapetus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobtea%2Fiapetus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kobtea%2Fiapetus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kobtea","download_url":"https://codeload.github.com/kobtea/iapetus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252584329,"owners_count":21771945,"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":["grafana","grafana-prometheus","prometheus","prometheus-proxy"],"created_at":"2024-12-13T13:12:30.999Z","updated_at":"2025-05-05T22:10:43.218Z","avatar_url":"https://github.com/kobtea.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Iapetus\n\n[![CircleCI](https://circleci.com/gh/kobtea/iapetus.svg?style=svg)](https://circleci.com/gh/kobtea/iapetus)\n[![Go Report Card](https://goreportcard.com/badge/github.com/kobtea/iapetus)](https://goreportcard.com/report/github.com/kobtea/iapetus)\n\nThis project is unstable yet.\nSo breaking change may be happened no notice.\n\n\n## Overview\n\nIapetus is a reverse proxy for [Prometheus](https://prometheus.io/) that dispatches queries to Prometheus nodes depending on the content of a query, such a label and a timestamp.\nIapetus also supports relabeling feature, so you can configure relabeling rules for each node.\nTo simplify, Iapetus does not query multiple nodes and aggregate that results. It only does dispatch.\n\n\n## Install\n\n### Binary\n\nGo to https://github.com/kobtea/iapetus/releases\n\n### Building from source\n\n```bash\n$ go get -d github.com/kobtea/iapetus\n$ cd $GOPATH/src/github.com/kobtea/iapetus\n$ make build\n```\n\n\n## Usage\n\n```bash\n$ iapetus --help\nusage: iapetus --config=CONFIG [\u003cflags\u003e]\n\nFlags:\n  --help                         Show context-sensitive help (also try --help-long and --help-man).\n  --config=CONFIG                iapetus config file path.\n  --listen.addr=\":19090\"         address to listen.\n  --listen.prefix=LISTEN.PREFIX  path prefix of this endpoint. remove this prefix when dispatch to a backend.\n  --log.level=LOG.LEVEL          log level (debug, info, warn, error)\n  --version                      Show application version.\n```\n\nconfiguration format is below.\n\n```yml\n# config.yml\nlog:\n  # debug, info, warn, error. default is info.\n  level: info\n# Multi clusters are not support yet. So iapetus use 1st cluster setting.\nclusters:\n  - name: \u003cstring\u003e\n    # list prometheus as node\n    nodes:\n      - name: \u003cstring\u003e\n        url: \u003cstring\u003e\n        relabels:\n          # support relabelling rules at prometheus\n          [ - \u003crelabel_config\u003e ... ]\n        min_step: \u003cduration\u003e\n    # proxy rules\n    # each rule are pair of `target: \u003cnode_name\u003e` and some rule.\n    # support rules are below.\n    # - default: \u003cbool\u003e, use when no match other rules\n    # - start: \u003cop duration\u003e, compare `start` at request parameter\n    # - end: \u003cop duration\u003e, compare `end` at request parameter\n    # - range: \u003cop duration\u003e, range is between `start` and `end` at request parameter\n    # - required_labels: [ \u003clabel_name\u003e: \u003clabel_value\u003e ... ], find labels from `query` or `match[]` parameter(s). If a request satisfy this rule, Iapetus send not matched metrics but whole query send to the target. It is mean that Iapetus does not calculate values.\n    rules:\n      [ - \u003crules\u003e, ...]\n```\n\nsample\n\n```yml\nlog:\n  level: info\nclusters:\n  - name: cluster1\n    nodes:\n      - name: primary\n        url: http://localhost:9090\n      - name: archive\n        url: http://localhost:9091\n        relabels:\n          - source_labels: [__name__]\n            target_label: __name__\n            replacement: ${1}_avg\n        min_step: 10m\n    rules:\n      - target: primary\n        default: true\n      - target: archive\n        range: \"\u003e 1d\"\n      - target: archive\n        start: \"\u003c now-1d\"\n```\n\n\n## Roadmap\n\n### Cluster\n\nHandling multi prometheus clusters.\nProxy rule is TBD.\nIt may be a same rule as node, (or not).\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkobtea%2Fiapetus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkobtea%2Fiapetus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkobtea%2Fiapetus/lists"}