I have setup the graphite data source within my grafana cloud account. The data source tests successfully with “Data Source is working” message. I am using curl to send an api POST request to submit metrics and the command receives “Published” response. In the grafana explorer view, I can observe a data point on the graph for every published metric at the correct time that they were sent, but the value listed for every metric is 0. I have attempted to adjust the storage-schemas.conf intervals and the particular details of my posted metrics to no avail. I have recreated my graphite data source and continue to experience this issue.
#!/bin/bash
key=******************************************************************
addr="https://graphite-prod-10-prod-us-central-0.grafana.net/graphite"
timestamp_now_rounded=$(($(date +%s) / 10 * 10 ))
timestamp_prev_rounded=$((timestamp_now_rounded - 10))
metric="test"
curl -X POST -H "Authorization: Bearer $key" -H "Content-Type: application/json" "$addr/metrics" -d '[{
"name": "telem.'$metric'",
"metric": "telem.'$metric'",
"interval": 10,
"value:": 4.321,
"time": '$timestamp_prev_rounded'
},
{
"name": "telem.'$metric'",
"metric": "telem.'$metric'",
"interval": 10,
"value:": 2,
"time": '$timestamp_now_rounded'
}
]'
[default]
pattern = .*
retentions = 10s:14d,1m:60d,30m:2y
[default]
pattern = .*
xFilesFactor = 0.1
aggregationMethod = avg