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

Change node_name to be a tag in aerospike input #2918

Merged
merged 2 commits into from
Jun 14, 2017

Conversation

danielnelson
Copy link
Contributor

Without this all nodes would create conflicting series.

fixes #2917

Required for all PRs:

  • Associated README.md updated.
  • Has appropriate unit tests.

Without this all nodes would create conflicting series.
@danielnelson danielnelson added the breaking change Improvement to Telegraf that requires changes to the plugin or agent; for minor/major releases label Jun 13, 2017
@danielnelson danielnelson added this to the 1.4.0 milestone Jun 13, 2017
@danielnelson
Copy link
Contributor Author

@popov-ilya Can you test this change? Here is the amd64 build.

@popov-ilya
Copy link

ilya-popov@dev01:~$ curl 192.168.1.18:9127/metrics | grep aerospike_node_objects
# HELP aerospike_node_objects Telegraf collected metric
# TYPE aerospike_node_objects untyped
aerospike_node_objects{aerospike_host="localhost:3000",host="dev01",node_name="BB92F7E6C005452"} 7919
aerospike_node_objects{aerospike_host="localhost:3000",host="dev01",node_name="BB947F50D005452"} 7532
aerospike_node_objects{aerospike_host="localhost:3000",host="dev01",node_name="BB9B84A3B005452"} 7367
aerospike_node_objects{aerospike_host="localhost:3000",host="dev01",node_name="BB9F1EA1A005452"} 7144

Now it gives 4 times more series, but i can finally get correct data. Thank you!

@danielnelson
Copy link
Contributor Author

I didn't see a way to determine which node is the "local" one using aerospike-client-go, though I didn't look too deeply. If we did have a way we could potentially add an option to allow switching between full cluster and local node only mode, similar to what we have for elasticsearch.

This is technically a breaking change, but I think it must be done since otherwise this input is totally unusable with multiple nodes.

@danielnelson danielnelson merged commit 619b5d4 into master Jun 14, 2017
@danielnelson danielnelson deleted the aerospike-node-name-tag branch June 14, 2017 00:09
@popov-ilya
Copy link

popov-ilya commented Jun 14, 2017

Don't know about other outputs, but in prometheus i can drop unnecessary series when pulling it from telegraf. So tottally fine for me.

@danielnelson
Copy link
Contributor Author

Great, it is also possible for any output/input to use the tagpass/tagdrop options to prevent some of the series from being output.

@kportertx
Copy link

I didn't see a way to determine which node is the "local" one using aerospike-client-go, though I didn't look too deeply.

@danielnelson You cold use RequesInfo() and pass a connection to localhost (or another target address).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Improvement to Telegraf that requires changes to the plugin or agent; for minor/major releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect aerospike metrics export to prometheus with more than 1 node in aerospike cluster
3 participants