go-graphite / graphite-clickhouse

Graphite cluster backend with ClickHouse support
MIT License
213 stars 52 forks source link

Update Prometheus to v.0.51.1 / v2.51.1 #269

Closed Hedius closed 6 months ago

Hedius commented 7 months ago

Rather large change. Updated prometheus + its dependencies.

Few changes are needed.

  1. Replaces storage.Warning with annotations.Annotation e1fde37ddfb8da9f98ad231930fa936e245032b7 bc8a0ba6ec7a2295d2f1206a15b52464a70fa19b
  2. set a registerer for scrapers. This is only a default register atm. (Same in upstream prometheus and not used) 595d04de4e7bccb5b9fa3732468270181f7d36ee https://github.com/prometheus/prometheus/commit/5752050b42195d87d7dd0760f7ec3b088f115cd3
  3. move the ctx Querier holds in the struct out of it and into the params of functions that use it. 5fd06036d255e36a6c594eb0ae02f2fa8bb16b52 https://github.com/prometheus/prometheus/pull/12660
  4. set few required params (to match the interface again). Most of those are in empty functions not used atm by graphite-clickhouse e21a832dd036284e6369e5707db7b92cd5ca6f1b