Fabian Reinartz
7bd9508c9b
discovery: move TargetProvider and multi-constructor
8 years ago
Fabian Reinartz
bd0048477c
discovery: move remaining SDs into own package
8 years ago
Fabian Reinartz
a1eec447a4
discovery: fix+consolidate Zookeeper discoveries
8 years ago
Fabian Reinartz
b4d7ce1370
discovery: respect context cancellation everywhere
...
This also removes closing of the target group channel everywhere
as the contexts cancels across all stages and we don't care about
draining all events once that happened.
8 years ago
Fabian Reinartz
bc7bd7202c
discovery: terminate senders before closing channel
...
Fixes #2200
8 years ago
Frederic Branczyk
0fcea6e9fb
retrieval/discovery/kubernetes: fix cache state unknown behavior ( #2180 )
...
* retrieval/discovery/kubernetes: fix cache state unknown behavior
* retrieval/discovery/kubernetes: extract type casting
* retrieval/discovery/kubernetes: add tests for possible regressions
8 years ago
Fabian Reinartz
7ecc271411
Move Fatalf call into main test goroutine
8 years ago
Fabian Reinartz
530cdba103
kubernetes: only use one error logging handler
8 years ago
Kraig Amador
bec6870ed4
ec2_sd_configs: Support profiles for configuring the ec2 service
8 years ago
beorn7
0fdb74c069
Adjust dns.go to new miekg/dns package and improve error handling.
...
When hitting the 64kiB limit of DNS, the error message so far was
really misleading.
8 years ago
Brian Brazil
64263f280d
Add scrape_samples_scraped to indicate samples scraped. ( #2123 )
8 years ago
Brian Brazil
bbec65d454
Call SD metrics refresh rather than scrape. ( #2120 )
...
This avoids confusion with scrape_duration_seconds, and
is more in line with the API naming.
8 years ago
bekbulatov
2bc12fa2fb
Set timeout for marathon_sd
8 years ago
Dominik Schulz
eb10ff9871
Also handle service update in endpoints.go
8 years ago
Dominik Schulz
f002fe186a
Add Marathon-SD metrics. ( #2106 )
8 years ago
Mitsuhiro Tanda
296644adeb
Expose ec2_instance_type ( #2107 )
8 years ago
Dominik Schulz
36de163900
Add File-SD metrics ( #2103 )
...
* Add File-SD metrics
* Count read errors, not scan errors.
8 years ago
Dominik Schulz
3d0fb0cf17
Avoid too generic label type.
8 years ago
Dominik Schulz
e1e30f12cd
Add Kubernetes-SD metrics.
8 years ago
Dominik Schulz
552ab61fa1
Change SD metric names to make logical grouping more visible. ( #2102 )
8 years ago
Dominik Schulz
0c69227616
Add Consul-SD metrics ( #2097 )
...
* Add Consul-SD metrics
* Remove unnecessary metric and add labels to summary.
* Do not stutter
8 years ago
Dominik Schulz
255a8c8b4c
Fix small typo in EC2 SD metric name ( #2100 )
8 years ago
Dominik Schulz
00e486a05b
Add Azure-SD metrics ( #2099 )
8 years ago
Dominik Schulz
163d5a8977
Add EC2 SD metrics ( #2095 )
...
* Add EC2 SD metrics
* Address review comments
8 years ago
Fabian Reinartz
3c8140f2e6
kubernetes: fix typo in endpoint switch case
8 years ago
Fabian Reinartz
ce45040e47
kubernetes: fix missing port labels
...
This commit fixes endpoint port labeling, adjusts tests accordingly
and enhances test delta printing
8 years ago
Frederic Branczyk
8f576a8510
retrieval: add kubernetes endpoint discovery tests
8 years ago
Frederic Branczyk
08fa4eaa92
retrieval: add kubernetes pod discovery tests
8 years ago
Frederic Branczyk
3762e39ce5
retrieval: add kubernetes service discovery tests
8 years ago
Frederic Branczyk
397072a482
retrieval: add kubernetes node discovery tests
8 years ago
Frederic Branczyk
cc46058802
retrieval: kubernetes nodes are not namespaced
8 years ago
Frederic Branczyk
a318d9ad27
retrieval: fix pod label and annotation prefixes
8 years ago
Fabian Reinartz
b24602f713
kubernetes: merge back into single configuration
8 years ago
Fabian Reinartz
a9cfb66b28
kubernetes: add node discovery
8 years ago
Fabian Reinartz
d896a654f9
kubernetes: Add discovery of services
8 years ago
Fabian Reinartz
6d269ed870
kubernetes: infer pod information in endpoints discovery
8 years ago
Fabian Reinartz
7c439a9060
kubernetes: use and vendor 1.5 client
8 years ago
Fabian Reinartz
de22524e57
kubernetes: add KubernetesV2 endpoints
8 years ago
Fabian Reinartz
2331701b50
kubernetes: Add K8S v2 pod discovery
...
This adds plumbing for a parallel version of the new K8S SD
and adds pod discovery as the first role.
8 years ago
Dominik Schulz
bfa7099616
Report GCE instance metdata ( #2084 )
...
* Report GCE instance metdata
* Fix spelling acording to code review guidelines
* Address review comments
8 years ago
Dominik Schulz
c73aa82589
Add GCE Instance Status
8 years ago
bekbulatov
01b53c1180
Add tls support
8 years ago
Roman Vynar
db63a4bd2a
Do not fail Consul discovery on Prometheus startup when Consul is down.
8 years ago
Dominik Schulz
f6fbcf9aa2
Expose ec2_instance_state
8 years ago
Tom Wilkie
4520e12440
Add HTTP Basic Auth & TLS support to the generic write path. ( #1957 )
...
* Add config, HTTP Basic Auth and TLS support to the generic write path.
- Move generic write path configuration to the config file
- Factor out config.TLSConfig -> tlf.Config translation
- Support TLSConfig for generic remote storage
- Rename Run to Start, and make it non-blocking.
- Dedupe code in httputil for TLS config.
- Make remote queue metrics global.
8 years ago
Matt Bostock
4fc619b605
Scrape: Remove JSON from Accept request header
...
JSON is no longer supported as an exposition format [1] [2] [3]. Remove
it from the `Accept` header added to requests when scraping targets.
[1]: https://github.com/prometheus/prometheus/blob/master/CHANGELOG.md#100--2016-07-18
[2]: https://prometheus.io/docs/instrumenting/exposition_formats/#historical-versions
[3]: https://docs.google.com/document/d/1ZjyKiKxZV83VI9ZKAXRGKaUKK2BIWCT7oiGBKDBpjEY/edit?usp=sharing
8 years ago
Ingo Gottwald
3b546d061f
Add support for GCE discovery
8 years ago
Tobias Schmidt
29ced0090f
Fix common english misspellings
8 years ago
Tobias Schmidt
27074863b4
Print url.URLs correctly in tests
8 years ago
Tobias Schmidt
8f3b62bfe4
Simplify struct initialization
8 years ago