Skip to content

Commit

Permalink
v2: metastore client (#3540)
Browse files Browse the repository at this point in the history
- metastore returns an error with a RaftLeader details
- metastore instances are discovered with k8s api instead of dns
  • Loading branch information
korniltsev authored Sep 13, 2024
1 parent 2e677cc commit 4b38e9f
Show file tree
Hide file tree
Showing 37 changed files with 2,591 additions and 315 deletions.
7 changes: 7 additions & 0 deletions .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@ packages:
github.com/grafana/pyroscope/api/gen/proto/go/metastore/v1:
interfaces:
MetastoreServiceClient:
MetastoreServiceServer:
github.com/grafana/pyroscope/api/gen/proto/go/querier/v1/querierv1connect:
interfaces:
QuerierServiceClient:
github.com/grafana/pyroscope/pkg/frontend:
interfaces:
Limits:
github.com/grafana/pyroscope/api/gen/proto/go/compactor/v1:
interfaces:
CompactionPlannerServer:
github.com/grafana/pyroscope/pkg/experiment/metastore/discovery:
interfaces:
Discovery:
103 changes: 83 additions & 20 deletions api/gen/proto/go/types/v1/types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

173 changes: 173 additions & 0 deletions api/gen/proto/go/types/v1/types_vtproto.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions api/types/v1/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,7 @@ message GetProfileStatsResponse {
// Milliseconds since epoch.
int64 newest_profile_time = 3;
}

message RaftDetails {
string leader = 1;
}
Loading

0 comments on commit 4b38e9f

Please sign in to comment.