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
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
Krasi Georgiev
7858745c04
rename structs for consistency
2018-01-30 17:49:05 +00:00
Krasi Georgiev
4be9a40b89
fatalf is not thread safe so using panic instead ( #3680 )
2018-01-13 10:37:38 +00:00
Goutham Veeramachaneni
35a6ffbaf3
Merge pull request #3587 from krasi-georgiev/web-test-error-check
...
handle web_test webhandler errors.
2018-01-10 22:03:25 +05:30
Lovisa Svallingson
a8ff643464
Implement browsing of previous query expressions ( #3486 )
2017-12-21 18:58:05 +01:00
Krasi Georgiev
c94fa731aa
bypass the proxy for the tests
2017-12-20 18:21:10 +00:00
Krasi Georgiev
0e58cda1fe
use Fatalf instead of panic
2017-12-19 12:55:43 +00:00
Krasi Georgiev
61d793cb1f
handle web_test webhandler errors.
2017-12-19 12:55:43 +00:00
Krasi Georgiev
587dec9eb9
rebased and resolved conflicts with the new Discovery GUI page
...
Signed-off-by: Krasi Georgiev <krasi.root@gmail.com>
2017-12-18 20:10:03 +00:00
Krasi Georgiev
aca8f85699
fixed the tests
2017-12-18 17:22:50 +00:00
Krasi Georgiev
e405e2f1ea
refactored discovery
2017-12-18 17:22:49 +00:00
Conor Broderick
b5c30090b9
Merge pull request #3544 from Conorbro/relabel
...
Added service discovery view showing labels before and after relabelling
2017-12-13 17:33:55 +00:00
conorbroderick
8b6f3a1bd3
Added service discovery view showing labels before and after relabelling
2017-12-13 15:46:11 +00:00
Goutham Veeramachaneni
2d73d2b892
Merge pull request #3570 from Gouthamve/colon-snapshot
...
Make the date returned by snapshot script friendly
2017-12-11 19:04:10 -08:00
Tom Wilkie
73fa721dd2
Merge pull request #3569 from EdSchouten/faster-federation
...
Deprecate DeduplicateSeriesSet() in favor of NewMergeSeriesSet().
2017-12-11 09:37:15 -06:00
pasquier-s
b3eccdd828
Fix 'addrConn.resetTransport' error ( #3004 ) ( #3517 )
...
net.Listener converts 0.0.0.0 to :: which fails for hosts where IPv6 is
disabled. This change uses the original listen address parameter instead
of grpcl.Addr().String().
2017-12-11 21:39:58 +08:00
Goutham Veeramachaneni
bee6864c14
Make the date returned by snapshot script friendly
...
Fixes #3568
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-12-10 15:14:31 -06:00
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.
2017-12-10 19:51:20 +01:00
Goutham Veeramachaneni
e0d917e2f5
Merge pull request #3523 from Gouthamve/clean-tomb
...
Add endpoint to cleanup tombstones
2017-12-07 14:39:24 -06:00
Conor Broderick
08a4e0693b
Merge pull request #3556 from prometheus/remove-obsolete-todo
...
Remove obsolete TODO in API code
2017-12-07 15:54:47 +00:00
Shubheksha Jalan
35c1926d14
use httptest.NewRequest, remove http.ReadRequest ( #3557 )
2017-12-07 23:52:50 +08:00
Goutham Veeramachaneni
f0599d4dbf
Incorporate review-feedback
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-12-07 09:06:04 -06:00
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.
2017-12-07 23:01:13 +08:00
Goutham Veeramachaneni
311edc5a38
Merge branch 'master' into clean-tomb
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-12-05 10:23:21 -06:00
Goutham Veeramachaneni
d8515b2580
Move Admin APIs to v1
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-12-04 00:13:43 +05:30
Brian Brazil
d7b3df5ae1
Fix staticcheck errors
2017-12-02 14:52:13 +00:00
Goutham Veeramachaneni
3de10e3b44
Add CleanTombstones API endpoint
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-11-30 19:51:44 +05:30
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>
2017-11-30 10:04:02 +00:00
Fabian Reinartz
b3ff5f6b0e
Merge pull request #3507 from prometheus/rulepromql
...
Make PromQL metrics un-global, remove rules dep on promql.Engine
2017-11-28 08:55:23 +01:00
Lovisa Svallingson
2c2702e22b
Align columns in Targets view ( #3445 )
...
- rebase and resolve merge conflicts
2017-11-26 12:49:24 +08:00
Fabian Reinartz
2d0e3746ac
rules: remove dependency on promql.Engine
2017-11-24 07:57:54 +01:00
Fabian Reinartz
2ec5965b75
Merge pull request #3508 from prometheus/uptsdb
...
update TSDB
2017-11-23 19:11:54 +01:00
Fabian Reinartz
83cd270ea4
*: adapt to storage interface changes
2017-11-23 19:05:04 +01:00
Goutham Veeramachaneni
a880c86375
Fix unexported method on exported interface.
...
Also move to model.Duration
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-11-23 19:13:57 +05:30
Conor Broderick
84eca7dfb2
Merge pull request #3491 from Conorbro/eval-rules
...
Add rule evaluation time
2017-11-22 16:37:16 +00:00
conorbroderick
55aaece116
Add rule evaluation time
2017-11-22 15:22:02 +00:00
David Kaltschmidt
af75ce02c1
Review feedback
...
* renamed MakeQueryStats
* added stats to query() as well
* gofmt
2017-11-16 16:30:48 +01:00
David Kaltschmidt
c93e54d240
Adds execution timer stats to the range query
...
API consumers should be able to get insight into the query run times.
The UI currently measures total roundtrip times. This PR allows for more
fine grained metrics to be exposed.
* adds new timer for total execution time (queue + eval)
* expose new timer, queue timer, and eval timer in stats field of the
range query response:
```json
{
"status": "success",
"data": {
"resultType": "matrix",
"result": [],
"stats": {
"execQueueTimeNs": 4683,
"execTotalTimeNs": 2086587,
"totalEvalTimeNs": 2077851
}
}
}
```
* stats field is optional, only set when query parameter `stats` is not
empty
Try it via
```sh
curl 'http://localhost:9090/api/v1/query_range?query=up&start=1486480279&end=1486483879&step=14000&stats=true '
```
Review feedback
* moved query stats json generation to query_stats.go
* use seconds for all query timers
* expose all timers available
* Changed ExecTotalTime string representation from Exec queue total time to Exec total time
2017-11-16 16:05:10 +01:00
Krasi Georgiev
e2f4850fea
Refactor main.go with oklog/pkg/group actors pattern
2017-11-11 12:33:15 +00:00
Alexey Miroshkin
8c681f4a6c
Provide POST endpoint for query+query_range ( #3322 )
...
This PR fixes #3072 by providing POST endpoints for `query` and `query_range`.
POST request must be made with `Content-Type: application/x-www-form-urlencoded` header.
2017-11-11 01:53:48 +01:00
Julius Volz
8022fc1aa3
Fix display of raw target labels (again) ( #3437 )
...
I already fixed this once in 7be94d6643
,
but it seems it got broken again when merging other fixes from 1.x into
2.0.
2017-11-08 15:30:19 +01:00
Tom Wilkie
746752b946
Merge external labels in order.
2017-10-26 11:44:49 +01:00
Tom Wilkie
b22485bef0
Remove spurious test import.
2017-10-26 11:09:43 +01:00
Tom Wilkie
ee011d906d
Port remote read server to 2.0.
2017-10-26 11:09:14 +01:00
Julius Volz
099df0c5f0
Migrate "golang.org/x/net/context" -> "context" ( #3333 )
...
In some places, where ctxhttp or gRPC are concerned, we still need to use the
old contexts.
2017-10-24 21:21:42 -07:00
Takashi Kokubun
bd52950ce8
Fix invalid syntax in graph.css ( #3309 )
2017-10-24 10:48:58 +02:00
Fabian Reinartz
53875da7fb
Merge pull request #3286 from prometheus/dev-2.0
...
Dev 2.0
2017-10-12 16:19:10 +02:00
BasPH
a91d3bcb83
Add UI warning for time drift >30 seconds ( #3276 )
...
* Add UI warning for time drift >30 seconds
* Yellow time drift warning & better warning message
* Set warning threshold to 30 sec
* Include changed assets
2017-10-11 15:11:04 +02:00
Fabian Reinartz
269b5cf936
Merge pull request #3245 from jlevesy/use-require-web
...
Imports benbjohnson/testing and use it in web package
2017-10-10 10:58:27 +02:00
Brian Brazil
8740fcc657
Use panic in goroutine in test, not t.Fatalf
2017-10-09 19:44:03 +01:00
Fabian Reinartz
abf7c975c9
Merge branch 'master' into dev-2.0
2017-10-07 13:37:21 +02:00
beorn7
f20e6a0ae4
Only respond to API requests once the server is ready
2017-10-06 17:20:20 +02:00
Marc Sluiter
6a633eece1
Added go-conntrack for monitoring http connections ( #3241 )
...
Added metrics for in- and outgoing traffic with go-conntrack.
2017-10-06 11:22:19 +01:00
Julien Levesy
26a067b23d
use testutil assertion helpers in web package testsuite
2017-10-05 22:40:10 +02:00
Fabian Reinartz
7a3261aa99
Merge pull request #3240 from Gouthamve/fix-admin-api
...
web/api: Fix typo which broke the 2.0 admin APIs.
2017-10-05 14:33:12 +02:00
Fabian Reinartz
2d0b8e8b94
Merge branch 'master' into dev-2.0
2017-10-05 13:09:18 +02:00
Goutham Veeramachaneni
35aaa2002d
web/api: Add tests for v2 admin API
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-10-05 15:25:09 +05:30
Julius Volz
f7e8348a88
Re-add contexts to storage.Storage.Querier() ( #3230 )
...
* Re-add contexts to storage.Storage.Querier()
These are needed when replacing the storage by a multi-tenant
implementation where the tenant is stored in the context.
The 1.x query interfaces already had contexts, but they got lost in 2.x.
* Convert promql.Engine to use native contexts
2017-10-04 21:04:15 +02:00
Goutham Veeramachaneni
d70f850a18
web/api: Fix typo which broke the 2.0 admin APIs.
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-10-04 17:02:32 +05:30
Tom Wilkie
639d5c6f98
Merge pull request #3023 from tomwilkie/2945-remote-read-server
...
Implement remote read server in Prometheus.
2017-09-28 17:19:37 +01:00
beorn7
16c95ae8e7
Merge branch 'release-1.7'
2017-09-21 18:27:12 +02:00
Fabian Reinartz
7b02bfee0a
web: start web handler while TSDB is starting up
2017-09-20 15:03:19 +02:00
beorn7
dd381356a5
Tweak floating point number rendering
2017-09-19 18:53:00 +02:00
beorn7
61b6311504
Merge branch 'fix_ui_graph_decimal_axis' of git://github.com/yamatoya/prometheus into yamatoya-fix_ui_graph_decimal_axis
2017-09-19 18:30:18 +02:00
Takahito Yamatoya
b1151bdabc
ui changed, limit the number of digits for the larger units is 5
2017-09-19 11:11:39 +09:00
Krasi Georgiev
b4b0999e7f
add prefix to the api when prometheus started with custom web.external-url
...
Signed-off-by: Krasi Georgiev <krasi.root@gmail.com>
2017-09-18 17:59:27 +03:00
Takahito Yamatoya
1eac566d09
add ; , and change from B to G, and change from K to k, and add all the prefixes
2017-09-18 22:55:22 +09:00
Tom Wilkie
bbc9671d50
Get profile handlers working again after #3054 and #3146 .
...
Ensures the pprod endpoints deal with path-prefixes correctly; adds a test so we don't break it again.
2017-09-18 13:27:09 +01:00
beorn7
e7aab2791a
Forward-merge bug fixes frem branch 'release-1.7'
2017-09-18 12:14:37 +02:00
beorn7
7a8e340c1a
Merge branch 'fix_web_ui_utc' of git://github.com/yamatoya/prometheus into yamatoya-fix_web_ui_utc
2017-09-18 12:07:52 +02:00
Takahito Yamatoya
5d707d3aa3
#2439 library version update JQuery / JQuery.Selection / JQuery.hotkey ( #3183 )
2017-09-18 11:45:57 +02:00
Takahito Yamatoya
ff038a4a39
bug fix
2017-09-17 00:20:39 +09:00
Takahito Yamatoya
7a3c348f83
fix decimal y-axis
2017-09-17 00:16:40 +09:00
Tom Wilkie
758d64ffd9
s/EncodReadResponse/EncodeReadResponse/
2017-09-16 11:15:03 +02:00
Tom Wilkie
febed48703
Implement remote read server in Prometheus.
2017-09-16 11:13:01 +02:00
Takahito Yamatoya
738a51bea6
#2371 fix to display utc date at datetime picker
2017-09-16 11:38:29 +09:00
Goutham Veeramachaneni
3f0267c548
Merge branch 'dev-2.0' into go-kit/log
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-09-15 23:15:27 +05:30
beorn7
84211bd2df
Foward-merge bug fixes and cherry-picks from 'release-1.7'
2017-09-15 13:44:22 +02:00
beorn7
a3fd7dd335
Backport the templating fix from master
...
The original fix is in commit 5f5d77848e
2017-09-14 18:12:00 +02:00
Fabian Reinartz
e746282772
Merge branch 'master' into dev-2.0
2017-09-11 10:55:19 +02:00
Fabian Reinartz
d21f149745
*: migrate to go-kit/log
2017-09-08 22:01:51 +05:30
Fabian Reinartz
27bdddbf51
web: fix profile paths
2017-09-07 16:24:12 +02:00
Fabian Reinartz
87918f3097
Merge branch 'master' into dev-2.0
2017-09-04 14:09:21 +02:00
Matt Bostock
d31c068ae4
api.go: Fix typo in comment ( #3122 )
2017-08-28 11:03:07 +01:00
Richard Hartmann
aa3fb1e7c4
Point help to docs, not main Prometheus website
...
No matter how we refactor docs, `/docs/` will stay the prefix, so there's not long-term risk in changing this.
One we version docs, we should probably try and keep link & version in sync.
2017-08-25 10:53:36 +02:00
Mark Adams
77c816b309
Fix pprof endpoints when -web.route-prefix or -web.external-url is used ( #3054 )
...
Whenever a route prefix is applied, the router prepends the prefix to
the URL path on the request. For most handlers, this is not an issue
because the request's path is only used for routing and is not actually
needed by the handler itself. However, Prometheus delegates the handling
of the /debug/* endpoints to the http.DefaultServeMux which has it's own
routing logic that depends on the url.Path. As a result, whenever a
prefix is applied, the prefixed URL is passed to the DefaultServeMux
which has no awareness of the prefix and returns a 404.
This change fixes the issue by creating a new serveDebug handler which
routes requests /debug/* requests to appropriate net/http/pprof handler
and removing the net/http/pprof import in cmd/prometheus since it is no
longer necessary.
Fixes #2183 .
2017-08-23 00:00:56 +01:00
maximecharron
41884f0283
Fix double redirect if there is a route-prefix ( #3091 )
2017-08-19 19:44:15 +01:00
Max Inden
3101606756
Merge pull request #2711 from mxinden/api-config
...
Expose current Prometheus config via /status/config
2017-08-14 19:01:13 +02:00
Max Leonard Inden
1c96fbb992
Expose current Prometheus config via /status/config
...
This PR adds the `/status/config` endpoint which exposes the currently
loaded Prometheus config. This is the same config that is displayed on
`/config` in the UI in YAML format. The response payload looks like
such:
```
{
"status": "success",
"data": {
"yaml": <CONFIG>
}
}
```
2017-08-13 22:21:18 +02:00
Karsten Weiss
5f5d77848e
Fix 'predefined escaper "html" disallowed in template' in /targets
( #3046 ) ( #3050 )
...
Issue #3046 is triggered by html/template changes in go1.9.
See https://tip.golang.org/pkg/html/template . Quote:
// To ease migration to Go 1.9 and beyond, "html" and "urlquery" will
// continue to be allowed as the last command in a pipeline. However, if the
// pipeline occurs in an unquoted attribute value context, "html" is
// disallowed. Avoid using "html" and "urlquery" entirely in new templates.
The commit also includes a trivial whitespace fix.
2017-08-11 18:31:46 +01:00
Fabian Reinartz
921c6ebb3b
Merge branch 'dev-2.0' into mergemaster
2017-08-10 17:27:52 +02:00
Fabian Reinartz
25f3e1c424
Merge branch 'master' into mergemaster
2017-08-10 17:04:25 +02:00
Fabian Reinartz
0af43695de
web: log error missages on serving
2017-08-10 14:48:31 +02:00
beorn7
6cf62fe8ba
Update web/ui/bindata.go
2017-08-10 14:40:19 +02:00
Roman Khavronenko
245b8a0b37
Allow to collapse jobs at /targets
page ( #2628 )
2017-08-09 17:10:30 +02:00
emluque
ff54c5c11a
2831 Add Healthy and Ready endpoints
2017-08-07 17:34:04 -03:00
beorn7
3bb0667607
Merge branch 'release-1.7'
2017-07-21 19:40:30 +02:00
Martín Ferrari
64cfe2e7f5
Add PATH_PREFIX to redirectToMigratedURL
...
Old grafana versions use this format, and it breaks with prometheus instances
not mounted in the root directory.
2017-07-11 17:36:17 +00:00
Fabian Reinartz
dba7586671
Merge branch 'master' into dev-2.0
2017-07-11 17:22:14 +02:00
Fabian Reinartz
16464c3a33
Merge pull request #2910 from prometheus/adminapi
...
Admin API
2017-07-11 17:15:49 +02:00
Fabian Reinartz
32226e30f5
Guard reload and quit endpoints by flag
2017-07-11 14:25:07 +02:00
Alexey Palazhchenko
b6f89a1982
Parse custom step parameter correctly. ( #2928 )
...
Backport of 6a767b736b
.
Refs #2827 , #2861 .
2017-07-10 21:05:40 +02:00
Fabian Reinartz
45ac064669
web: disable Amin APIs by default
2017-07-10 09:29:41 +02:00
Fabian Reinartz
ccf9e62972
*: add admin grpc API
2017-07-10 09:14:14 +02:00
Julius Volz
13006feb1e
Fix alert label display in /alerts UI
2017-07-08 11:42:13 +02:00
Goutham Veeramachaneni
e1fc9dc78d
Move /rules to new format ( #2901 )
...
Fixes #2891
Signed-off-by: Goutham Veeramachaneni <goutham@boomerangcommerce.com>
2017-07-08 11:38:02 +02:00
Alin Sinpalean
38de290d5f
Console graph color scheme support ( #2900 )
...
Add a colorScheme parameter to PromConsole.Graph, to allow using custom colors in console graphs.
2017-07-04 15:30:12 +01:00
Fabian Reinartz
ca2b68889b
Merge branch 'master' into dev-2.0
2017-06-23 13:15:44 +02:00
Julius Volz
7be94d6643
Fix display of before-relabeling labels
2017-06-22 15:36:17 -04:00
Alexey Palazhchenko
6a767b736b
Parse custom step parameter correctly. ( #2861 )
...
Fixes #2827 .
2017-06-19 17:22:59 +01:00
Goutham Veeramachaneni
37e7b69f56
Merge remote-tracking branch 'upstream/dev-2.0' into rulegroups
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-06-19 16:34:55 +05:30
Goutham Veeramachaneni
67dc73fd59
Flag changes for 2.0
...
Fixes : prometheus/prometheus#2087
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-06-16 20:21:41 +05:30
Goutham Veeramachaneni
d407bd150c
Consolidate the duration params in CLI
...
* All CLI params moved to model.Duration
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-06-16 20:20:57 +05:30
Goutham Veeramachaneni
5ff283a7b7
Reflect the grouping in the UI
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-06-14 16:09:14 +05:30
Frederic Branczyk
9063f8dedd
web: fix double prefix
2017-06-10 12:07:43 +02:00
Fabian Reinartz
669075c6b9
Merge branch 'master' into dev-2.0
2017-06-06 09:36:51 +02:00
Brian Brazil
d66799d7f3
Show gaps in graphs. ( #2766 )
...
Fixes #345
2017-05-26 16:17:48 +01:00
Fabian Reinartz
4c31061251
Merge branch 'master' into dev-2.0
2017-05-24 15:36:17 +02:00
Brian Brazil
e5f94145b8
Drop series for federation if latest sample is stale.
2017-05-24 14:27:17 +01:00
Brian Brazil
220e78b9c3
Consider a series stale after 4.1 intervals with no data.
...
To cover the cases where stale markers may not be available,
we need to infer the interval and mark series stale based on that.
As we're lacking stale markers this is less accurate, however
it should be good enough for these cases.
We need 4 intervals as if say we had data at t=0 and t=10,
coming via federation. The next data point should be at t=20 however it
could take up to t=30 for it actually to be ingested, t=40 for it to be
scraped via federation and t=50 for it to be ingested.
We then add 10% on to that for slack, as we do elsewhere.
2017-05-24 14:27:17 +01:00
Brian Brazil
c02c25d5ba
Allow peeking back further in buffer.
2017-05-24 14:27:17 +01:00
conorbroderick
9c953064c3
check if result is a scalar in order to display correct number of returned time series
2017-05-24 14:07:24 +01:00
Frederic Branczyk
ad22606a3d
web: prefix redirect with ExternalURL path
2017-05-22 14:56:52 +02:00
Frederic Branczyk
45df5c2daf
Merge branch 'release-1.6'
2017-05-22 13:44:44 +02:00
conorbroderick
9287a01bbf
Fixed fixed yaxis of stacked graph being cut off
2017-05-18 15:18:29 +01:00
Fabian Reinartz
06c2b76cd4
Merge branch 'master' into uptsdb
2017-05-16 16:48:37 +02:00
Julius Volz
ac203ef0ee
Add externalURL template function ( #2716 )
...
This allows users to e.g. add links back to the generating Prometheus
right in their alert templates.
2017-05-13 15:47:04 +02:00
Fabian Reinartz
6e804b3497
Merge branch 'master' into dev-2.0
2017-05-12 13:29:58 +02:00
Fabian Reinartz
9a9211845e
ui: fix alert template
2017-05-10 15:30:10 +02:00
Tom Wilkie
4d9b917d11
Instrument Prometheus with OpenTracing ( #2554 )
...
* Use request.Context() instead of a global map of contexts.
* Add some basic opentracing instrumentation on the query path.
* Remove tracehandler endpoint.
2017-05-02 18:49:29 -05:00
Fabian Reinartz
73b8ff0ddc
Merge branch 'master' into dev-2.0
2017-04-27 10:19:55 +02:00
David Symonds
04ad889751
Preserve Alertmanager URLs as *url.URL.
...
Render a nicer link in the web UI.
2017-04-25 16:17:46 +10:00
Conor Broderick
9eb1a5d6bf
Handle invalid query in graph UI ( #2652 )
2017-04-24 10:50:57 +01:00
Conor Broderick
ee62807b62
Added min/max to graph to accomodate for constant time series ( #2612 )
...
Added min/max to graph to accommodate constant time series
2017-04-12 14:25:25 +01:00
Conor Broderick
c72692fd75
Fixed issue of partially hidden y-axis values on graph ( #2589 )
2017-04-06 16:04:44 +01:00
Julius Volz
beeb0b55c0
Merge pull request #2572 from weaveworks/2571-propagate-api-error
...
Add promql.ErrStorage, which the API propagates as a 500.
2017-04-06 16:36:20 +02:00
Tom Wilkie
f0e8a5f37c
Add promql.ErrStorage, which is interpreted by the API as a 500.
2017-04-06 14:41:23 +01:00
Brian Brazil
26bedc9e00
Revert use of buildVersion in console templates. ( #2579 )
...
This function isn't available in console templates,
so go back to pre-#2468 state to get things working again.
2017-04-05 15:19:17 +01:00
Alexey Palazhchenko
17f15d024a
Small fixes. ( #2578 )
...
Fix typos. Simplify with gofmt -s
2017-04-05 14:24:22 +01:00
Fabian Reinartz
8c768f2ca3
web: Fix federation for instance label
2017-04-05 14:53:34 +02:00
Fabian Reinartz
8ffc851147
Merge branch 'master' into dev-2.0
2017-04-04 15:17:56 +02:00
Fabian Reinartz
bbcf20ba01
web: deduplicate series in federation
2017-04-04 11:20:23 +02:00
Fabian Reinartz
f56644e3ae
api/v1: deduplicate selected series
2017-04-04 11:09:11 +02:00
Conor Broderick
dafae52efa
Display total number of returned elements on console ( #2532 )
...
Display total number of returned elements on console
2017-04-03 11:52:25 +01:00
Julius Volz
947c83be3b
Sort targets by instance within a job
...
Fixes https://github.com/prometheus/prometheus/issues/2536
2017-03-31 13:14:20 +02:00
Brian Brazil
8cd5aff8fe
Send instance="" with federation if instance not set.
...
This is needed for federating non-instance level metrics, so they don't
end up with the instance label of the prometheus target.
Also sort external labels, so label output order is consistent.
2017-03-30 06:48:48 +01:00
Brian Brazil
d42e01b07c
Sort labelnames for federation.
...
This makes unittests with multiple labels possible,
and may be needed for performance with the new
ingestion text parser.
2017-03-30 06:48:48 +01:00
Brian Brazil
dbb65846f1
Add unittest for federation external_labels behaviour
2017-03-30 06:48:48 +01:00