Tobias Schmidt
287ec6e6cc
Fix outdated target_group naming in error message
...
The target_groups config has been renamed to static_configs, the error
message for overflow attributes should reflect that.
2017-05-31 11:01:13 +02:00
Julius Volz
240bb671e2
config: Fix overflow checking in global config ( #2783 )
2017-05-30 20:58:06 +02:00
Conor Broderick
6766123f93
Replace regex with Secret type and remarshal config to hide secrets ( #2775 )
2017-05-29 12:46:23 +01:00
Brian Akins
27d66628a1
Allow limiting Kubernetes service discover to certain namespaces
...
Allow namespace discovery to be more easily extended in the future by using a struct rather than just a list.
Rename fields for kubernetes namespace discovery
2017-04-27 07:41:36 -04:00
Julius Volz
eb14678a25
Make remote read/write use config.HTTPClientConfig
2017-03-20 13:37:50 +01:00
Julius Volz
02395a224d
[WIP] Remote Read
2017-03-20 13:13:44 +01:00
Julius Volz
525da88c35
Merge pull request #2479 from YKlausz/consul-tls
...
Adding consul capability to connect via tls
2017-03-20 11:40:18 +01:00
Goutham Veeramachaneni
5c89cec65c
Stricter Relabel Config Checking for Labeldrop/keep ( #2510 )
...
* Minor code cleanup
* Labeldrop/Labelkeep Now *Only* Support Regex
Ref promtheus/prometheus#2368
2017-03-18 22:32:08 +01:00
yklausz
75880b594f
Adding consul capability to connect via tls
2017-03-17 22:37:18 +01:00
Michael Kraus
04eadf6e20
Allow Marathon SD without bearer_token and bearer_token_file
2017-03-02 13:17:19 +01:00
Michael Kraus
47bdcf0f67
Allow the use of bearer_token or bearer_token_file for MarathonSD
2017-03-02 09:44:20 +01:00
Julius Volz
e9476b35d5
Re-add multiple remote writers
...
Each remote write endpoint gets its own set of relabeling rules.
This is based on the (yet-to-be-merged)
https://github.com/prometheus/prometheus/pull/2419 , which removes legacy
remote write implementations.
2017-02-20 13:23:12 +01:00
Alex Somesan
b22eb65d0f
Cleaner separation between ServiceAccount and custom authentication in K8S SD ( #2348 )
...
* Canonical usage of cluster service-account in K8S SD
* Early validation for opt-in custom auth in K8S SD
* Fix typo in condition
2017-01-19 10:52:52 +01:00
Fabian Reinartz
7eb849e6a8
Merge pull request #2307 from joyent/triton_discovery
...
Add Joyent Triton discovery
2017-01-18 05:08:11 +01:00
Richard Kiene
f3d9692d09
Add Joyent Triton discovery
2017-01-17 20:34:32 +00:00
Björn Rabenstein
ad40d0abbc
Merge pull request #2288 from prometheus/limit-scrape
...
Add ability to limit scrape samples, and related metrics
2017-01-08 01:34:06 +01:00
Brian Brazil
30448286c7
Add sample_limit to scrape config.
...
This imposes a hard limit on the number of samples ingested from the
target. This is counted after metric relabelling, to allow dropping of
problemtic metrics.
This is intended as a very blunt tool to prevent overload due to
misbehaving targets that suddenly jump in sample count (e.g. adding
a label containing email addresses).
Add metric to track how often this happens.
Fixes #2137
2016-12-16 15:10:09 +00:00
Tristan Colgate-McFarlane
4d9134e6d8
Add labeldrop and labelkeep actions. ( #2279 )
...
Introduce two new relabel actions. labeldrop, and labelkeep.
These can be used to filter the set of labels by matching regex
- labeldrop: drops all labels that match the regex
- labelkeep: drops all labels that do not match the regex
2016-12-14 10:17:42 +00:00
Fabian Reinartz
cc35104504
config: fix naming and typo
2016-11-25 11:04:33 +01:00
Fabian Reinartz
3fb4d1191b
config: rename AlertingConfig, resolve file paths
2016-11-24 15:19:37 +01:00
Fabian Reinartz
183c5749b9
config: add Alertmanager configuration
2016-11-23 18:23:37 +01:00
Fabian Reinartz
200bbe1bad
config: extract SD and HTTPClient configurations
2016-11-23 18:23:37 +01:00
Fabian Reinartz
ec66082749
Merge branch 'ec2_sd_profile_support' of https://github.com/Ticketmaster/prometheus into Ticketmaster-ec2_sd_profile_support
2016-11-21 11:49:23 +01:00
Kraig Amador
bec6870ed4
ec2_sd_configs: Support profiles for configuring the ec2 service
2016-11-03 08:38:02 -07:00
beorn7
b2f28a9e82
Merge branch 'release-1.2'
2016-11-03 14:42:15 +01:00
Brian Brazil
d1ece12c70
Handle null Regex in the config as the empty regex. ( #2150 )
2016-11-03 13:34:15 +00:00
bekbulatov
2bc12fa2fb
Set timeout for marathon_sd
2016-10-24 11:27:08 +01:00
bekbulatov
c689b35858
Merge branch 'master' into marathon_tls
2016-10-24 10:37:32 +01:00
Matti Savolainen
aabf4a419b
use LabelNam.IsValid() instead of LabelNameRE and MatchString instead of Match
2016-10-19 16:30:52 +03:00
Matti Savolainen
ec6524ce74
test the labelTarget regex to make sure it properly validates pre-interpolated label names.
2016-10-19 13:32:42 +03:00
Matti Savolainen
f867c1fd58
formating and text fixes, adjust regexp
2016-10-19 13:31:55 +03:00
Matti Savolainen
56907ba6e3
Add interpolation to good test config. Fix regex
2016-10-19 01:19:19 +03:00
Matti Savolainen
7a36af1c85
add comment about interpolation
2016-10-19 00:42:49 +03:00
Matti Savolainen
3b8e7c1277
Merge branch 'master' of https://github.com/prometheus/prometheus into bug/target_label_unmarshal
2016-10-19 00:33:52 +03:00
Matti Savolainen
5a1e909b5d
Make TargetLabel in RelabelConfig a string
2016-10-19 00:33:22 +03:00
Björn Rabenstein
d93f73874f
Merge pull request #2093 from dominikschulz/spelling
...
Trivial spelling corrections
2016-10-18 22:46:03 +02:00
Dominik Schulz
182e17958a
Trivial spelling corrections and a small comment.
2016-10-18 20:14:38 +02:00
bekbulatov
ac702f66eb
Resolve merge conflicts
2016-10-18 14:14:24 +01:00
Fabian Reinartz
1b6dfa32a9
config: rename role 'endpoint' to 'endpoints'
2016-10-17 11:53:49 +02:00
Frederic Branczyk
2e18c81a00
config: adapt unit tests
2016-10-17 10:32:10 +02:00
Fabian Reinartz
b24602f713
kubernetes: merge back into single configuration
2016-10-17 10:32:10 +02:00
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.
2016-10-17 10:32:10 +02:00
Dominik Schulz
72cbf8af6f
Fix small copy and paste error
2016-10-08 08:49:00 +02:00
bekbulatov
01b53c1180
Add tls support
2016-10-07 13:40:22 +01:00
Brian Brazil
77605649a9
Add support for remote write relabelling.
...
Switch back to a single remote writer, as we were only ever meant to
have one and the relabel semantics are clearer that way.
2016-10-05 07:43:19 +01:00
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.
2016-09-19 22:47:51 +02:00
Tobias Schmidt
874cb44bb6
Merge pull request #1996 from ton31337/Fix/allow_numbers_as_first_letter
...
Allow number to be the first letter as well for `job_name`
2016-09-16 11:08:52 -04:00
Donatas Abraitis
1aa8898b66
Allow number to be the first letter as well for `job_name`
2016-09-16 14:06:47 +03:00
Ingo Gottwald
3b546d061f
Add support for GCE discovery
2016-09-16 08:55:33 +02:00
Alexey Miroshkin
e29d9394e5
Forbid invalid relabel configurations
...
This fix adds check if target_label value is set in case if action is replace or
hashmod
Issue [#1900 ]
2016-08-29 16:56:06 +02:00
Fabian Reinartz
be596f82b4
Merge pull request #1783 from knyar/json
...
Allow URLs in targets defined via a JSON file
2016-08-10 09:42:17 +02:00
Frederic Branczyk
b655aa002f
introduce top level alerting config node
2016-08-09 14:19:25 +02:00
Frederic Branczyk
679d225c8d
allow relabeling of alerts
...
in case of dropping don't even enqueue them
2016-08-09 14:18:31 +02:00
Fabian Reinartz
7a0b3af0b7
config: validate Kubernetes role correctly.
2016-07-18 22:24:41 +09:00
Fabian Reinartz
919558f601
config: remove deprecated `target_groups` configuration
2016-07-14 09:55:00 +09:00
Fabian Reinartz
7221228843
discovery/kubernetes: select between discovery role
...
This adds `role` field to the Kubernetes SD config, which indicates
which type of Kubernetes SD should be run.
This no longer allows discovering pods and nodes with the same SD
configuration for example.
2016-07-05 14:22:12 +02:00
Anton Tolchanov
772a3af38f
Allow URLs in targets defined via a JSON file
...
This enables defining `blackbox_exporter` targets (which can be URLs,
because of relabeling) in a JSON file.
Not sure if this is the best approach, but current behaviour is
inconsistent (`UnmarshalYAML` does not have this check) and breaks
officially documented way to use `blackbox_exporter`.
2016-07-04 00:05:57 +03:00
Ali Reza
98c156c361
reorder config validation, move checkOverflow before any other validation
2016-06-13 10:02:20 +07:00
Fabian Reinartz
0f21bd31ca
config: deprecate `target_groups` for `static_configs`
...
This change deprecates the `target_groups` option in favor
of `static_configs`. The old configuration is still accepted
but prints a warning.
Configuration loading errors if both options are set.
2016-06-08 15:55:25 +02:00
Jimmi Dyson
206bcfcdaa
Kubernetes SD: Remove kubeletPort config option
2016-06-07 12:34:55 +01:00
Ali Reza
c81b4e8a87
change config names to files for consistency
2016-05-30 07:47:58 +07:00
Gregory G. Tseng
7997c14b0d
Add ServerName into TLS Config
2016-05-26 14:24:49 -07:00
Seth Miller
0988e3b937
Add support for Azure discovery
...
This change adds the ability to do target discovery with Microsoft's Azure platform.
2016-04-06 22:47:02 -05:00
Fabian Reinartz
37c709f917
Fix global config YAML issues
2016-02-15 14:08:25 +01:00
Fabian Reinartz
44a5e860ed
Fix scrape timeout config checks
2016-02-15 12:07:46 +01:00
Julius Volz
829a029dda
Update two more __meta_dns_srv_name references.
...
Although they are only in examples/tests and don't affect anything, they
could be confusing (the label has been renamed in the rest of the code a
while ago).
2016-02-14 22:20:39 +01:00
Fabian Reinartz
e26e4b6e89
Restrict scrape timeout to interval length
2016-02-12 12:52:22 +01:00
beorn7
a7408bfb47
Unify duration parsing
...
It's actually happening in several places (and for flags, we use the
standard Go time.Duration...). This at least reduces all our
home-grown parsing to one place (in model).
2016-01-29 15:41:50 +01:00
Julien Dehee
061fe2f364
Support AirBnB's Smartstack Nerve client for SD
...
nerve's registration format differs from serverset. With this commit
there is now a dedicated treecache file in util,
and two separate files for serverset and nerve.
Reference:
https://github.com/airbnb/nerve
2016-01-18 14:07:28 +01:00
Fabian Reinartz
4d1c9296d5
Add new defaults for relabel configurations
2015-11-16 13:16:13 +01:00
Brian Brazil
fd2bd81cd8
Allow all instance labels in target groups
...
With the blackbox exporter, the instance label will commonly
be used for things other than hostnames so remove this restriction.
https://example.com or https://example.com/probe/me are some examples.
To prevent user error, check that urls aren't provided as targets
when there's no relabelling that could potentically fix them.
2015-11-07 14:35:20 +00:00
Fabian Reinartz
f2a8261cdb
Merge pull request #1177 from fabric8io/kubernetes-discovery
...
Kubernetes SD authentication options cleanup
2015-10-24 20:32:25 +02:00
Fabian Reinartz
180da1ba65
Add overflow check in TLS config
2015-10-24 17:12:34 +02:00
Jimmi Dyson
87940ec213
Kubernetes SD: Rename `masters` to `api_servers` in config
2015-10-24 14:41:14 +01:00
Jimmi Dyson
7ff5cc66ea
Kubernetes SD authentication options cleanup
2015-10-23 16:47:52 +01:00
Brian Brazil
1ddf75240d
config: Don't hide username, it's not secret.
...
Usernames are not generally considered to be secrets,
and treating them as secrets may lead to confusion
as to how secure they are. Obscuring them also makes
debugging harder.
2015-10-08 15:13:21 +01:00
Matt Jibson
dcb4856d72
Add SD for Amazon EC2 instances
2015-10-06 18:36:17 -04:00
Julius Volz
dac26cef71
Rename global "labels" config option to "external_labels".
2015-09-29 20:54:20 +02:00
Matt Jibson
0e99fa6c46
Allow labelmap action
2015-09-21 15:41:19 -04:00
Jimmi Dyson
ec04ba38a2
Kubernetes SD config check
2015-09-09 13:24:44 +01:00
Jimmi Dyson
a1574aa2b3
Move TLS options to scrape config
...
Fixes #1013 , fixes #989
2015-09-09 09:52:21 +01:00
Fabian Reinartz
1ef5ed0cf2
Merge pull request #1048 from xperimental/fix/marathon-config
...
Fix parsing Marathon SD config
2015-09-06 20:09:46 +02:00
Robert Jacob
eb7416e71f
Fix missing unmarshal for Marathon SD config.
2015-09-06 20:02:22 +02:00
Jimmi Dyson
d7a7fd4589
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.
2015-09-04 11:31:20 +01:00
Julius Volz
f63a899744
Change config regexes to full-string matches.
...
This anchors all regular expressions entered via the config to match a
full string vs. a substring.
THIS IS A BREAKING CHANGE!
Fixes part of https://github.com/prometheus/prometheus/issues/996
2015-09-01 15:46:41 +02:00
Julius Volz
995d3b831d
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.
2015-08-26 12:44:46 +02: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
ac0be60bb9
Add license headers
2015-08-20 13:03:56 +02:00
Fabian Reinartz
139f27bf8a
Increase default retry interval for file SD
...
The automatic refresh is a safety mechanism in case
file watches fail. As they seem to be working well the
interval can be increased.
2015-08-16 15:06:26 +02:00
Fabian Reinartz
3c6dd161d7
Scrape all services on empty services list.
2015-08-14 17:39:41 +02:00
Fabian Reinartz
b964da4b75
Merge pull request #905 from fabric8io/kubernetes-discovery
...
Kubernetes discovery
2015-08-13 15:08:32 +02:00
Fabian Reinartz
24e91720ad
Merge pull request #980 from prometheus/map-labels
...
Retrieval: Add relabel action to map labels names with a regex.
2015-08-13 14:36:59 +02:00
Brian Brazil
4e70a0a14e
Retrieval: Add relabel action to map label names with a regex.
...
The intended use case is where a user has tags/labels coming
from metadata in Kubernetes or EC2, and wants to make
some subset of them into target labels.
2015-08-13 13:19:11 +01:00
Brian Brazil
43449b0581
config: Update tests/examples to use __tmp_
2015-08-13 10:39:21 +01:00
Jimmi Dyson
923f8111d4
Initial Kubernetes discovery
...
Fixes #904
2015-08-13 10:38:52 +01:00
Fabian Reinartz
cdcfada2ac
Merge pull request #965 from prometheus/fabxc/relpath
...
Resolve relative paths on configuration loading
2015-08-10 19:43:42 +02:00
Fabian Reinartz
73f1cc807d
Check token and cert file existence in promtool
2015-08-10 11:42:29 +02:00
Fabian Reinartz
54202bc5a8
Merge pull request #902 from xperimental/feature/marathon-discovery
...
retrieval/discovery: Service discovery using marathon API
2015-08-10 01:43:37 +02:00
Robert Jacob
4d0f974c42
Add service discovery using Marathon API.
2015-08-10 01:36:24 +02:00