protos/stats/stats.proto (40 lines of code) (raw):
/*
Copyright 2022 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
syntax = "proto3";
package sapagent.protos.stats;
option go_package = "github.com/GoogleCloudPlatform/sapagent/protos/stats";
message DiskStatsCollection {
repeated DiskStats disk_stats = 1;
}
message DiskStats {
string device_name = 1;
int64 queue_length = 2;
int64 average_read_response_time_millis = 3;
int64 average_write_response_time_millis = 4;
int64 read_ops_count = 5;
int64 read_svc_time_millis = 6;
int64 write_ops_count = 7;
int64 write_svc_time_millis = 8;
}
message MemoryStats {
int64 total = 1;
int64 free = 2;
int64 used = 3;
}
message CpuStats {
double cpu_utilization_percent = 1;
int64 cpu_count = 2;
int64 cpu_cores = 3;
int64 max_mhz = 4;
string processor_type = 5;
}