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

[Message] change PrometheusAPIInfo #3927

Merged
merged 1 commit into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions agent/src/platform/prometheus/targets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ impl TargetsWatcher {
let entry = PrometheusApiInfo {
r#type: Some(API_TARGETS_ENDPOINT.to_string()),
compressed_info: Some(data),
target_compressed_info: None,
config_compressed_info: None,
};
total_entries.push(entry);
}
Expand Down
6 changes: 4 additions & 2 deletions message/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ message KubernetesAPIInfo {
}

message PrometheusAPIInfo {
optional string type = 1;
optional bytes compressed_info = 2;
optional string type = 1; // deprecated
optional bytes compressed_info = 2; // deprecated
optional bytes target_compressed_info = 3;
optional bytes config_compressed_info = 4;
}
Loading