-
|
Dear all |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
What method name? It is a grpc service. Follow the proto we provided. |
Beta Was this translation helpful? Give feedback.
-
|
hello @wu-sheng : I also implemented my grpc server which responses the dynamic configuration to skywalking oap. But oap log shows it calls callgroup function successfully. But my agent plugin configuration didn't change. Is my response data structure wrong? my server responses data structure: pb.GroupConfigurationResponse{ groupItems := &pb.GroupConfigItems{ groupItems.Items = append(groupItems.Items, &pb.Config{ s.groupConfig := data structure of official web: |
Beta Was this translation helpful? Give feedback.
The
agentConfigurationsis a single type configuration watcher internally (not a group type). So OAP fetches it through thecall()RPC, notcallGroup().You should return the agent configurations in your
call()response (ConfigurationResponse), not in thecallGroup()response (GroupConfigurationResponse). The entire YAML block should be thevalueof a singleConfigitem:// call() response configTable { name: "configuration-discovery.default.agentConfigurations" value: "configurations:\n qewqw-test::myapmmysqlservice:\n agent.sample_n_per_3_secs: 1\n" } uuid: "your-uuid"In your Go code, it would look like: