Skip to content

Commit c77da35

Browse files
authored
Merge pull request #7 from tcncloud/adding-hikari-and-config-proto
Adds HikariPoolMetrics and ConfigDetails messages
2 parents 8895750 + bca10ef commit c77da35

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

tcnapi/exile/gate/v2/public.proto

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,37 @@ message SubmitJobResultsRequest {
756756
string io_netty_machine_id = 53; // io.netty.machineId
757757
string com_zaxxer_hikari_pool_number = 54; // com.zaxxer.hikari.pool_number
758758
}
759+
message HikariPoolMetrics {
760+
string pool_name = 1; // Name of the connection pool
761+
int32 active_connections = 2; // Number of active connections in the pool
762+
int32 idle_connections = 3; // Number of idle connections in the pool
763+
int32 total_connections = 4; // Total number of connections in the pool
764+
int32 threads_awaiting_connection = 5; // Number of threads waiting for a connection
765+
766+
// Pool configuration
767+
PoolConfig pool_config = 6; // Connection pool configuration if available
768+
769+
// Extended metrics from Dropwizard if available
770+
map<string, string> extended_metrics = 7; // Additional metrics from Dropwizard
771+
772+
message PoolConfig {
773+
string pool_name = 1; // Pool name
774+
int64 connection_timeout = 2; // Connection timeout in milliseconds
775+
int64 validation_timeout = 3; // Validation timeout in milliseconds
776+
int64 idle_timeout = 4; // Idle timeout in milliseconds
777+
int64 max_lifetime = 5; // Maximum connection lifetime in milliseconds
778+
int32 minimum_idle = 6; // Minimum number of idle connections
779+
int32 maximum_pool_size = 7; // Maximum pool size
780+
int64 leak_detection_threshold = 8; // Leak detection threshold in milliseconds
781+
string jdbc_url = 9; // JDBC URL (may be redacted for security)
782+
string username = 10; // Database username (may be redacted for security)
783+
}
784+
}
785+
message ConfigDetails {
786+
string api_endpoint = 1; // API endpoint from the config file
787+
string certificate_name = 2; // Certificate name from the config file
788+
string certificate_description = 3; // Certificate description from the config file
789+
}
759790
}
760791

761792
/**

0 commit comments

Comments
 (0)