{"repo":"snapp-incubator/thanos-federate-proxy","free":true,"listed":false,"github":"https://github.com/snapp-incubator/thanos-federate-proxy","clone":"git clone https://github.com/snapp-incubator/thanos-federate-proxy.git","description":"A proxy to add `/federate` to Thanos monitoring","language":"Go","stars":36,"topics":["observability","prometheus","golang","proxy","thanos","snappcloud","oss"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"Thanos Federate Proxy A proxy to convert /federate queries to /v1/api/query and respond in open metrics format. The most common use case for this proxy is to be used as a side car with Thanos, to provide /federate api for thanos (currently Thanos does not support it). So this way you can add Thanos as a federation source in another prometheus. Also Thanos does not support remote write (Note that being able to write metrics remotely from thanos to another prometheus is a different concept than thanos receiver component). Usage Docker Binary releases From source Configuration Flags: Sample k8s deployment (as a side car with thanos or prometheus): Sample prometheus config for federation: If you want to limit user to a specific query, you can use the restriction file. Here is a sample: Now when the user queries /federate, they only receive what you specified in this file. Limitations The following limitations will be addressed in future releases (see Roadmap): - You can not pass empty matcher to prometheus for scraping all the metrics (see this prometheus issue). A workaround is to use the following matcher: Note that { name = \". \"} won't also work and you should use \".+\" instead of \". \" . Roadmap - [x] test federation - [x] tlsSkipVerify flag - [x] Dockerfile - [x] Github actions - [x] metrics - [x] support multiple matchers - [ ] support empty matchers - [ ] support store-API for better performance - [ ] return error message instead of only logging it (??) - [ ] remove space af","default_branch":null,"files":null,"tree":[],"storefront":"/r/snapp-incubator","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/snapp-incubator/thanos-federate-proxy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}