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

Optionally send metrics to Carbon (Graphite) #10

Open
xbglowx opened this issue Sep 10, 2014 · 8 comments
Open

Optionally send metrics to Carbon (Graphite) #10

xbglowx opened this issue Sep 10, 2014 · 8 comments

Comments

@xbglowx
Copy link
Contributor

xbglowx commented Sep 10, 2014

It would be great if the tool could optionally send metrics to a carbon host.

@xbglowx xbglowx self-assigned this Sep 10, 2014
@jedblack
Copy link

Any plans to have this implemented?

@xbglowx
Copy link
Contributor Author

xbglowx commented Jan 20, 2015

Hi @jedblack, I currently don't have any plans for this yet. The reason I came up with this enhancement was because I found myself writing wrapper scripts that would do the carbon submit.

I don't think it will take much time to implement. I am assuming you want this added to the 'stat' sub-command?

@jedblack
Copy link

yep, essentially, I would love to be able to pump any stat netscaler-tool can output into graphite(carbon)

@xbglowx
Copy link
Contributor Author

xbglowx commented Jan 21, 2015

Gotcha. I will try to make some time to work on this either this week or next. I will let you know when I have something, so that you can test it out.

@xbglowx
Copy link
Contributor Author

xbglowx commented Jan 30, 2015

I finally got around to coding this feature. I should have something ready by Monday.

@jedblack
Copy link

Wow, thanks Brian. Really appreciate you taking the time. It will be a super useful addition in my world, as I'm sure for many others as well.

@xbglowx
Copy link
Contributor Author

xbglowx commented Feb 3, 2015

@jedblack I have created a carbon branch. Can you please try it out?

  1. create virtualenv
  2. activate virtualenv
  3. cd <git_clone_dir>
  4. python setup.py install
  5. modify '/etc/netscalertool.conf' and include the following at the end of the file:
    carbon:
    host: host.domain.com
    port: 2003
    metric_base: foo.bar
  6. netscaler-tool --carbon <netscaler_ip> stat lb-vservers totalpktssent

In the above example, the tool will send foo.bar.<netscaler_ip>.lbvserver..totalpktssent. to host.domain.com:2003, for all lbvservers.

You can also try:

netscaler-tool --carbon <netscaler_ip> stat ns
netscaler-tool --carbon <netscaler_ip> show system

Watch /var/log/netscaler-tool/netscaler-tool.log for anything interesting and verify if metrics are making it to your carbon instance.

@jedblack
Copy link

jedblack commented Feb 4, 2015

I'm going to give it a run through the week and report back. Thanks Brian!

@ghost ghost unassigned xbglowx Mar 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants