comment custom queries of mysql plugin
This commit is contained in:
parent
7f9e81eada
commit
6eb9723753
|
@ -36,12 +36,12 @@ labels = { instance="n9e-10.2.3.4:3306" }
|
||||||
## Use TLS but skip chain & host verification
|
## Use TLS but skip chain & host verification
|
||||||
# insecure_skip_verify = true
|
# insecure_skip_verify = true
|
||||||
|
|
||||||
[[instances.queries]]
|
# [[instances.queries]]
|
||||||
mesurement = "users"
|
# mesurement = "users"
|
||||||
metric_fields = [ "total" ]
|
# metric_fields = [ "total" ]
|
||||||
label_fields = [ "product" ]
|
# label_fields = [ "service" ]
|
||||||
# field_to_append = ""
|
# # field_to_append = ""
|
||||||
timeout = "3s"
|
# timeout = "3s"
|
||||||
request = '''
|
# request = '''
|
||||||
select 'n9e' as product, count(*) as total from n9e_v5.users
|
# select 'n9e' as service, count(*) as total from n9e_v5.users
|
||||||
'''
|
# '''
|
Loading…
Reference in New Issue