Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql config #130

Closed
skynet opened this issue Aug 21, 2015 · 8 comments
Closed

mysql config #130

skynet opened this issue Aug 21, 2015 · 8 comments
Labels
bug unexpected problem or unintended behavior

Comments

@skynet
Copy link

skynet commented Aug 21, 2015

Tried different options, but couldn't make it to work:

[mysql]
servers = ["127.0.0.1"]

Any chance for a better documentation for the configuration of these plugins?

@joakimberglund
Copy link

This works for me

servers = ["user:password@tcp(mysqlservername:3306)/"]

@skynet
Copy link
Author

skynet commented Aug 21, 2015

That worked for me too. 👍

@sparrc sparrc added the bug unexpected problem or unintended behavior label Aug 21, 2015
@sparrc
Copy link
Contributor

sparrc commented Aug 21, 2015

This needs to be better documented, thanks for the report

@sparrc
Copy link
Contributor

sparrc commented Aug 24, 2015

Hi @skynet,

I just took a look at the sample config and actually find some pretty helpful documentation:

# Read metrics from one or many mysql servers
[mysql]

# specify servers via a url matching:
#  [username[:password]@][protocol[(address)]]/[?tls=[true|false|skip-verify]]
#  e.g. root:root@http://10.0.0.18/?tls=false
#
# If no servers are specified, then localhost is used as the host.
servers = ["localhost"]

Does that cover what you need? This can be viewed by running telegraf -sample-config

@skynet
Copy link
Author

skynet commented Aug 24, 2015

yes, it helps

@skynet
Copy link
Author

skynet commented Aug 25, 2015

any hint on how do we tag each server? tx

@sparrc
Copy link
Contributor

sparrc commented Aug 25, 2015

@skynet, that is not supported at the moment, could you open a separate issue for tagging each server with something like a mysql_server= tag?

@skynet
Copy link
Author

skynet commented Aug 25, 2015

Yes, thanks!

@sparrc sparrc closed this as completed in bd85a36 Aug 25, 2015
@skynet skynet mentioned this issue Aug 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants