influxdata / community-templates

InfluxDB Community Templates: Quickly collect & analyze time series data from a range of sources: Kubernetes, MySQL, Postgres, AWS, Nginx, Jenkins, and more.
https://www.influxdata.com/products/influxdb-templates/gallery/
Apache License 2.0
351 stars 157 forks source link

Add variables bucket and mysql_host #265

Closed syedahmedabbas closed 3 years ago

syedahmedabbas commented 3 years ago

Reference Issues/PRs

None

What does this implement/fix?

I just added the variables (bucket and mysql_host), which allow to be more flexibile and permit a user to monitor more than one mysql/mariadb server.

Any Other Comments?

I also created the dashboard for glusterfs storage. I want to know how i can add the dashboard under influxdata/community-templates repository. Can you please help me and tell me the procedure to follow?

Thanks.

mnsmithuk commented 2 years ago

Hi,

Thanks for this update. I've just started to use this template and come across 2 issues.

  1. I think the mysql_host variable should use the measurement mysql rather than cpu. and
  2. The bucket variable would be better called mysql_bucket as the linux system template ( and probabably other temlates) uses the variable name bucket. The problem comes when using an imported template that uses a variable name shared with other templates. If you ever want to delete a template it will also delete the variable even though it is being used in another template. I think best practice would be to have variables unique to their template or the code finds a way not to delete the variables (or any other shared resources for that matter) when deleting a template.