Skip to content

Commit ccaeb05

Browse files
author
zhongming Fan
committed
doc: vastbase v1.1.6
1 parent d9cd6bb commit ccaeb05

File tree

1 file changed

+111
-0
lines changed

1 file changed

+111
-0
lines changed
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
## 嘉为蓝鲸海量数据库监控插件使用说明
2+
3+
### 插件功能
4+
5+
采集器连接数据库后执行sql,转换为监控指标。
6+
7+
### 版本支持:
8+
9+
操作系统支持: linux, windows
10+
11+
是否支持arm: 支持
12+
13+
**组件支持版本:**
14+
15+
海量数据库G100: Vastbase2.X
16+
17+
### 使用指引
18+
19+
登录数据库并执行命令创建蓝鲸监控账号和授权:
20+
21+
```bash
22+
# 创建用户: weops 密码: Weops123!
23+
CREATE USER weops123 IDENTIFIED BY "Weops123!";
24+
```
25+
26+
### 参数说明
27+
28+
| **参数名** | **含义** | **是否必填** | **使用举例** |
29+
|------------------------|----------------------------------------------------------------------|----------|----------------|
30+
| SQL_EXPORTER_USER | 数据库用户名(环境变量),特殊字符不需要编码转义 || alphay |
31+
| SQL_EXPORTER_PASS | 数据库密码(环境变量),特殊字符不需要编码转义 || alphay123 |
32+
| SQL_EXPORTER_DB_TYPE | 数据库类型(环境变量) || vastbase |
33+
| SQL_EXPORTER_HOST | 数据库服务IP(环境变量) || 127.0.0.1 |
34+
| SQL_EXPORTER_PORT | 数据库服务端口(环境变量) || 5432 |
35+
| SQL_EXPORTER_DB_NAME | 数据库名称(环境变量) || vastbase |
36+
| -config.file | sql_exporter.yml 采集器全局配置文件, 包含超时设置、最大连接数、目标配置、采集指标配置文件名等 || 默认已有采集器全局配置文件 |
37+
| -log.level | 日志级别 || info |
38+
| -web.listen-address | exporter监听id及端口地址 || 127.0.0.1:9601 |
39+
| collector.file.content | *.collector.yml 采集指标配置文件, 包含指标名、维度、sql等内容。**注意!该参数为文件参数,非探针执行文件参数!** || 默认已有标准采集指标配置文件 |
40+
41+
42+
### 指标列表
43+
| **up** | **插件运行状态** | **-** | **-** | **-** |
44+
|---------------------------------------------------|-----------------|----------------------------------------------|-----------------------------|---------|
45+
| vastbaseG100_exporter_database_used_disk_bytes | 数据库使用的磁盘空间 | datname | 数据库名称 | bytes |
46+
| vastbaseG100_exporter_slow_query | 慢查询数量 | - | - | - |
47+
| vastbaseG100_exporter_wait_count | 等待数量 | - | - | - |
48+
| vastbaseG100_exporter_memory_info | 内存使用情况 | memorytype | 内存类型 | bytes |
49+
| vastbaseG100_exporter_buffers_clean | 后台编写器写入的缓冲区数 | - | 数据库名称, 锁模式 | - |
50+
| vastbaseG100_exporter_buffers_checkpoint | 检查点期间写入的缓冲区数 | - | 数据库名称 | - |
51+
| vastbaseG100_exporter_buffers_backend | 后端直接写入的缓冲区数 | - | - | - |
52+
| vastbaseG100_exporter_checkpoint_write_percent | 检查点期间写入率 | - | - | percent |
53+
| vastbaseG100_exporter_buffers_hit_percent | 缓存命中率 | datname | 数据库名称 | percent |
54+
| vastbaseG100_exporter_xact_trans_percent | 事务提交率 | datname | 数据库名称 | percent |
55+
| vastbaseG100_exporter_xact_commit | 已提交事务数 | datname | 数据库名称 | - |
56+
| vastbaseG100_exporter_xact_rollback | 已回滚事务数 | datname | 数据库名称 | - |
57+
| vastbaseG100_exporter_blks_read | 块读取数 | datname | 数据库名称 | - |
58+
| vastbaseG100_exporter_blks_hit | 块命中数 | datname | 数据库名称 | - |
59+
| vastbaseG100_exporter_tup_returned | 查询返回行数 | datname | 数据库名称 | - |
60+
| vastbaseG100_exporter_tup_fetched | 查询获取行数 | datname | 数据库名称 | - |
61+
| vastbaseG100_exporter_tup_inserted | 插入行数 | datname | 数据库名称 | - |
62+
| vastbaseG100_exporter_tup_updated | 更新行数 | datname | 数据库名称 | - |
63+
| vastbaseG100_exporter_tup_deleted | 删除行数 | datname | 数据库名称 | - |
64+
| vastbaseG100_exporter_conflicts | 取消查询数量 | datname | 数据库名称 | - |
65+
| vastbaseG100_exporter_temp_files | 临时文件数 | datname | 数据库名称 | - |
66+
| vastbaseG100_exporter_temp_bytes | 临时文件字节数 | datname | 数据库名称 | bytes |
67+
| vastbaseG100_exporter_deadlocks | 死锁数 | datname | 数据库名称 | - |
68+
| vastbaseG100_exporter_blk_read_time | 读取数据文件块耗时 | datname | 数据库名称 | ms |
69+
| vastbaseG100_exporter_blk_write_time | 写入数据文件块耗时 | datname | 数据库名称 | ms |
70+
| vastbaseG100_exporter_backend_connections | 后端连接数 | datname | 数据库名称 | - |
71+
| vastbaseG100_exporter_process_used_memory_percent | 进程最大使用内存百分比 | - | - | percent |
72+
| vastbaseG100_exporter_dynamic_used_memory_percent | 动态最大使用内存百分比 | - | - | percent |
73+
| vastbaseG100_exporter_shared_used_memory_percent | 共享最大使用内存百分比 | - | - | percent |
74+
| vastbaseG100_exporter_user_pass_valid | 用户密码剩余有效时间 | rolname | 用户名称 | days |
75+
| vastbaseG100_exporter_table_size_bytes | 数据库表大小 | datname, table_name, table_schema | 数据库名称, 表名称, 表Schema名称 | bytes |
76+
| vastbaseG100_exporter_tablespace_total_used_mb | 表已用空间大小 | pg_tablespace_location, spcname | 表空间位置, 表空间名称 | MB |
77+
| vastbaseG100_exporter_granted_locks | 已授予的锁数量 | datname | 数据库名称 | - |
78+
| vastbaseG100_exporter_db_locks | 数据库中不同类型锁的数量 | datname, mode | 数据库名称, 锁模式 | - |
79+
| vastbaseG100_exporter_long_xact | 执行时间大于300秒的长事务数 | datname | 数据库名称 | - |
80+
| vastbaseG100_exporter_long_xact_duration | 数据库执行查询的事务最大耗时 | datname | 数据库名称 | s |
81+
| vastbaseG100_exporter_connections | 数据库当前会话数 | - | - | - |
82+
| vastbaseG100_exporter_setting_max_connections | 数据库允许的最大会话数 | - | - | - |
83+
| vastbaseG100_exporter_connection_used_percent | 当前会话数使用率 | - | - | percent |
84+
| vastbaseG100_exporter_active_connections | 当前活跃会话数 | - | - | - |
85+
| vastbaseG100_exporter_block_connections | 阻塞会话数 | - | - | - |
86+
| vastbaseG100_exporter_idle_connections | 空闲会话数 | - | - | - |
87+
| vastbaseG100_exporter_index_ipages | 索引页数 | datname, iname, schemaname, tablename | 数据库名称, 索引名称, Schema名称, 表名称 | - |
88+
| vastbaseG100_exporter_index_iotta | 索引预期页数 | datname, iname, schemaname, tablename | 数据库名称, 索引名称, Schema名称, 表名称 | - |
89+
| vastbaseG100_exporter_index_ibloat | 索引膨胀比率 | datname, iname, schemaname, tablename | 数据库名称, 索引名称, Schema名称, 表名称 | - |
90+
| vastbaseG100_exporter_index_wastedpages | 索引浪费页数 | datname, iname, schemaname, tablename | 数据库名称, 索引名称, Schema名称, 表名称 | - |
91+
| vastbaseG100_exporter_index_wastedibytes | 索引浪费字节数 | datname, iname, schemaname, tablename | 数据库名称, 索引名称, Schema名称, 表名称 | bytes |
92+
| vastbaseG100_exporter_index_totalwastedbytes | 索引总浪费字节数 | datname, iname, schemaname, tablename | 数据库名称, 索引名称, Schema名称, 表名称 | bytes |
93+
| vastbaseG100_exporter_table_tups | 表行数 | datname, iname, schemaname, tablename | 数据库名称, 索引名称, Schema名称, 表名称 | - |
94+
| vastbaseG100_exporter_table_pages | 表页数 | datname, iname, schemaname, tablename | 数据库名称, 索引名称, Schema名称, 表名称 | - |
95+
| vastbaseG100_exporter_table_otta | 表预期页数 | datname, iname, schemaname, tablename | 数据库名称, 索引名称, Schema名称, 表名称 | - |
96+
| vastbaseG100_exporter_table_tbloat | 表膨胀比率 | datname, iname, schemaname, tablename | 数据库名称, 索引名称, Schema名称, 表名称 | - |
97+
| vastbaseG100_exporter_table_wastedbytes | 表浪费空间大小 | datname, iname, schemaname, tablename | 数据库名称, 索引名称, Schema名称, 表名称 | bytes |
98+
| vastbaseG100_exporter_wal_write_buffer | WAL写入缓冲区数 | - | - | - |
99+
| vastbaseG100_exporter_wal_write_block | WAL写入块数 | - | - | - |
100+
| vastbaseG100_exporter_backup_state | 主备进程状态 | application_name, client_addr, backend_start | 应用名称, 客户端IP, 进程启动时间 | - |
101+
| vastbaseG100_exporter_backup_sync_state | 主备进程同步状态 | application_name, client_addr, backend_start | 应用名称, 客户端IP, 进程启动时间 | - |
102+
| vastbaseG100_exporter_backup_slave_latency | 备库WAL延迟应用量 | application_name, client_addr, backend_start | 应用名称, 客户端IP, 进程启动时间 | MB |
103+
| vastbaseG100_exporter_backup_send_latency | 备库WAL延迟接收量 | application_name, client_addr, backend_start | 应用名称, 客户端IP, 进程启动时间 | MB |
104+
| vastbaseG100_exporter_backup_flush_latency | 备库WAL延迟刷盘量 | application_name, client_addr, backend_start | 应用名称, 客户端IP, 进程启动时间 | MB |
105+
106+
107+
### 版本日志
108+
109+
#### weops_vastbaseG100_exporter 1.1.6
110+
- weops调整
111+

0 commit comments

Comments
 (0)