apache / trafficcontrol

Apache Traffic Control is an Open Source implementation of a Content Delivery Network
https://trafficcontrol.apache.org/
Apache License 2.0
1.09k stars 344 forks source link

Traffic Stats can not get metric of deliveryservice #3183

Open jindov opened 5 years ago

jindov commented 5 years ago

Hi,

I got this issue when deploy Traffic Stats, TS can get the metric of cache_stats and daily_stats, but it can not get the metric of deliveryservice_stats. TS's log report as follow:

[ERROR] 2019-01-07 08:10:50 could not unmarshall deliveryservice stats JSON - json: cannot unmarshal array into Go struct field .value of type string

PS: I'm using the latest commit in master

Thanks

ocket8888 commented 5 years ago

What endpoint are you requesting? Do you still have this issue today?

smalenfant commented 4 years ago

I'm getting something similar on master (October 27th 2020).


traffic_stats    | [INFO] 2020-10-28 19:26:47 Collected 674 cache stats values for cdn1 @ 1603913207
traffic_stats    | [INFO] 2020-10-28 19:26:47 Collected 1791 deliveryservice stats values for cdn1 @ 1603913207
traffic_stats    | [ERROR] 2020-10-28 19:26:49 could not unmarshall cache stats JSON - invalid character '<' looking for beginning of value
``

Just to be aware, Traffic Monitor is still version 3.1 - Will update once I update it.
smalenfant commented 4 years ago

Restarted Traffic Stats and could not reproduce (enabled debug).