-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
jolokia plugin - do not overwrite host tag #1050
Comments
I don't quite understand, can you give an example? |
Hi, I would like to configure, [[inputs.jolokia.servers]] appName is a sample. I can query based on customer-app metrics across different IPs to aggregate the results. Regards |
why don't you use "name" as the tag? |
I need to capture the IP Address of the host as we may have upto 6 docker containers in an instance. So I am using name for that case. |
I see, so the problem is actually that the jolokia plugin is overwriting the regular |
Please correct me if I am wrong, jolokia needs the host and port to connect; so I am leaving it localhost and 8080. |
yes, you're not doing anything wrong, normally telegraf has a |
There is a scenario where the plugin might have to add the host tag. For example, since jolokia allows remote access, telegraf can run on one host/container and query stats from multiple hosts/containers using the "servers" config. In this case telegraf will report host as the machine on which it is running. What we really want is stats from each machine being queried report host as the machine that is being queried. So, in the cassandra plugin (based on jolokia) there is code like
If "localhost" is being used, we let telegraf add the "host" tag otherwise the one from the "server" config overrides it. |
I don't agree with that, if that's the case then just ignore the if you really can't stand the host tag being there, then you can use the new |
Hi, I see that I am populating the name attribute in telegraf and is stored as server in InfluxDb. Are you referring this above? if I have name and server, I can easily map the app name to name and HOST_IP to server. |
Hi,
I am using telegraf to publish jolokia metrics to influxdb within Docker Container. As we are employing Microservice, It would be great if we capture the Application Name to publish the data like in [[inputs.jolokia.servers]]. There is name which we use for EC2 IP, host and port for jolokia. If we have application name would gives us more flexibility in getting the data collectively.
Please advice.
Thanks and Regards
Karthik
The text was updated successfully, but these errors were encountered: