Skip to content
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

PMM-5680 add log to struct AgentInfo #857

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 58 additions & 48 deletions api/agentlocalpb/agentlocal.pb.go

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

2 changes: 2 additions & 0 deletions api/agentlocalpb/agentlocal.proto
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ message AgentInfo {
// The current listen port of this Agent (exporter or vmagent).
// Zero for other Agent types, or if unknown or not yet supported.
uint32 listen_port = 4;
//Store logs
repeated string logs = 5;
}

message StatusRequest {
Expand Down
16 changes: 16 additions & 0 deletions api/agentlocalpb/json/agentlocalpb.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@
"format": "int64",
"x-order": 3
},
"logs": {
"type": "array",
"title": "Store logs",
"items": {
"type": "string"
},
"x-order": 4
},
"status": {
"description": "AgentStatus represents actual Agent status.\n\n - STARTING: Agent is starting.\n - RUNNING: Agent is running.\n - WAITING: Agent encountered error and will be restarted automatically soon.\n - STOPPING: Agent is stopping.\n - DONE: Agent finished.\n - UNKNOWN: Agent is not connected, we don't know anything about it's state.",
"type": "string",
Expand Down Expand Up @@ -339,6 +347,14 @@
"format": "int64",
"x-order": 3
},
"logs": {
"type": "array",
"title": "Store logs",
"items": {
"type": "string"
},
"x-order": 4
},
"status": {
"description": "AgentStatus represents actual Agent status.\n\n - STARTING: Agent is starting.\n - RUNNING: Agent is running.\n - WAITING: Agent encountered error and will be restarted automatically soon.\n - STOPPING: Agent is stopping.\n - DONE: Agent finished.\n - UNKNOWN: Agent is not connected, we don't know anything about it's state.",
"type": "string",
Expand Down

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