categraf/inputs/postgresql
kongfei 73613a200a support multi inputs 2023-04-25 16:48:00 +08:00
..
README.md fix dashboard error for pg 2023-01-05 11:05:24 +08:00
dashboard.json delete datasourceName for pg dashboard 2023-01-05 14:29:03 +08:00
postgresql.go support multi inputs 2023-04-25 16:48:00 +08:00
postgresql.png fix dashboard error for pg 2023-01-05 11:05:24 +08:00

README.md

postgresql

postgresql 监控采集插件fork 自telegraf/postgresql

configuration

[[inputs.postgresql]]
address = ""
## postgresql 的连接信息
# address = "host=1.2.3.4 port=5432 user=postgres password=123456 sslmode=disable"

## outputaddress 相当于是addres的别名 
# outputaddress = "db01" 

## 一条连接保持活跃的最大时长, 0s表示永远
## 当查询执行时,到达最大时长的连接不会被立即强制断开
# max_lifetime = "0s"

## 忽略哪些db的采集
# ignored_databases = ["postgres", "template0", "template1"]

## 显式指定采集哪些db 
# databases = ["app_production", "testing"]

## Whether to use prepared statements when connecting to the database.
## This should be set to false when connecting through a PgBouncer instance
## with pool_mode set to transaction.
## 是否使用prepared statements 连接数据库
# prepared_statements = true

dashboard