prometheus/discovery/hetzner
Julius Volz 179b2155d1
Fix: Use json.Unmarshal() instead of json.Decoder (#9033)
* Fix: Use json.Unmarshal() instead of json.Decoder

See https://ahmet.im/blog/golang-json-decoder-pitfalls/

json.Decoder is for JSON streams, not single JSON objects / bodies.

Signed-off-by: Julius Volz <julius.volz@gmail.com>

* Revert modifications to targetgroup parsing

Signed-off-by: Julius Volz <julius.volz@gmail.com>
2021-07-02 09:38:14 +01:00
..
hcloud.go Switched to go-kit/log 2021-06-11 12:28:36 -04:00
hcloud_test.go Switched to go-kit/log 2021-06-11 12:28:36 -04:00
hetzner.go Switched to go-kit/log 2021-06-11 12:28:36 -04:00
mock_test.go Add hetzner service discovery (#7822) 2020-08-21 15:49:19 +02:00
robot.go Fix: Use json.Unmarshal() instead of json.Decoder (#9033) 2021-07-02 09:38:14 +01:00
robot_test.go Switched to go-kit/log 2021-06-11 12:28:36 -04:00