@@ -18,7 +18,7 @@ service Synchronizer {
18
18
rpc GPIDSync (GPIDSyncRequest ) returns (GPIDSyncResponse ) {}
19
19
rpc ShareGPIDLocalData (ShareGPIDSyncRequests ) returns (ShareGPIDSyncRequests ) {}
20
20
rpc Plugin (PluginRequest ) returns (stream PluginResponse ) {}
21
- rpc GetPrometheusLabelIDs (PrometheusLabelIDsRequest ) returns (PrometheusLabelIDsResponse ) {}
21
+ rpc GetPrometheusLabelIDs (PrometheusLabelRequest ) returns (PrometheusLabelResponse ) {}
22
22
}
23
23
24
24
// debug service
@@ -811,7 +811,7 @@ message LabelRequest {
811
811
optional string value = 2 ;
812
812
}
813
813
814
- message LabelIDResponse {
814
+ message LabelResponse {
815
815
optional string name = 1 ;
816
816
optional string value = 2 ;
817
817
optional uint32 name_id = 3 ;
@@ -827,14 +827,28 @@ message MetricLabelRequest {
827
827
message MetricLabelResponse {
828
828
optional string metric_name = 1 ;
829
829
optional uint32 metric_id = 2 ;
830
- optional uint32 target_id = 3 ; // when the Controller cannot determine the target_id, fill in 0
831
- repeated LabelIDResponse label_ids = 4 ;
830
+ repeated LabelResponse label_ids = 3 ;
832
831
}
833
832
834
- message PrometheusLabelIDsRequest {
833
+ message TargetRequest {
834
+ optional string job = 1 ;
835
+ optional string instance = 2 ;
836
+ }
837
+
838
+ message TargetResponse {
839
+ optional string job = 1 ;
840
+ optional string instance = 2 ;
841
+ optional string job_id = 3 ;
842
+ optional string instance_id = 4 ;
843
+ optional uint32 target_id = 5 ; // when the Controller cannot determine the target_id, fill in 0
844
+ }
845
+
846
+ message PrometheusLabelRequest {
835
847
repeated MetricLabelRequest request_labels = 1 ;
848
+ repeated TargetRequest request_targets = 2 ;
836
849
}
837
850
838
- message PrometheusLabelIDsResponse {
851
+ message PrometheusLabelResponse {
839
852
repeated MetricLabelResponse response_label_ids = 1 ;
853
+ repeated TargetResponse response_target_ids = 2 ;
840
854
}
0 commit comments