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

jolokia2_agent cassandra example config missing per table and all table metrics #15139

Closed
jgrammen-agilitypr opened this issue Apr 11, 2024 · 2 comments · Fixed by #15141
Closed
Labels
feature request Requests for new plugin and for new features to existing plugins

Comments

@jgrammen-agilitypr
Copy link
Contributor

Use Case

if you want to collect metrics on a per table or all tables aggregated, you need to add additional configuration to the example telegraf jolokia2_agent cassandra.conf file (telegraf/plugins/inputs/jolokia2_agent/examples/cassandra.conf)###

Expected behavior

adding additional configuration should result in more metrics being collected as per https://cassandra.apache.org/doc/3.11/cassandra/operating/metrics.html#table-metrics

Actual behavior

you get the additional metrics listed https://cassandra.apache.org/doc/3.11/cassandra/operating/metrics.html#table-metrics for each table in your Cassandra cluster. And separately as aggregate metrics for "all" tables

Additional info

the following are what need to be added to example cassandra configuration. I would suggest leaving them commented out indicate that they can be optional enabled if per table metrics are desired (which can be a significant amount of metrics as there are 65 stats/metrics per table)

  [[inputs.jolokia2_agent.metric]]
    name  = "Table"
    mbean = "org.apache.cassandra.metrics:name=*,keyspace=*,scope=*,type=Table"
    tag_keys = ["name","scope","keyspace"]
    field_prefix = "$1_"

  [[inputs.jolokia2_agent.metric]]
    name  = "TableAll"
    mbean = "org.apache.cassandra.metrics:name=*,type=Table"
    tag_keys = ["name"]
    field_prefix = "$1_"
@jgrammen-agilitypr jgrammen-agilitypr added the feature request Requests for new plugin and for new features to existing plugins label Apr 11, 2024
@powersj
Copy link
Contributor

powersj commented Apr 11, 2024

Hi,

Happy to see a PR to add this to the docs. Are you willing to add this to the docs for folks to use in the future?

Thanks!

@jgrammen-agilitypr
Copy link
Contributor Author

A pull request has been created that updates the example configuration file

@telegraf-tiger telegraf-tiger bot removed the waiting for response waiting for response from contributor label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
2 participants