-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[sync part2] Moved client prometheus code to separate promclient package. #729
Conversation
@@ -606,117 +605,6 @@ func runRule( | |||
return nil | |||
} | |||
|
|||
// Scalar response consists of array with mixed types so it needs to be | |||
// unmarshaled separatelly. | |||
func convertScalarJSONToVector(scalarJSONResult json.RawMessage) (model.Vector, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those two are 1:1 moved, nothing changed.
) | ||
|
||
func TestRule_UnmarshalScalarResponse(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1:1 moved.
@@ -357,45 +338,3 @@ func (s *metadata) Timestamps() (mint int64, maxt int64) { | |||
|
|||
return s.mint, s.maxt | |||
} | |||
|
|||
func queryExternalLabels(ctx context.Context, logger log.Logger, base *url.URL) (labels.Labels, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1:1 moved.
"github.com/improbable-eng/thanos/pkg/testutil" | ||
) | ||
|
||
func TestSidecar_queryExternalLabels(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1:1 moved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just question about splitting the promclient package into two
e8933b0
to
fd8d951
Compare
Addressed. Will rebase later, as it should not affect it much, conflict is because of imports... |
fd8d951
to
7b72b6d
Compare
126de42
to
8c4cc0c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - lets get a green CI run before merging 👍
ef254d1
to
02b0186
Compare
Nothing changed, except fixed IsWALDirAccessible (as WAL is actually a dir). Otherwise just moved code. Signed-off-by: Bartek Plotka <[email protected]>
Allows to reuse Prometheus client methods cleanly.
Nothing changed, except fixed IsWALDirAccessible (as WAL is actually a dir). Otherwise just moved code.
This is prerequisite for #731