"could not parse dogstatsd metric values: strconv.ParseFloat: parsing "false": invalid syntax" error in flink application

165 views Asked by At

For a flink application, I am publishing flink metrics using StatsdReporter on Datadog. Getting errors in log:

  1. .isBackPressured:false|g"': could not parse dogstatsd metric values: strconv.ParseFloat: parsing "false": invalid syntax
  2. KafkaSourceReader.KafkaConsumer.version:2.8.0|g"': could not parse dogstatsd metric values: strconv.ParseFloat: parsing "2.8.0": invalid syntax
  3. Source.KafkaSourceReader.KafkaConsumer.commit-id:ebb1d6e21cc92130|g"': could not parse dogstatsd metric values: strconv.ParseFloat: parsing "ebb1d6e21cc92130": invalid syntax

and more suce errors. How to fix?. for flink-version: 1.14.3

Sending metrics to datadog using flink StatsdReporter and datadog agent. Got parsing error.

1

There are 1 answers

0
bwest On

All metrics are of type double so you can't pass strings. Those bits of information need to be passed as tags. If possible, you should consider using the HTTP integration via DatadogHttpReporter, which will pass variables as tags by default for most things, and make it easy to configure for others.