This PR updates the Prometheus dependency in Loki and Promtail. The PR is required so that we can also update Grafana Agent to the latest Prometheus. Unfortunately, Promtail and Loki share the same go.mod file.
* Bump prometheus dependency
We had to add a replace of prometheus in go mod because thanos is
importing an older version and then replacing it.
* Undo textparser.New variable mismatch
* modtimevfs path update
* Fix labels withlabels and withoutlabels usages
WithoutLabels and WithLabels methods have dissappeared. Now
labels.NewBuilder has to be used.
* Fix RuleManager interface for Update()
Update now accepts a new param called ruleGroupPostProcessFunc which is
an optional function to be executed after rule group processing.
In this case I've set it to nil in the usages i've found.
* NewQueryRange now accepts QueryOpts
The NewQueryRange function now accepts QueryOptions so I had to update
all the calls.
I've set the opts to nil since we're not using them.
* gofmt