mysql-data-sp-check

command
v0.0.0-...-50172b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

README

mysql数据存储过程迁移状态告警

; /etc/telegraf/telegraf.conf

[[inputs.exec]]
  commands = ["/etc/telegraf/mysql-data-sp-check.sh"]
  timeout = "5s"
  name_suffix = "_mysql_data_sp"
  data_format = "json"
  data_type = "integer"
  • mysql 用户权限
SET GLOBAL validate_password_special_char_count = 0;
GRANT SELECT ON `dbname`.* TO 'status'@'127.0.0.1' IDENTIFIED BY 'passWord';

show grants for 'status'@'127.0.0.1';
  • 执行结果
[centos@hostname telegraf]$ ./mysql-data-sp-check
{
    "errs_count": 0,
    "errs": []
}

[centos@hostname ~]$ telegraf -input-filter exec -test
> exec_mysql_data_sp,host=hostname errs_count=0 0000000000000000000
下载程序

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL