Dmytro Slupytskyi
28b4ecf985
add cii badge
2018-02-05 20:39:32 +01:00
Fabian Reinartz
ffe73cd0a6
Merge pull request #246 from nipuntalukdar/fixatest
...
fixed an issue in TestWALRestoreCorrupted
2018-02-05 17:47:31 +01:00
Tom Wilkie
a730083cbf
Merge pull request #3731 from bboreham/reuse-timer
...
Re-use timer in remote storage queue
2018-02-05 10:54:08 +01:00
Goutham Veeramachaneni
6c62437101
Fix metric unit ( #275 )
...
Fixes #274
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2018-02-05 08:36:18 +00:00
Goutham Veeramachaneni
bb0e74b343
Fix reader for large index files.
...
Currently the offsets are cast into uint32 even though the index can
grow larger than 4GiB.
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2018-02-05 13:51:22 +05:30
Filip Ochnik
ec1c6b7c29
textparse: reject empty label names
2018-02-04 17:37:46 +01:00
Lovisa Svallingson
460fe4dd0c
Fix: Improve typeahead on /graph page ( #3742 )
...
* Do not autoselect the first item in the dropdown
* Historical queries only show in dropdown when toggled on
* Move shared behavior to queryHistory.isEnabled function
* Do not auto submit selected history queries
2018-02-02 19:16:29 +01:00
Conor Broderick
5169ccf258
Merge pull request #3724 from simonpasquier/fix-bad-data-error
...
Don't reset FiredAt for inactive alerts
2018-02-01 16:18:09 +00:00
Frederic Branczyk
81a96d3140
Merge pull request #3779 from krasi-georgiev/rename-retrieval-to-scrape
...
Rename retrieval to scrape
2018-02-01 14:16:34 +01:00
Krasi Georgiev
6ce84dbcb1
rename ScrapeManager struct to Manager to remove stutter
2018-02-01 10:06:24 +00:00
Krasi Georgiev
b75428ec19
rename package retrieve to scrape
...
no fucnctinal changes just renaming retrieval to scrape
2018-02-01 09:55:07 +00:00
Frederic Branczyk
b30ee3e69a
Merge pull request #3766 from krasi-georgiev/renaming-consistency
...
rename structs for consistency
2018-02-01 07:08:38 +01:00
Tom Wilkie
de17498608
Merge pull request #3736 from tomwilkie/3715-2.1-cpu
...
Don't allocate a mergeSeries if there is only one series to merge.
2018-01-31 16:17:29 +00:00
Krasi Georgiev
7858745c04
rename structs for consistency
2018-01-30 17:49:05 +00:00
Frederic Branczyk
af547ce862
Merge pull request #3709 from krasi-georgiev/bearer-token
...
read bearer token on every request + some http and scrape tests
2018-01-30 18:17:54 +01:00
Frederic Branczyk
d3ae1ac40e
Merge pull request #3741 from krasi-georgiev/discovery-race
...
read/write race for the context field in the discovery package
2018-01-30 18:17:09 +01:00
pasquier-s
bde64cf5a6
Fix Kubernetes endpoints SD for empty subsets ( #3660 )
...
* Fix Kubernetes endpoints SD for empty subsets
When an endpoints object has no associated pods (replica scaled to zero
for instance), the endpoints SD should return a target group with no
targets so that the SD manager propagates this information to the scrape
manager.
Fixes #3659
* Don't send nil target groups from the Kubernetes SD
This is to be consistent with the endpoints SD part.
2018-01-30 15:00:33 +00:00
Krasi Georgiev
4d47a48422
client test comment nits.
2018-01-29 15:26:46 +00:00
Krasi Georgiev
818dda72db
updated the sd tests
2018-01-29 15:19:15 +00:00
Krasi Georgiev
acc4197098
remove dicovery race for the context field
2018-01-29 15:18:07 +00:00
Frederic Branczyk
47538cf6ce
Merge pull request #3747 from prometheus/sched-update-throttle
...
Update throttle & tsdb update
2018-01-29 16:05:05 +01:00
Frederic Branczyk
73e829137b
discovery: Cleanup ticker
2018-01-29 13:51:04 +01:00
Tom Wilkie
3dc5b8eef5
Use sub benchmarks.
2018-01-29 11:37:48 +00:00
Paddy Newman
568ecce421
Fix rendering issues with console templates. ( #3744 )
...
Move tables into the content area so that graphs and very long/wide tables are
readable.
The issue is present on the node-overview and node-disk pages when the tables
are very long and wide. E.g., the host has lots of NICs, disks and filesystems
and the filesystem names are very long. We have very long lists of long Docker
filesystem names in our Kubernetes clusters.
I know people don't really care about the console templates anymore but they
are still useful in some cases and the queries are a nice reference for
beginners.
2018-01-29 10:38:39 +00:00
Ganesh Vernekar
66b0aa3b45
Fixed race condition in map iteration and map write in Discovery ( #3735 ) ( #3738 )
...
* Fixed concurrent map iteration and map write in Discovery (#3735 )
* discovery: Changed Lock to RLock in Collect
2018-01-28 22:24:31 +05:30
Krasi Georgiev
fe926e7829
update the discover tests
...
the discovery test is now only testing update and get groups.
It doesn't do an e2e test but just a unit test of setting and receiving
target groups
2018-01-27 12:03:06 +00:00
Julien Pivotto
8b20cb1e8d
last config success time gauge: use SetToCurrentTime() ( #3750 )
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2018-01-27 07:48:13 +00:00
Callum Styan
7dc05538f7
docs: SD implementations do not have to only send new/changed target groups ( #3713 )
2018-01-26 22:03:11 +00:00
Frederic Branczyk
46693444de
vendor: Update github.com/prometheus/tsdb
2018-01-26 16:24:51 +01:00
Frederic Branczyk
cfa0253ed8
discovery: Schedule updates to throttle
2018-01-26 16:24:44 +01:00
Goutham Veeramachaneni
44dd5e1202
Merge pull request #269 from Gouthamve/fix-reloads
...
Fix extra reloads.
2018-01-26 20:24:38 +05:30
Goutham Veeramachaneni
b7bea04e62
Fix extra reloads.
...
Previously we reloaded every 1 minute irrespective of whether there are
deleted blocks or not.
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2018-01-26 19:33:59 +05:30
Tom Wilkie
da29c09dca
Some benchmarks for the mergeSeries set.
2018-01-26 11:01:59 +00:00
Ben Kochie
40acc632bb
Merge pull request #3505 from rdemachkovych/ansible_prom2.0
...
Added to documentation Ansible roles for Prometheus 2.0
2018-01-26 11:30:15 +01:00
Roman Demachkovych
8bfc611616
Remove not maintained roles
2018-01-26 09:46:44 +01:00
Frederic Branczyk
753f8c1071
Merge pull request #3733 from simonpasquier/update-vendor-tsdb
...
Update vendor tsdb
2018-01-25 14:20:36 +01:00
Simon Pasquier
eb11d912bd
vendor: update tsdb
2018-01-25 13:04:24 +01:00
Tom Wilkie
749781edf3
Also, don't make a mergeSeriesSet if there is only one SeriesSet.
2018-01-25 11:17:16 +00:00
Tom Wilkie
48e39068bd
Don't allocate a mergeSeries if there is only one series to merge.
2018-01-25 11:11:55 +00:00
Goutham Veeramachaneni
ad0fdaf436
Merge pull request #265 from simonpasquier/fix-nil-index-writer
...
Fix panic on nil index writer
2018-01-24 20:28:35 +05:30
Simon Pasquier
5d47710f8a
Fix panic on nil index writer
2018-01-24 15:55:04 +01:00
Bryan Boreham
8a4535e6ad
Re-use timer instead of creating new ones on every sample
...
The docs for `time.After()` note that "The underlying Timer is not
recovered by the garbage collector until the timer fires".
2018-01-24 12:36:29 +00:00
zemek
8a01a0fbed
Set consul server default to localhost:8500 ( #3703 )
2018-01-24 12:14:32 +00:00
Simon Pasquier
81c0ab69e0
Don't reset FiredAt for inactive alerts
...
Otherwise AlertManager receives resolved alerts where StartsAt is zero which
fails the validation.
2018-01-22 17:17:33 +01:00
Julius Volz
09e460a647
discovery: Rename file SD mtime metric ( #3723 )
...
- "timestamp" -> "mtime" to be in line with node exporter and clearer.
- add unit suffix
2018-01-22 14:02:24 +01:00
Goutham Veeramachaneni
84e462ae24
Merge pull request #3722 from prometheus/reusable-rulefmt
...
rulefmt: Allow parsing from bytes instead of file
2018-01-22 18:19:06 +05:30
Julius Volz
192e665317
rulefmt: Allow parsing from bytes instead of file
...
This makes the rulefmt package more reusable for users whose rulesets are not
stored in files on disk. Concrete example: Cortex.
2018-01-22 11:46:55 +01:00
Julius Volz
953af2c089
promql: Make printer formatting less vintage ( #3721 )
...
- lower-case modifiers
- reverse order of aggregation modifiers and aggregated expression
- remove spacing before modifier parentheses
2018-01-22 11:14:59 +01:00
Julius Volz
1e943fc10a
promql: Fix printing of empty without() ( #3719 )
...
* promql: Fix printing of empty without()
Fixes https://github.com/prometheus/prometheus/issues/3704
* Test cleanup fixup
2018-01-21 22:22:55 +01:00
Krasi Georgiev
66bcb10f40
t.Fatal should be t.Fatalf in the one scrape test
2018-01-19 12:07:19 +00:00