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

redis servers is not tagged to multiple ports #74

Closed
kotopes opened this issue Jul 22, 2015 · 2 comments
Closed

redis servers is not tagged to multiple ports #74

kotopes opened this issue Jul 22, 2015 · 2 comments

Comments

@kotopes
Copy link
Contributor

kotopes commented Jul 22, 2015

in config:
[redis]

servers = ["10.0.0.13:6386", "10.0.0.13:6380", "10.0.0.13:6381", "10.0.0.13:6382", "10.0.0.13:6383", "10.0.0.13:6384", "10.0.0.13:6385"]


in influx 0.9.1:

show measurements
...
redis_total_commands_processed
...

select * from redis_total_commands_processed
....
name: redis_total_commands_processed
tags: host=wpr01
time value

2015-07-22T11:31:32.905606408Z 2387730910
2015-07-22T11:31:37.909249167Z 2387738534
2015-07-22T11:31:42.907242355Z 2387746082
....

where i see in tags "port: 6380(6381...6386)" ?

@kotopes
Copy link
Contributor Author

kotopes commented Jul 22, 2015

i add code before tags:

    _, rPort, err := net.SplitHostPort(addr.Host)
    if err != nil {
        rPort = defaultPort
    }
    tags := map[string]string{"host": addr.String(), "port": rPort}

kotopes added a commit to kotopes/telegraf that referenced this issue Jul 22, 2015
@sparrc
Copy link
Contributor

sparrc commented Aug 5, 2015

@kotopes I believe this can now be closed due to closing the pull request, let me know if there are any more problems!

@sparrc sparrc closed this as completed Aug 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants