1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/collectd/data/conf.d/weather.conf
2017-03-23 16:49:18 +08:00

23 lines
882 B
Plaintext

LoadPlugin curl_json
<Plugin curl_json>
<URL "https://query.yahooapis.com/v1/public/yql?q=select%20item.condition%20from%20weather.forecast%20where%20woeid%3D2151330%20and%20u%3D'c'&format=json">
Instance "Beijing"
<Key "query/results/channel/item/condition/temp">
Type "gauge"
</Key>
</URL>
<URL "https://query.yahooapis.com/v1/public/yql?q=select%20item.condition%20from%20weather.forecast%20where%20woeid%3D2151849%20and%20u%3D'c'&format=json">
Instance "Shanghai"
<Key "query/results/channel/item/condition/temp">
Type "gauge"
</Key>
</URL>
<URL "https://query.yahooapis.com/v1/public/yql?q=select%20item.condition%20from%20weather.forecast%20where%20woeid%3D23511745%20and%20u%3D'c'&format=json">
Instance "Silicon_Valley"
<Key "query/results/channel/item/condition/temp">
Type "gauge"
</Key>
</URL>
</Plugin>