Frederic Branczyk
a266d4d2c5
Update Go dependencies
...
Signed-off-by: Frederic Branczyk <fbranczyk@gmail.com>
3 years ago
jinglina
ed24e51e7c
remove redundant type conversion ( #9126 )
...
Signed-off-by: jinglina <jinglinax@163.com>
3 years ago
George Brighton
bc0e76c8a3
Add AZ ID label to discovered EC2 targets ( #8896 )
...
* Add AZ ID to EC2 SD
Signed-off-by: George Brighton <george@gebn.co.uk>
3 years ago
austin ce
0544bdd6af
Add tests for xDS discovery
...
Signed-off-by: austin ce <austin.cawley@gmail.com>
3 years ago
austin ce
d0ffe2ed3e
Add base xDS discovery and kuma SD implementation
...
Signed-off-by: austin ce <austin.cawley@gmail.com>
3 years ago
Joey Freeland
5d0a12855b
Update discovery/gce/gce.go
...
Co-authored-by: Julien Pivotto <roidelapluie@gmail.com>
Signed-off-by: Joey Freeland <joey@free.land>
3 years ago
Lukas Kämmerling
263847e64a
hcloud discovery: Add new labelpresent label ( #9028 )
...
* Add new labelpresent label
Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
3 years ago
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>
3 years ago
Julius Volz
441e6cd7d6
Merge release-2.28 back into main ( #9035 )
...
* Cut v2.28.0-rc.0 (#8954 )
* Cut v2.28.0-rc.0
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Changelog fixup
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Address review comments
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Downgrade some features to enhancements
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Adjust release date to today
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Migrate HTTP SD docs from docs repo (#8972 )
See discussion in https://github.com/prometheus/docs/pull/1975
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* Cut Prometheus v2.28.0 (#8973 )
Signed-off-by: Julius Volz <julius.volz@gmail.com>
* HTTP SD: Allow charset in content type (#8981 )
* Added content type regex
Signed-off-by: Levi Harrison <git@leviharrison.dev>
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* fixed disappeared target groups in http_sd #9019
Signed-off-by: servak <fservak@gmail.com>
* Add a testcase for http-sd
Signed-off-by: servak <fservak@gmail.com>
* HTTP SD: Simplify logic of disappeared targetgroups (#9026 )
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* Fix logging after the move to go-kit/log (#9021 )
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
* Cut Prometheus v2.28.1 (#9034 )
Signed-off-by: Julius Volz <julius.volz@gmail.com>
Co-authored-by: Levi Harrison <git@leviharrison.dev>
Co-authored-by: Julien Pivotto <roidelapluie@inuits.eu>
Co-authored-by: servak <fservak@gmail.com>
3 years ago
Joey Freeland
8017dd7242
chore: always append interface ipv4 with api interface name
...
Signed-off-by: Joey Freeland <joey@free.land>
3 years ago
Levi Harrison
78d5a6d083
HTTP SD: Allow charset in content type ( #8981 )
...
* Added content type regex
Signed-off-by: Levi Harrison <git@leviharrison.dev>
3 years ago
Julien Pivotto
1deac8f570
HTTP SD: Add tests
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
3 years ago
Joey Freeland
77e25cf2e5
feat: gce metadata for additional interfaces
...
Signed-off-by: Joey Freeland <joey@free.land>
3 years ago
Julius Volz
8d98750e8f
Simplify float formatting for HTTP SD refresh interval ( #8961 )
...
Signed-off-by: Julius Volz <julius.volz@gmail.com>
3 years ago
Levi Harrison
4a4882d4c7
Replace godoc.org links
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
3 years ago
3Xpl0it3r
a0bac4b488
add kubeconfig support in discovery module ( #8811 )
...
Signed-off-by: 3Xpl0it3r <shouc.wang@hotmail.com>
3 years ago
Michal Wasilewski
3f686cad8b
fixes yamllint errors
...
Signed-off-by: Michal Wasilewski <mwasilewski@gmx.com>
3 years ago
Levi Harrison
faed8df31d
Enable reading consul token from file ( #8926 )
...
* Adopted common http client
Signed-off-by: Levi Harrison <git@leviharrison.dev>
4 years ago
Levi Harrison
bf1ef2e0f4
Changed log package
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
4 years ago
Levi Harrison
b5f6f8fb36
Switched to go-kit/log
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
4 years ago
Julien Pivotto
9444698ae2
http_sd ( #8839 )
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Mike Eves
ae081886fa
Fix up tests
...
Signed-off-by: Mike Eves <michael.eves@autotrader.co.uk>
4 years ago
Mike Eves
7941b350ba
Don't set label if ingressClassName is not set
...
Signed-off-by: Mike Eves <michael.eves@autotrader.co.uk>
4 years ago
Mike Eves
7e1111ff14
Update label from `class` to `class_name`
...
Signed-off-by: Mike Eves <michael.eves@autotrader.co.uk>
4 years ago
Austin Cawley-Edwards
301815e48b
Update prometheus-common and the consul HTTP client ( #8913 )
...
* Update to prometheus-common@v0.29.0
Signed-off-by: austin ce <austin.cawley@gmail.com>
4 years ago
Mike Eves
7e65ad3e43
Add class label to kubernetes ingress discovery
...
Signed-off-by: Mike Eves <michael.eves@autotrader.co.uk>
4 years ago
Frederic Hemberger
39a87fd9d2
consul_sd: Add namespace support for Consul Enterprise
...
Signed-off-by: Frederic Hemberger <mail@frederic-hemberger.de>
4 years ago
songjiayang
b781b5cac5
Refactor file discovery init function ( #8891 )
...
* Refactor file discovery init function
Combine to one init function like other discovery.
Signed-off-by: songjiayang <songjiayang1@gmail.com>
4 years ago
TJ Hoplock
dc22c65349
Add Linode Service Discovery ( #8846 )
...
* Add Linode Service Discovery
Signed-off-by: TJ Hoplock <t.hoplock@gmail.com>
4 years ago
kongxs
632678a461
Fix spelling mistake ( #8879 )
...
* Fix spelling mistake
Signed-off-by: kjinan <2008kongxiangsheng@163.com>
* Update discovery/kubernetes/endpoints.go
Co-authored-by: Julien Pivotto <roidelapluie@gmail.com>
Signed-off-by: kjinan <2008kongxiangsheng@163.com>
Co-authored-by: Julien Pivotto <roidelapluie@gmail.com>
4 years ago
kcx2366425574
17e230a6f2
fix actuel to actual
...
Signed-off-by: kcx2366425574 <18279911430@163.com>
4 years ago
Julien Pivotto
e1774b6f83
Fix the computation of prometheus_sd_discovered_targets
...
prometheus_sd_discovered_targets is wrongly calculated when there are
multiple SD configurations in place. One discovery manager can have
multiple groups coming from multiple service discoveries.
When multiple service discovery configs are used, we do not compute the
metric correctly, and instead just set the metric to one of the service
discoveries.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Hu Shuai
9d7d818629
Fix golint issues caused by typos ( #8769 )
...
Signed-off-by: Hu Shuai <hus.fnst@cn.fujitsu.com>
4 years ago
Nick Triller
15d328750a
Fix typo in SD docs
...
Signed-off-by: Nick Triller <nicktriller@gmail.com>
4 years ago
Nick Triller
fddf4918c0
Send empty targetgroup if nothing discovered
...
Signed-off-by: Nick Triller <nicktriller@gmail.com>
4 years ago
n888
7c028d59c2
Add lightsail service discovery ( #8693 )
...
Signed-off-by: N888 <drifto@gmail.com>
4 years ago
Marco Pracucci
4da5c25ea4
Upgrade prometheus/common to v0.21.0
...
Signed-off-by: Marco Pracucci <marco@pracucci.com>
4 years ago
Julien Pivotto
73237c04bf
scaleway_sd_config: be more cautious with pointers
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
code1305
9c705ffdfb
err fix if target creation fails
...
return right error if any target creation fails. Need to wrap the right error.
Signed-off-by: Anshul <anshulkhandelwal.nitj@gmail.com>
4 years ago
Bogdan Drutu
d1ced85d7a
Bump k8s.io/* from 0.20.5 to 0.21.0 ( #8714 )
...
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
4 years ago
Julien Pivotto
5bce801a09
Rename discovery/dockerswarm to discovery/moby ( #8691 )
...
This makes it clear that the dockerswarm package does more than docker
swarm, but does also docker.
I have picked moby as it is the upstream name: https://mobyproject.org/
There is no user-facing change, except in the case of a bad
configuration. Previously, a user who would have a bad docker sd config
would see an error like:
> field xx not found in type dockerswarm.plain
Now that error would be turned into:
> field xx not found in type moby.plain
While not perfect, it should at not be confusing between docker and
dockerswarm.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Julien Pivotto
d680880b31
Fix main branch tests ( #8669 )
...
I merged #8629 without noticing that circle ci did not run here.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Robert Jacob
b253056163
Implement Docker discovery ( #8629 )
...
* Implement Docker discovery
Signed-off-by: Robert Jacob <xperimental@solidproject.de>
4 years ago
Julien Pivotto
5a6d244b00
Scaleway SD: Add the ability to read token from file
...
Prometheus adds the ability to read secrets from files. This add
this feature for the scaleway service discovery.
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Andrew Starr-Bochicchio
0858657516
digitalocean_sd: Expose vpc for use in relabelling.
...
Signed-off-by: Andrew Starr-Bochicchio <a.starr.b@gmail.com>
4 years ago
Julien Pivotto
bab0fb81ef
Rename to or ID
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Julien Pivotto
d1c8550894
Scaleway SD: Add more labels to the instance role
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Julien Pivotto
990d01631f
Scaleway SD: Add instance test
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
4 years ago
Rémy Léone
f690b811c5
add support for scaleway service discovery ( #8555 )
...
Co-authored-by: Patrik <patrik@ptrk.io>
Co-authored-by: Julien Pivotto <roidelapluie@inuits.eu>
Signed-off-by: Rémy Léone <rleone@scaleway.com>
4 years ago
Rémy Léone
6962e44618
Discovery docs: add a pull requests examples section ( #8556 )
...
* add a pull requests examples section
Signed-off-by: Rémy Léone <rleone@scaleway.com>
4 years ago