-
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
Error writing string fields to stackdriver output #5315
Comments
As a temporary workaround, you could use the fielddrop metric filtering parameter to drop any string fields. This should clear up the error but may be tedious if you have many string fields.
|
@danielnelson that worked! Thank you so much. |
@danielnelson thank you for fixing this! Also, hopefully StackDriver's Metric pricing becomes more reasonable. Feeding Telegraf telemetry into StackDriver can be pricey per GCE instance. One might consider using Telegraf+StackDriver with per-minute resolution rather than per-second, to significantly reduce costs. |
It seems that Stackdriver supports 1m resolution max for custom metrics, so you will want to reduce the collection interval or aggregate the metrics before sending them to Stackdriver. There are some other limitations I have found, which lead me to believe that it makes the most sense to send only certain metrics to Stackdriver while pushing the bulk of the data to InfluxDB. I just added this note to the documentation: https://github.com/influxdata/telegraf/tree/master/plugins/outputs/stackdriver#restrictions |
@danielnelson these are excellent solutions. I have also noticed StackDriver barfing errors when receiving data points out-of-order. The only remedy was to restart telegraf and be (un)happy with a gap in data. The |
Relevant telegraf.conf:
System info:
[Include Telegraf version, operating system name, and other relevant details]
Steps to reproduce:
outputs.stackdriver
configMonitoring Metric Writer
IAM roleExpected behavior:
Logs are pushed to StackDriver
Actual behavior:
Error when starting Telegraf:
Additional info:
Not sure what else to do to get this working.
The text was updated successfully, but these errors were encountered: