David Kaltschmidt
e731c248d7
Prometheus step alignment: shift interval only on jitter
...
* only increase interval by step if jitter happened
* shift both start and end
* simplified tests by using low epoch numbers
2018-05-14 12:08:30 +02:00
David
06aca5e8b5
Merge branch 'master' into prometheus_align_queries
2018-05-08 12:22:55 +02:00
Alexander Zobnin
94cf560304
Merge remote-tracking branch 'upstream/master' into prometheus-heatmap
2018-03-12 17:16:02 +03:00
Alexander Zobnin
479209f483
prometheus: datasource refactor
2018-03-12 17:13:05 +03:00
Mitsuhiro Tanda
a83ede0193
support POST for query and query_range
2018-03-12 13:25:05 +09:00
Craig Miskell
2e86985d44
Remove silly noise
2018-01-05 16:22:49 +13:00
Craig Miskell
f9fb315dbd
Update tests to match new reality, and rejig the implementation a bit to truly work as desired
2018-01-05 16:20:54 +13:00
Torkel Ödegaard
3a1f52d8a2
prettier: ran on all files again, sorry. now settings are defined in package.json
2017-12-21 08:39:31 +01:00
Torkel Ödegaard
fadfc665e4
tech: ran pretttier on all typescript files
2017-12-19 16:06:54 +01:00
Torkel Ödegaard
e98af1b3fa
updated libs and fixed new typescript errors
2017-11-27 12:14:57 +01:00
Carl Bergquist
5d6ed6c45f
prom: add support for default step param ( #9866 )
...
Alerting for prometheus have been depending on the step parameter from each query.
In https://github.com/grafana/grafana/pull/9226 we changed the behavior for step in the
frontend which caused problems for alerting. This commit fixes that by introducing a default
min interval value so alerting always have something to depend on.
closes #9777
2017-11-15 11:22:00 +01:00
Torkel Ödegaard
8d68bd6bb9
fix: fixed prometheus step issue that caused browser crash, fixes #9575
2017-10-18 13:28:18 +02:00
Alin Sinpalean
9cf7a2d2ed
Remove apparently unnecessary .flush() calls.
2017-10-04 16:23:24 +02:00
Alin Sinpalean
bb8849785a
Have include intervalFactor in its calculation, so always equal to the step query parameter.
2017-09-27 14:20:51 +02:00
Alin Sinpalean
f25aeadf21
Resolve merge conflicts with remote/master.
2017-09-26 17:55:30 +02:00
Carl Bergquist
da3aea5e0a
Merge pull request #9186 from mtanda/prometehus_instant_query2
...
(prometheus) instant query support
2017-09-26 14:37:10 +02:00
Torkel Ödegaard
b8d9722b4f
tech: removing unused variables from typescript files, and making tslint rules more strict
2017-09-21 16:40:18 +02:00
Alin Sinpalean
2a62374a61
Prometheus: Rework the interaction between auto interval (computed based on graph resolution), min interval (where specified, per query) and intervalFactor (AKA resolution, where specified, per query).
...
As a bonus, have and reflect the actual interval (not the auto interval), taking into account min interval and Prometheus' 11k data points limit.
2017-09-12 16:36:27 +02:00
Mitsuhiro Tanda
6f8110956d
(prometheus) support instant query for table format, use checkbox to switch query type
2017-09-08 01:15:07 +09:00
Mitsuhiro Tanda
56cb16ff5b
(prometheus) instant query support
2017-09-07 18:03:53 +09:00
Alin Sinpalean
5bffdfe9a4
When converting Prometheus results to table, handle the case where the returned series have non-uniform sets of labels. ( #8826 )
2017-07-12 06:52:59 +02:00
Torkel Ödegaard
6ff1144abf
refactoring: prometheus PR #6140
2017-04-25 12:57:23 +02:00
Torkel Ödegaard
49fe74228b
fix(browser history): fixes and enhancements to browser history, it now works properly again AND it can restore previous time ranges in dashboards, closes #7259
2017-01-13 17:37:53 +01:00
Mitsuhiro Tanda
d018d2a23f
(prometheus) table support
2016-11-23 17:18:37 +09:00
Torkel Ödegaard
82ad5a632d
tech(): fixed broken tests due to angularjs upgrade
2016-03-28 20:44:32 +02:00
Mitsuhiro Tanda
2cce057df1
(prometheus) add query result template query
2016-02-09 01:37:43 +09:00
Mitsuhiro Tanda
ee84d4371b
fix prometheus annotation, reflect API change
2016-02-04 14:05:51 +09:00
Mitsuhiro Tanda
f8b05e0f42
add prometheus annotation query
2016-02-04 14:05:44 +09:00
Torkel Ödegaard
822c8f1575
feat(plugins): migrating graphite query editor to new model
2016-02-02 12:52:43 +01:00
Mitsuhiro Tanda
c317149a08
add test for prometheus fill null
2016-01-13 15:59:59 +09:00
Torkel Ödegaard
1ffcea1952
feat(plugins): major improvement in plugins golang code
2016-01-09 23:34:20 +01:00
Torkel Ödegaard
4522b02925
tech(systemjs): almost all tests are passing
2015-12-21 16:00:58 +01:00
John McFarlane
c4048f8f22
[prometheus] Fix step calibration
...
The step interval is (correctly) being converted to seconds, but the
unit of measure suffixed onto the end is preventing the subsequent
step calibration. Because the query upstream defaults to seconds as
the unit of measure, the suffix can simply be removed and everything
works as intended.
patchset 01: Also fix the spec.
2015-11-19 21:20:07 -08:00
Torkel Ödegaard
97697b93ed
refactoring: moving and renaming things
2015-10-30 15:58:20 +01:00
Arthur D'Andréa Alemar
0a6a3f9ab7
fix(prometheus): use time independent API to list metrics and labels names
...
Using the "/api/v1/query" endpoint to extract information about metrics
and labels are limited to the metrics available at the time parameter
(that is set to current time), this can lead to labels not showing
because they have no value in the current time even when the dashboard
is displaying historic data.
On the other hand "/api/v1/series" returns results including every
metric and label known to Prometheus, independent of time and value.
2015-10-23 17:18:34 -02:00
Julius Volz
3cc69112c1
Fix "Link to Prometheus" button for proxied Prometheus sources.
2015-10-01 18:23:29 +02:00
Jimmi Dyson
b90e4057ba
Convert prometheus specs to typescript
2015-09-30 15:52:15 +01:00