You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkg/rule: retain original path for rule files (#1785)
This change ensures that the /api/v1/rules endpoint returns the original
path of the rule file instead of the path of the temporary file
generated by Thanos ruler.
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ We use *breaking* word for marking changes that are not backward compatible (rel
31
31
-[#1568](https://github.com/thanos-io/thanos/pull/1709) Thanos Store now retains the first raw value of a chunk during downsampling to avoid losing some counter resets that occur on an aggregation boundary.
32
32
-[#1773](https://github.com/thanos-io/thanos/pull/1773) Thanos Ruler: fixed the /api/v1/rules endpoint that returned 500 status code with `failed to assert type of rule ...` message.
33
33
-[#1770](https://github.com/thanos-io/thanos/pull/1770) Fix `--web.external-prefix` 404s for static resources.
34
+
-[#1785](https://github.com/thanos-io/thanos/pull/1785) Thanos Ruler: the /api/v1/rules endpoints now returns the original rule filenames.
errMsg:=fmt.Sprintf("failed to unmarshal 'partial_response_strategy'. Possible values are %s", strings.Join(storepb.PartialResponseStrategyValues, ","))
69
98
iferr:=unmarshal(&rs); err!=nil {
70
-
returnerrors.Wrapf(err, errMsg)
99
+
returnerrors.Wrap(err, errMsg)
71
100
}
72
101
73
102
rg:= rulefmt.RuleGroup{}
74
103
iferr:=unmarshal(&rg); err!=nil {
75
-
returnerrors.Wrapf(err, errMsg)
104
+
returnerrors.Wrap(err, "failed to unmarshal rulefmt.RuleGroup")
0 commit comments