prometheus/discovery/kubernetes
Daniele Sluijters f25a6baedb remote: Set User-Agent header in requests (#4891)
Currently Prometheus requests show up with a UA of Go-http-client/1.1
which isn't super helpful. Though the X-Prometheus-Remote-* headers
exist they need to be explicitly configured when logging the request in
order to be able to deduce this is a request originating from
Prometheus. By setting the header we remove this ambiguity and make
default server logs just a bit more useful.

This also updates a few other places to consistently capitalize the 'P'
in the user agent, as well as ensure we set a UA to begin with.

Signed-off-by: Daniele Sluijters <daenney@users.noreply.github.com>
2018-11-23 22:49:49 +08:00
..
client_metrics.go feat: added more k8s SD metrics 2018-09-20 22:28:51 +02:00
endpoints.go Upgrade k8s client to kubernetes-1.11.0 2018-08-02 10:25:27 +08:00
endpoints_test.go Add __meta_kubernetes_pod_phase label in discovery (#4824) 2018-11-06 14:40:24 +00:00
ingress.go Upgrade k8s client to kubernetes-1.11.0 2018-08-02 10:25:27 +08:00
ingress_test.go Upgrade k8s client to kubernetes-1.11.0 2018-08-02 10:25:27 +08:00
kubernetes.go remote: Set User-Agent header in requests (#4891) 2018-11-23 22:49:49 +08:00
kubernetes_test.go Change discovery subpackages to not use testify in tests (#4612) 2018-09-18 17:35:22 +02:00
node.go To keep comment of NodeLegacyHostIP for k8s node address 2018-08-02 10:25:28 +08:00
node_test.go Upgrade k8s client to kubernetes-1.11.0 2018-08-02 10:25:27 +08:00
pod.go Add __meta_kubernetes_pod_phase label in discovery (#4824) 2018-11-06 14:40:24 +00:00
pod_test.go Add __meta_kubernetes_pod_phase label in discovery (#4824) 2018-11-06 14:40:24 +00:00
service.go Upgrade k8s client to kubernetes-1.11.0 2018-08-02 10:25:27 +08:00
service_test.go *: move to go 1.11 (#4626) 2018-10-16 09:41:45 +02:00