-
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
Standard URI for haproxy Stats #1019
Comments
I've created a fork in my local repository, and ammend it. It was just a new rule to check it: |
@pasancario what if you just specify:
? |
Hi, I am trying to use Haproxy as a input plugin and trying to send Output to InfluxDB. InfluxDB Version - 0.8 Input Plugin
Thanks, |
@sparrc - Can you please let me know the fix for the above issue? |
@SigbertUCE what is the url that your haproxy stats are available at? |
@sparrc - http://ccrc-hapxy-stg-01:1936/?stats There are 2 issues here.
[ccrccloudop@ccrc-metrics-stg-01 telegraf-0.13.1-1]$ 2016/06/21 15:30:31 Database creation failed: json: cannot unmarshal number into Go value of type client.Response Thanks, |
if you're using influxdb 0.8 you'll need to backversion telegraf, probably back to 0.10 at least. |
@sparrc - Tried downloading the below url but gives me 404. |
@sparrc - was trying to use the below(http://get.influxdb.org/telegraf/telegraf-0.10.0_linux_386.tar.gz) |
@sparrc - Tried downgrading it to 0.10.2 version but no luck.Please let me know the fix for the same. 2016/06/22 03:23:02 Database creation failed: json: cannot unmarshal number into Go value of type client.Response 2016/06/22 03:23:20 Error writing to output [influxdb]: Could not write to any InfluxDB server in cluster 2016/06/22 03:23:30 Error writing to output [influxdb]: Could not write to any InfluxDB server in cluster 2016/06/22 03:23:40 Error writing to output [influxdb]: Could not write to any InfluxDB server in cluster 2016/06/22 03:23:50 Error writing to output [influxdb]: Could not write to any InfluxDB server in cluster |
@sparrc - Any pointers on these issues will help me move forward. |
@SigbertUCE I'm sorry but I have no idea how to fix that, it's not a problem I've seen and I don't have any way of reproducing. I was hoping someone in the community could help out. |
I was dealing with the same issue. Think I've got it resolved by adding the uri for the stats to the server config in telegraf.conf. Section in HA Proxy: Section in telegraf.conf: |
@mverleun - tried the same but to no avail.. 2016/07/18 02:41:20 Error writing to output [influxdb]: Could not write to any InfluxDB server in cluster |
Hi,
I want to use haproxy input plugin, but it seems it doesn't work with standard configuration from Haproxy.
They define default URI as: http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#4.2-stats%20enable
And when plugin tries to parse it, fails:
Error in input [haproxy]: Unable to get valid stat result from 'http://127.0.0.1:80/haproxy?stats': %!s(<nil>)
It seems query values are not being parsed, and default URI from haproxy is not supported.
Configuration:
Output:
The text was updated successfully, but these errors were encountered: