Skip to content

Commit

Permalink
[Message] change PrometheusAPIInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
TomatoMr committed Aug 21, 2023
1 parent 18d1214 commit 9bfb98a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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;
}

0 comments on commit 9bfb98a

Please sign in to comment.