Commit graph

16 commits

Author SHA1 Message Date
Jimmi Dyson 6c299c02c3 Kubernetes SD: Rename masters to api_servers in config 2016-01-11 16:48:24 +01:00
Jimmi Dyson 1faf160a5c Kubernetes SD authentication options cleanup 2016-01-11 16:48:24 +01:00
Jimmi Dyson c81610813e Kubernetes SD: Use node name as instance label 2016-01-11 16:48:23 +01:00
Julius Volz f4d79f1376 Fix SD mechanism source prefix handling.
The prefixed target provider changed a pointerized target group that was
reused in the wrapped target provider, causing an ever-increasing chain
of source prefixes in target groups from the Consul target provider.

We now make this bug generally impossible by switching the target group
channel from pointer to value type and thus ensuring that target groups
are copied before being passed on to other parts of the system.

I tried to not let the depointerization leak too far outside of the
channel handling (both upstream and downstream) because I tried that
initially and caused some nasty bugs, which I want to minimize.

Fixes https://github.com/prometheus/prometheus/issues/1083
2016-01-11 16:48:22 +01:00
Fabian Reinartz f4ddf1a1d8 Switch to common/log 2016-01-11 16:48:21 +01:00
Jimmi Dyson 88c6da77f9 Kubernetes SD example: separate out cluster level components & services 2016-01-11 16:48:20 +01:00
Jimmi Dyson 0ae051994d Clean up kubernetes http response bodies 2016-01-11 16:48:14 +01:00
Jimmi Dyson 609db27948 Move TLS options to scrape config
Fixes #1013, fixes #989
2016-01-11 16:48:14 +01:00
Jimmi Dyson 852dfd99e2 Kubernetes SD improvements
* Support multiple masters with retries against each master as required.
* Scrape masters' metrics.
* Add role meta label for node/service/master to make it easier for relabeling.
2016-01-11 16:48:13 +01:00
Julius Volz 2ad4987e09 Fix "go vet" errors.
I ignored all errors of the type "composite literal uses unkeyed
fields". Most of them are wrong because of
https://github.com/golang/go/issues/9171.
2016-01-11 16:48:11 +01:00
Julius Volz bb0ba8d68f Fix most golint warnings.
This is with `golint -min_confidence=0.5`.

I left several lint warnings untouched because they were either
incorrect or I felt it was better not to change them at the moment.
2016-01-11 16:48:11 +01:00
Fabian Reinartz 438e232c9b Fix grouping of import blocks 2015-08-22 09:42:45 +02:00
Fabian Reinartz 306e8468a0 Switch from client_golang/model to common/model 2015-08-21 13:33:38 +02:00
Fabian Reinartz 0f5022c091 Add missing Kubernetes doc strings 2015-08-18 14:37:28 +02:00
Fabian Reinartz f269943950 Adjust Kubernetes SD to pipeline changes 2015-08-14 13:30:27 +02:00
Jimmi Dyson 923f8111d4 Initial Kubernetes discovery
Fixes #904
2015-08-13 10:38:52 +01:00