comment custom queries of mysql plugin

This commit is contained in:
Ulric Qin 2022-04-27 17:38:08 +08:00
parent 7f9e81eada
commit 6eb9723753
1 changed files with 9 additions and 9 deletions

View File

@ -36,12 +36,12 @@ labels = { instance="n9e-10.2.3.4:3306" }
## Use TLS but skip chain & host verification
# insecure_skip_verify = true
[[instances.queries]]
mesurement = "users"
metric_fields = [ "total" ]
label_fields = [ "product" ]
# field_to_append = ""
timeout = "3s"
request = '''
select 'n9e' as product, count(*) as total from n9e_v5.users
'''
# [[instances.queries]]
# mesurement = "users"
# metric_fields = [ "total" ]
# label_fields = [ "service" ]
# # field_to_append = ""
# timeout = "3s"
# request = '''
# select 'n9e' as service, count(*) as total from n9e_v5.users
# '''