Goutham Veeramachaneni
bee6864c14
Make the date returned by snapshot script friendly
...
Fixes #3568
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
7 years ago
Ed Schouten
bb724f1bef
Deprecate DeduplicateSeriesSet() in favor of NewMergeSeriesSet().
...
Federation makes use of dedupedSeriesSet to merge SeriesSets for every
query into one output stream. If many match[] arguments are provided,
many dedupedSeriesSet objects will get chained. This has the downside of
causing a potential O(n*k) running time, where n is the number of series
and k the number of match[] arguments.
In the mean time, the storage package provides a mergeSeriesSet that
accomplishes the same with an O(n*log(k)) running time by making use of
a binary heap. Let's just get rid of dedupedSeriesSet and change all
existing callers to use mergeSeriesSet.
7 years ago
Fabian Reinartz
838fc5a4d1
Merge pull request #3300 from alcortesm/update-testing-utils-to-go1.9
...
testutil: simplify code
7 years ago
Alberto Cortés
29da2fb9cd
testutil: update to go1.9 testing.Helper
7 years ago
Alberto Cortés
8f6a9f7833
config: simplify tests by using testutil.NotOk ( #3289 )
...
Also include filename in all LoadFile errors
Also add mesage to testuitl.NotOk so we can identify failing tests when
using table driven tests.
7 years ago
Tom Wiedenbein
937ac8c060
fixed bug with initialization of queueconfig
...
QueueConfigs would only ever initialize to the default settings, and would not pick up their respective values from YAML.
7 years ago
Goutham Veeramachaneni
e0d917e2f5
Merge pull request #3523 from Gouthamve/clean-tomb
...
Add endpoint to cleanup tombstones
7 years ago
Conor Broderick
08a4e0693b
Merge pull request #3556 from prometheus/remove-obsolete-todo
...
Remove obsolete TODO in API code
7 years ago
Shubheksha Jalan
35c1926d14
use httptest.NewRequest, remove http.ReadRequest ( #3557 )
7 years ago
Goutham Veeramachaneni
f0599d4dbf
Incorporate review-feedback
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
7 years ago
Julius Volz
ab11a457e8
Remove obsolete TODO in API code
...
In https://github.com/prometheus/prometheus/pull/3230/files , contexts were
added to the Querier() method instead, and Cortex is fine with that.
7 years ago
James Turnbull
330735aca6
Added another full link to the configuration docs ( #3553 )
7 years ago
Amy Holt
607a675617
Add prefix to relative 3 URLs ( #3551 )
7 years ago
Conor Broderick
7417c60071
Merge pull request #3548 from whoward/fix-marathon-1-5
...
Parse the normalized container.PortMappings presented by the Marathon 1.5.x API
7 years ago
Will Howard
6a80fc24cf
Parse the normalized container.PortMappings presented by the Marathon 1.5.x API
...
Fixes #3465
7 years ago
Conor Broderick
59d4c539d1
Added rule name to rule error for easier debugging ( #3549 )
7 years ago
Krasi Georgiev
740662644e
write to temp dir and remove it at the end.
...
Signed-off-by: Krasi Georgiev <krasi.root@gmail.com>
7 years ago
Goutham Veeramachaneni
311edc5a38
Merge branch 'master' into clean-tomb
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
7 years ago
Brian Brazil
30b4439bbd
Remove rule_type label from rule metrics.
...
This is not really needed now that we have rule groups
to distinguish rules.
7 years ago
Brian Brazil
b97f4cf48c
Add metrics for rule group interval and last duration.
7 years ago
Brian Brazil
0a42a9fc8f
Copy over rule group duration on reload.
...
This is currently getting lost, this will soon be in a metric and we
don't want it dropping to 0 on every reload.
7 years ago
Brian Brazil
aa370fa568
Clarify metric names around rule groups.
...
Make it clear they're about overall rule groups.
7 years ago
Goutham Veeramachaneni
d8515b2580
Move Admin APIs to v1
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
7 years ago
Brian Brazil
d7b3df5ae1
Fix staticcheck errors
7 years ago
Goutham Veeramachaneni
41b8f1f8fe
Add admin API docs
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
7 years ago
Krasi Georgiev
29506e0bca
one meaningless write to the config file to trigger anothe fsnotify ( #3492 )
7 years ago
Matthias Rampke
cae4538b3e
Docs: state that all regular expressions are RE2. ( #3518 )
...
We already mentioned that regular expressions are RE2 for
[relabeling][0], but left open what the regular expression syntax
anywhere else is.
In the querying examples and reference, make it explicit that _all_
regular expressions are RE2.
[0]: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
7 years ago
Krasi Georgiev
2c2a962da3
main.go integration test for Startup interrupting.
7 years ago
Vickenty Fesunov
9146760aab
Bump required golang version in the README ( #3528 )
...
10b2e8c637
pulled new TSDB, which uses `math/bits` package introduced in Go 1.9
7 years ago
Goutham Veeramachaneni
3de10e3b44
Add CleanTombstones API endpoint
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
7 years ago
Goutham Veeramachaneni
36190239f6
Merge pull request #3524 from Gouthamve/rule-glob
...
Use the files globbed files and not the files in cfg
7 years ago
Goutham Veeramachaneni
823b7f90b3
Use the files globbed files and not the files in cfg
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
7 years ago
Goutham Veeramachaneni
9f92a71053
vendor: update TSDB
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
7 years ago
Goutham Veeramachaneni
a1be5db99f
vendor: Update grpc gateway deps
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
7 years ago
Julien Pivotto
52c0121890
Correctly handle empty data set in the console view ( #3521 )
...
When there is an empty result set, the Prometheus server replies with
{"status":"success","data":{"resultType":"vector","result":null}}
That "null" reply was not handled correctly by the graphing library.
This commit handles that case and shows "no data" in the UI console view
instead of throwing an error in the browser javascript console.
Fixes #3515
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
7 years ago
Fabian Reinartz
b3ff5f6b0e
Merge pull request #3507 from prometheus/rulepromql
...
Make PromQL metrics un-global, remove rules dep on promql.Engine
7 years ago
Roman Demachkovych
e0ad66f5a6
fix link name
7 years ago
Roman Demachkovych
370d045f5d
Change repo link
7 years ago
Fabian Reinartz
62461379b7
rules: decouple notifier packages
...
The dependency on the notifier packages caused a transitive dependency
on discovery and with that all client libraries our service discovery
uses.
7 years ago
James Turnbull
47311bf005
Update configuration.md ( #3513 )
...
1. Removed https://prometheus.io prefix
2. Fixed broken file discovery link.
7 years ago
Lovisa Svallingson
2c2702e22b
Align columns in Targets view ( #3445 )
...
- rebase and resolve merge conflicts
7 years ago
Tom Wilkie
9d4e332137
Merge pull request #3495 from tomwilkie/pod-uid-discovery-master
...
Include Pod UID in the discovery metadata.
7 years ago
Tom Wilkie
7d4f7c4b71
Update docs for __meta_kubernetes_pod_uid
7 years ago
Tom Wilkie
099c50ce93
Avoid empty pod UID in test.
7 years ago
Tom Wilkie
9811e90d65
Fix tests.
7 years ago
Fabian Reinartz
4d964a0a0d
rules: make glob expansion a concern of main
7 years ago
Fabian Reinartz
bd9f7460eb
rules: remove config package dependency
7 years ago
Fabian Reinartz
2d0e3746ac
rules: remove dependency on promql.Engine
7 years ago
Fabian Reinartz
f8fccc73d8
promql: remove global metrics
7 years ago
Fabian Reinartz
2ec5965b75
Merge pull request #3508 from prometheus/uptsdb
...
update TSDB
7 years ago