GCP Memorystore for Redis Cluster¶
采集 GCP Memorystore for Redis Cluster 节点连接、CPU、内存、缓存命中率、操作量和网络流量等指标。
配置¶
安装 Func¶
推荐开通 观测云 集成 - 扩展 - 托管版 Func:一切前置条件都自动安装好,请继续脚本安装。
如果自行部署 Func,参考自行部署 Func。
安装脚本¶
- 登录 Func 控制台,点击【脚本市场】,进入 观测云 脚本市场,搜索
integration_gcp_redis。 - 点击【安装】后,输入相应的参数:账户文件名、Target Principal、账号名。
- 点击【部署启动脚本】,系统会自动创建
Startup脚本集,并自动配置相应的启动脚本。 - 开启后可以在「管理 / 自动触发配置」中看到对应的自动触发配置。点击【执行】可立即执行一次,稍等片刻后可查看执行任务记录及日志。
验证¶
- 在「管理 / 自动触发配置」确认对应任务已存在,并通过任务记录及日志检查是否有异常。
- 在 观测云「基础设施 / 自定义」中查看是否存在对应资产信息。
- 在 观测云「指标」中查看是否存在
gcp_redis指标集及对应监控数据。
指标¶
GCP Memorystore for Redis Cluster 指标在 gcp_redis 指标集下,原始指标来自 Cloud Monitoring 的 redis.googleapis.com/ 命名空间。完整指标类型可参考 Google Cloud Memorystore for Redis 指标。
下表中的标签来自实际采集数据。role 区分主节点和副本节点,shard_id 与 node_id 标识分片和节点,command、status 与 error_type 用于拆分命令、状态和错误类型。
| 指标 | 原始指标 | 描述信息 | 标签 | 单位 |
|---|---|---|---|---|
cluster_clients_average_connected_clients |
cluster/clients/average_connected_clients |
集群当前客户端连接数的平均值。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, location, monitor_resource_type |
Count |
cluster_clients_maximum_connected_clients |
cluster/clients/maximum_connected_clients |
集群当前客户端连接数的最大值。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, location, monitor_resource_type |
Count |
cluster_clients_total_connected_clients |
cluster/clients/total_connected_clients |
当前连接到集群的客户端总数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, location, monitor_resource_type |
Count |
cluster_commandstats_total_calls_count |
cluster/commandstats/total_calls_count |
Redis 命令调用总数。 | cloud_provider, project_id, command, cluster_uid, cluster_id, project_name, account_name, role, location, monitor_resource_type |
Count |
cluster_commandstats_total_usec_count |
cluster/commandstats/total_usec_count |
每个命令消耗的总时间。 | cloud_provider, project_id, command, cluster_uid, cluster_id, project_name, account_name, role, location, monitor_resource_type |
us |
cluster_cpu_average_utilization |
cluster/cpu/average_utilization |
集群平均 CPU 利用率,值域为 0.0~1.0。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, location, monitor_resource_type |
% |
cluster_cpu_maximum_utilization |
cluster/cpu/maximum_utilization |
集群最大 CPU 利用率,值域为 0.0~1.0。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, location, monitor_resource_type |
% |
cluster_keyspace_total_keys |
cluster/keyspace/total_keys |
集群实例中存储的键数量。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, location, monitor_resource_type |
Count |
cluster_memory_average_utilization |
cluster/memory/average_utilization |
集群平均内存利用率,值域为 0.0~1.0。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, location, monitor_resource_type |
% |
cluster_memory_maximum_utilization |
cluster/memory/maximum_utilization |
集群最大内存利用率,值域为 0.0~1.0。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, location, monitor_resource_type |
% |
cluster_memory_size |
cluster/memory/size |
集群内存容量。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, location, monitor_resource_type |
Bytes |
cluster_memory_total_used_memory |
cluster/memory/total_used_memory |
集群已使用内存总量。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, location, monitor_resource_type |
Bytes |
cluster_node_clients_blocked_clients |
cluster/node/clients/blocked_clients |
被集群节点阻塞的客户端连接数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_clients_connected_clients |
cluster/node/clients/connected_clients |
当前连接到集群节点的客户端数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_clients_maxclients |
cluster/node/clients/maxclients |
Redis 配置中的最大客户端连接数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_clients_recent_max_input_buffer |
cluster/node/clients/recent_max_input_buffer |
当前客户端连接中的最大输入缓冲区字节数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_clients_recent_max_output_buffer |
cluster/node/clients/recent_max_output_buffer |
当前客户端连接中的最大输出缓冲区字节数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_clients_tracking_clients |
cluster/node/clients/tracking_clients |
服务端正在跟踪的客户端数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_commandstats_calls_count |
cluster/node/commandstats/calls_count |
一分钟内集群节点上指定命令的调用总数。 | cloud_provider, project_id, command, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_commandstats_failed_calls_count |
cluster/node/commandstats/failed_calls_count |
指定命令调用失败的总数。 | cloud_provider, project_id, command, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_commandstats_rejected_calls_count |
cluster/node/commandstats/rejected_calls_count |
指定命令调用被拒绝的总数。 | cloud_provider, project_id, command, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_commandstats_usec_count |
cluster/node/commandstats/usec_count |
集群节点中每个命令消耗的总时间。 | cloud_provider, project_id, command, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
us |
cluster_node_cpu_utilization |
cluster/node/cpu/utilization |
集群节点 CPU 利用率,值域为 0.0~1.0。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, state, monitor_resource_type, node_id |
% |
cluster_node_cross_cluster_replication_role |
cluster/node/cross_cluster_replication/role |
节点的跨集群复制角色。 | cloud_provider, ccr_role, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Enum |
cluster_node_errorstats_errors_count |
cluster/node/errorstats/errors_count |
Redis 引擎内发生的各类错误计数,例如 MOVED、ERR 和 OOM。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, error_type, monitor_resource_type, node_id |
Count |
cluster_node_json_documents_count |
cluster/node/json/documents_count |
集群节点中的 JSON 文档数量。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_json_used_memory |
cluster/node/json/used_memory |
集群节点中 JSON 文档占用的内存。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_keyspace_keys_with_expiration |
cluster/node/keyspace/keys_with_expiration |
设置了过期时间的键数量。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_keyspace_total_keys |
cluster/node/keyspace/total_keys |
集群节点中存储的键数量。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_memory_dataset_usage |
cluster/node/memory/dataset_usage |
实际数据集内存用量。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_memory_lua_usage |
cluster/node/memory/lua_usage |
Lua 引擎使用的字节数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_memory_maxmemory |
cluster/node/memory/maxmemory |
Redis 可使用的最大内存;0 表示未启用内存上限。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_memory_maxmemory_policy |
cluster/node/memory/maxmemory_policy |
节点级 maxmemory 策略配置。 | cloud_provider, maxmemory_policy, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Enum |
cluster_node_memory_mem_not_counted_for_evict |
cluster/node/memory/mem_not_counted_for_evict |
不纳入键逐出计算的已用内存,主要包括临时副本缓冲区和 AOF 缓冲区。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_memory_normal_clients_usage |
cluster/node/memory/normal_clients_usage |
普通客户端使用的总字节数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_memory_number_of_cached_scripts |
cluster/node/memory/number_of_cached_scripts |
服务端缓存的 EVAL 脚本数量。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_memory_number_of_functions |
cluster/node/memory/number_of_functions |
Redis 函数数量。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_memory_peak_usage |
cluster/node/memory/peak_usage |
Redis 历史峰值内存用量。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_memory_replica_clients_usage |
cluster/node/memory/replica_clients_usage |
副本客户端使用的总字节数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_memory_rss_usage |
cluster/node/memory/rss_usage |
操作系统视角下 Redis 分配的驻留集内存字节数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_memory_scripts_usage |
cluster/node/memory/scripts_usage |
EVAL 脚本和 Function 脚本的内存开销。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_memory_usage |
cluster/node/memory/usage |
集群节点内存总用量。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_memory_utilization |
cluster/node/memory/utilization |
集群节点内存利用率,值域为 0.0~1.0。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
% |
cluster_node_persistence_aof_enabled |
cluster/node/persistence/aof_enabled |
AOF 是否已启用。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bool |
cluster_node_persistence_aof_last_cow_size |
cluster/node/persistence/aof_last_cow_size |
上次 AOF 重写操作期间的写时复制内存大小。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_persistence_aof_last_rewrite_time_sec |
cluster/node/persistence/aof_last_rewrite_time_sec |
上次 AOF 重写操作的持续时间。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
s |
cluster_node_persistence_aof_rewrite_in_progress |
cluster/node/persistence/aof_rewrite_in_progress |
AOF 重写是否正在进行。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bool |
cluster_node_persistence_async_loading |
cluster/node/persistence/async_loading |
异步加载是否正在进行。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bool |
cluster_node_persistence_current_cow_peak |
cluster/node/persistence/current_cow_peak |
当前 fork 操作期间写时复制内存的峰值。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_persistence_current_cow_size |
cluster/node/persistence/current_cow_size |
当前 fork 操作期间的写时复制内存大小。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_persistence_current_fork_percentage |
cluster/node/persistence/current_fork_percentage |
当前 fork 操作的进度百分比(0~100)。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
% |
cluster_node_persistence_loading |
cluster/node/persistence/loading |
数据加载是否正在进行。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bool |
cluster_node_persistence_rdb_last_bgsave_time_sec |
cluster/node/persistence/rdb_last_bgsave_time_sec |
上次 RDB 保存操作的持续时间。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
s |
cluster_node_persistence_rdb_last_cow_size |
cluster/node/persistence/rdb_last_cow_size |
上次 RDB 保存操作期间的写时复制内存大小。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_replication_offset |
cluster/node/replication/offset |
集群节点的复制偏移字节数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_replication_sync_full_count |
cluster/node/replication/sync_full_count |
与副本执行完全重同步的总次数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_replication_sync_partial_err_count |
cluster/node/replication/sync_partial_err_count |
被拒绝的部分重同步请求数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_replication_sync_partial_ok_count |
cluster/node/replication/sync_partial_ok_count |
被接受的部分重同步请求数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_server_healthy |
cluster/node/server/healthy |
集群节点是否健康且可用。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bool |
cluster_node_server_uptime |
cluster/node/server/uptime |
集群节点的运行时长。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
s |
cluster_node_stats_acl_access_denied_auths_count |
cluster/node/stats/acl_access_denied_auths_count |
ACL 访问被拒绝的身份验证失败总数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_stats_connections_received_count |
cluster/node/stats/connections_received_count |
一分钟内集群节点创建的客户端连接总数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_stats_evicted_clients_count |
cluster/node/stats/evicted_clients_count |
因客户端内存超过逐出上限而被逐出的客户端连接总数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_stats_evicted_keys_count |
cluster/node/stats/evicted_keys_count |
集群节点逐出的键数量。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_stats_expire_cycle_cpu_millisecond_count |
cluster/node/stats/expire_cycle_cpu_millisecond_count |
主动过期循环累计消耗的时间。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
ms |
cluster_node_stats_expired_keys_count |
cluster/node/stats/expired_keys_count |
集群节点的键过期事件数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_stats_expired_keys_percentage |
cluster/node/stats/expired_keys_percentage |
可能已过期的键所占百分比。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
% |
cluster_node_stats_expired_time_cap_reached_count |
cluster/node/stats/expired_time_cap_reached_count |
主动过期循环因达到时间上限而提前停止的总次数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_stats_keyspace_hits_count |
cluster/node/stats/keyspace_hits_count |
集群节点中键查找成功的次数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_stats_keyspace_misses_count |
cluster/node/stats/keyspace_misses_count |
集群节点中键查找失败的次数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_stats_latest_fork_usec |
cluster/node/stats/latest_fork_usec |
最近一次 fork 操作的持续时间。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
us |
cluster_node_stats_net_input_bytes_count |
cluster/node/stats/net_input_bytes_count |
集群节点接收的网络字节数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_stats_net_output_bytes_count |
cluster/node/stats/net_output_bytes_count |
集群节点发送的网络字节数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Bytes |
cluster_node_stats_pubsub_channels |
cluster/node/stats/pubsub_channels |
存在客户端订阅的全局发布/订阅频道数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_stats_pubsub_patterns |
cluster/node/stats/pubsub_patterns |
存在客户端订阅的全局发布/订阅模式数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_stats_pubsubshard_channels |
cluster/node/stats/pubsubshard_channels |
存在客户端订阅的全局分片发布/订阅频道数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_stats_rejected_connections_count |
cluster/node/stats/rejected_connections_count |
因达到 maxclients 上限而被集群节点拒绝的连接数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_stats_total_fork_count |
cluster/node/stats/total_fork_count |
服务器启动后执行 fork 的总次数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_stats_tracking_total_items |
cluster/node/stats/tracking_total_items |
服务端跟踪的项目数(每个键的客户端数之和)。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_stats_tracking_total_keys |
cluster/node/stats/tracking_total_keys |
服务端跟踪的键数量。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_node_stats_tracking_total_prefixes |
cluster/node/stats/tracking_total_prefixes |
服务端前缀表中跟踪的前缀数量。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, shard_id, location, monitor_resource_type, node_id |
Count |
cluster_persistence_rdb_saves_count |
cluster/persistence/rdb_saves_count |
集群范围内的 RDB 保存次数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, location, status_string, status_code, monitor_resource_type |
Count |
cluster_search_attributes |
cluster/search/attributes |
所有向量搜索索引的属性总数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, location, monitor_resource_type |
Count |
cluster_search_average_used_memory_bytes |
cluster/search/average_used_memory_bytes |
所有搜索功能每个节点的平均已用内存。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, location, monitor_resource_type |
Bytes |
cluster_search_background_indexing_in_progress |
cluster/search/background_indexing_in_progress |
是否有任一索引正在执行后台索引。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, location, monitor_resource_type |
Bool |
cluster_search_indexed_keys |
cluster/search/indexed_keys |
所有索引中已索引的键数量。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, location, monitor_resource_type |
Count |
cluster_search_indexes |
cluster/search/indexes |
为向量搜索创建的索引数量。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, location, monitor_resource_type |
Count |
cluster_search_maximum_used_memory_bytes |
cluster/search/maximum_used_memory_bytes |
所有搜索功能每个节点的最大已用内存。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, location, monitor_resource_type |
Bytes |
cluster_search_query_requests_count |
cluster/search/query_requests_count |
所有索引的查询请求总数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, status, location, monitor_resource_type |
Count |
cluster_search_total_used_memory_bytes |
cluster/search/total_used_memory_bytes |
所有节点上全部搜索功能的已用内存总量。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, location, monitor_resource_type |
Bytes |
cluster_stats_average_evicted_keys |
cluster/stats/average_evicted_keys |
因内存容量限制被逐出的平均键数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, location, monitor_resource_type |
Count |
cluster_stats_average_expired_keys |
cluster/stats/average_expired_keys |
键过期事件的平均数量。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, location, monitor_resource_type |
Count |
cluster_stats_average_keyspace_hits |
cluster/stats/average_keyspace_hits |
集群范围内键查找成功的平均次数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, location, monitor_resource_type |
Count |
cluster_stats_average_keyspace_misses |
cluster/stats/average_keyspace_misses |
集群范围内键查找失败的平均次数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, location, monitor_resource_type |
Count |
cluster_stats_maximum_evicted_keys |
cluster/stats/maximum_evicted_keys |
因内存容量限制被逐出的最大键数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, location, monitor_resource_type |
Count |
cluster_stats_maximum_expired_keys |
cluster/stats/maximum_expired_keys |
键过期事件的最大数量。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, location, monitor_resource_type |
Count |
cluster_stats_maximum_keyspace_hits |
cluster/stats/maximum_keyspace_hits |
集群范围内键查找成功的最大次数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, location, monitor_resource_type |
Count |
cluster_stats_maximum_keyspace_misses |
cluster/stats/maximum_keyspace_misses |
集群范围内键查找失败的最大次数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, location, monitor_resource_type |
Count |
cluster_stats_total_connections_received_count |
cluster/stats/total_connections_received_count |
一分钟内创建的客户端连接总数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, location, monitor_resource_type |
Count |
cluster_stats_total_evicted_keys_count |
cluster/stats/total_evicted_keys_count |
因内存容量限制被逐出的键总数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, location, monitor_resource_type |
Count |
cluster_stats_total_expired_keys_count |
cluster/stats/total_expired_keys_count |
键过期事件总数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, location, monitor_resource_type |
Count |
cluster_stats_total_keyspace_hits_count |
cluster/stats/total_keyspace_hits_count |
集群范围内键查找成功的总次数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, location, monitor_resource_type |
Count |
cluster_stats_total_keyspace_misses_count |
cluster/stats/total_keyspace_misses_count |
集群范围内键查找失败的总次数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, location, monitor_resource_type |
Count |
cluster_stats_total_net_input_bytes_count |
cluster/stats/total_net_input_bytes_count |
集群接收的网络字节总数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, location, monitor_resource_type |
Bytes |
cluster_stats_total_net_output_bytes_count |
cluster/stats/total_net_output_bytes_count |
集群发送的网络字节总数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, location, monitor_resource_type |
Bytes |
cluster_stats_total_rejected_connections_count |
cluster/stats/total_rejected_connections_count |
因达到 maxclients 上限而被拒绝的客户端连接总数。 | cloud_provider, project_id, cluster_uid, cluster_id, project_name, account_name, role, location, monitor_resource_type |
Count |
对象¶
采集到的 GCP Memorystore for Redis Cluster 集群对象可以从「基础设施 - 资源目录」中查看。
{
"measurement": "gcp_redis_cluster",
"tags": {
"account_name": "xxx",
"cloud_provider": "gcp",
"cluster_id": "xxx",
"node_type": "REDIS_SHARED_CORE_NANO",
"project_id": "xxx",
"state": "ACTIVE"
},
"fields": {
"assetType": "redis.googleapis.com/Cluster",
"authorizationMode": "AUTH_MODE_DISABLED",
"automatedBackupConfig": {
"automatedBackupMode": "DISABLED"
},
"createTime": "xxx",
"deletionProtectionEnabled": false,
"discoveryEndpoints": [
{
"address": "xxx",
"port": 6379,
"pscConfig": {
"network": "projects/xxx/global/networks/xxx"
}
}
],
"effectiveMaintenanceVersion": "REDISCLUSTER_20260626_00_01",
"encryptionInfo": {
"encryptionType": "GOOGLE_DEFAULT_ENCRYPTION"
},
"persistenceConfig": {
"mode": "DISABLED"
},
"preciseSizeGb": 1.4,
"projectName": "xxx",
"replicaCount": 0,
"resourceCreateTime": "xxx",
"resourceName": "//redis.googleapis.com/projects/xxx/locations/xxx/clusters/xxx",
"satisfiesPzi": true,
"serverCaMode": "SERVER_CA_MODE_UNSPECIFIED",
"shardCount": 1,
"sizeGb": 2,
"transitEncryptionMode": "TRANSIT_ENCRYPTION_MODE_DISABLED",
"uid": "xxx",
"zoneDistributionConfig": {
"mode": "SINGLE_ZONE",
"zone": "xxx"
}
}
}
注意:tags、fields 中的字段可能会随后续更新有所变动。