title: How to solve this error in prometheus ktext format parsing error in line 1: expected float as value, got "41584\r"
body: <p>when I pass the parameters from a sh to my server prometheus shows the error, the data I get from a json</p>
  
  <p>my sh</p>
  
  <pre class="lang-sh prettyprint-override"><code>#!/bin/bash
  REPORT=C:/gauge2/gauge/reports/json-report
  FILE=$REPORT/result.json     
  
  # Validate &amp; push the metrics
  if [ -f $FILE ]; then
     echo "File $FILE exists."
     cat $REPORT/result.json | \
      # Extract a nice json from last report
      jq -r '.projectName as $project |.environment as $env | .specResults[] |"ngt_lambda_qa {env=\"\($env)\", spec=\"\(.specHeading|gsub("\"";"\\\""))\", result=\"\(.executionStatus)\"} \(.executionTime)"' | \
  
      # Send to the metric server
      curl -v --data-binary @- localhost:9091/metrics/job/prometheus
      name=`uname -n`
      timestamp=`date +%s`
      result=`jq -r '.executionStatus' $REPORT/result.json`
      echo "prometrics_exec{name=\"$name\", result=\"$result\"} $timestamp" | curl --data-binary @- localhost:9091/metrics/prueba
  else
     echo "File $FILE does not exist."
  fi
  sleep 90
  </code></pre>