Oxalide / vsphere-influxdb-go

Collect VMware vSphere, vCenter and ESXi performance metrics and send them to InfluxDB
GNU General Public License v3.0
215 stars 61 forks source link

Request Entity Too Large #74

Closed jackfrost82 closed 6 years ago

jackfrost82 commented 6 years ago

Hi, this is the output I get:

2018/04/19 12:07:36 Starting vsphere-influxdb-go with config file /etc/vsphere-influxdb-go.json 2018/04/19 12:07:36 Successfully connected to Influx 2018/04/19 12:07:36 Connecting to vcenter: 172.25.244.12 2018/04/19 12:07:37 Setting up query inventory of vcenter: 172.25.244.12 2018/04/19 12:07:40 {"error":"Request Entity Too Large"}

vsphere-influxdb-go.zip

I think the problem is the large number of vm on the same vcenter. Is there any way to split the query? Thanks

ZHumphries commented 6 years ago

I have the same issue with my 2 of my vcenters (around 3000 VM's each). The smaller VC's do not show the issue.

ZHumphries commented 6 years ago

This is acutally an INFLUXBD issue and can be resolved by setting

max-body-size = 0

Specifies the maximum size (in bytes) of a client request body. When a client sends data that exceeds the configured maximum size, a 413 Request Entity Too Large HTTP response is returned. Setting this value to 0 disables the limit.

Environment variable: INFLUXDB_HTTP_MAX_BODY_SIZE

sofixa commented 6 years ago

Yep, we already had that issue in #54. @jackfrost82 can confirm if that fixes it for you?

jackfrost82 commented 6 years ago

Fixed. Thank you very much