Skip to content
Discussion options

You must be logged in to vote

The agentConfigurations is a single type configuration watcher internally (not a group type). So OAP fetches it through the call() RPC, not callGroup().

You should return the agent configurations in your call() response (ConfigurationResponse), not in the callGroup() response (GroupConfigurationResponse). The entire YAML block should be the value of a single Config item:

// 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:

// Implement the call() RPC, not callGroup()
response := &pb.Configuration…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@Jiaweij
Comment options

@wu-sheng
Comment options

Comment options

You must be logged in to vote
3 replies
@wu-sheng
Comment options

Answer selected by wu-sheng
@ranxuxin001
Comment options

@wu-sheng
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants