Commit graph

2300 commits

Author SHA1 Message Date
Fabian Reinartz 287d9b2545 Update release date in changelog 2016-01-18 13:07:48 +01:00
Julius Volz 2fe2217f89 Add tarballs target to build release tarballs. 2016-01-18 12:59:19 +01:00
Fabian Reinartz 90c687b064 Fix typo in changelog 2016-01-18 12:58:16 +01:00
beorn7 c99747b822 Add change of delta function 2016-01-16 19:58:36 +01:00
beorn7 ca2b347e53 Upgrade to Go 1.5.3 2016-01-15 15:10:36 +01:00
beorn7 99f5f18beb Update CHANGELOG.md 2016-01-15 15:06:51 +01:00
beorn7 5df5ff3851 Update doc comment
This should have gone into a previous commit, but I forgot to save
this particular file.
2016-01-15 15:02:12 +01:00
Brian Brazil 3d21204db5 Use up/down in UI for consistency with 'up' metric. 2016-01-15 15:02:00 +01:00
Jimmi Dyson 3519fc161d Kubernetes Discovery: Ensure metrics path isn't overwritten in example relabeling 2016-01-15 15:01:18 +01:00
Fabian Reinartz fa29d18a6b Add changelog for 0.16.2 2016-01-12 12:30:29 +01:00
Fabian Reinartz 99b079a4c8 Bump version to 0.16.2 2016-01-12 12:30:29 +01:00
beorn7 c837657816 Add a series ops metric "purge_on_request"
It counts series deletions triggered via the API.
2016-01-12 12:30:28 +01:00
beorn7 a1e4a3b2d3 Tolerate the lost+found directory in the data directory 2016-01-12 12:30:28 +01:00
beorn7 a94e17119f Improve handling of series file truncation
If only very few chunks are to be truncated from a very large series
file, the rewrite of the file is a lorge overhead. With this change, a
certain ratio of the file has to be dropped to make it happen. While
only causing disk overhead at about the same ratio (by default 10%),
it will cut down I/O by a lot in above scenario.
2016-01-12 12:11:27 +01:00
Fabian Reinartz 52c7b19e9d Don't skip recording rule errors 2016-01-12 11:26:33 +01:00
Fabian Reinartz da037bbc3c Revert autocomplete changes 2016-01-11 18:20:59 +01:00
Corentin Chary 24889cf0f6 Use '.' instead of '=' to separate labels from their values in Graphite
Using .label=value. was weird to use in Graphite and didn't bring much value.
2016-01-11 18:20:59 +01:00
Brian Brazil 43b5d8ead2 promql: Limit extrapolation of delta/rate/increase
The new implementation detects the start and end of a series by
looking at the average sample interval within the range. If the first
(last) sample in the range is more than 1.1*interval distant from the
beginning (end) of the range, it is considered the first (last) sample
of the series as a whole, and extrapolation is limited to half the
interval (rather than all the way to the beginning (end) of the
range). In addition, if the extrapolated starting point of a counter
(where it is zero) is within the range, it is used as the starting
point of the series.

Fixes #581
2016-01-11 18:20:59 +01:00
Richard Hartmann f4e5853d49 main.go: Remove warning about external_labels 2016-01-11 18:20:58 +01:00
Tobias Schmidt 2760f362d4 Let code format style errors fail CI 2016-01-11 18:20:58 +01:00
Brian Brazil d1cf2d6d3b Handle NaN for min/max.
Similar to topk and sort, prefer not returning NaN
where possible.
2016-01-11 18:20:58 +01:00
Brian Brazil 541264c97d All console expressions should use irate. 2016-01-11 18:20:58 +01:00
Fabian Reinartz f83f771e0e Upgrade common/log vendoring.
Fixes #1186
2016-01-11 18:20:58 +01:00
Julius Volz 850e1743e2 Document INFLUXDB_PW env var in username flag
Fixes https://github.com/prometheus/prometheus/issues/1281
2016-01-11 18:20:58 +01:00
Brian Brazil b98cac38c6 Similar to topk/bottomk, have sort/sort_desc put NaN at end.
This makes topk and bottomk consistent with the sorting functions,
as per #1271.
2016-01-11 18:20:58 +01:00
Brian Brazil 420434c6bd Make topk/bottomk prefer returning real numbers over NaN. 2016-01-11 18:20:58 +01:00
Brian Brazil 953ed8fe96 Move topk/bottomk tests from legacy. 2016-01-11 18:20:58 +01:00
Fabian Reinartz ee5b0c0e55 Don't federate stale samples 2016-01-11 18:20:57 +01:00
Tommy Ulfsparre bd4d4b5847 skip already watched child nodes. 2016-01-11 18:20:57 +01:00
Fabian Reinartz 853485a059 Update common/{expfmt,model}
Closes #1232
2016-01-11 18:20:57 +01:00
Jimmi Dyson 36d402d0a8 Kubernetes SD: Use first TCP service port as target port & clean up
example config

Fixes #1256
2016-01-11 18:20:57 +01:00
Fabian Reinartz f6204b80ff Do not panic in Consul SD creation 2016-01-11 18:20:57 +01:00
James Sanford 7de29697ac promql: Add clamp_max/clamp_min functions. 2016-01-11 18:20:57 +01:00
Jimmi Dyson c128f1464d Kubernetes SD: Fix metrics path relabeling in example config 2016-01-11 18:20:57 +01:00
Jimmi Dyson dfe2dd610b KubernetesSD: Remove redundant defaults from example config 2016-01-11 18:20:57 +01:00
Jimmi Dyson f979cecc90 KubernetesSD: Create targets for services as well as service endpoints 2016-01-11 18:20:56 +01:00
Brian Brazil 50915084c2 Print offsets in promql. 2016-01-11 18:20:55 +01:00
Tobias Schmidt dfba548210 Return HTTP server error codes for execution errors 2016-01-11 18:20:55 +01:00
Tobias Schmidt e8260b9b90 Make time parameter optional in v1 query API
If no time paramter is provided, the current server timestamp is used.
2016-01-11 18:20:54 +01:00
Julius Volz d5ad7a3dbb Minor fixups to web/ui/README.md 2016-01-11 18:20:54 +01:00
Fabian Reinartz f5bd4cd9bb Document convenient development of UI files. 2016-01-11 18:20:53 +01:00
Sam Starling 43c7ef253c Tidy up .js files based on static analysis from jshint 2016-01-11 18:20:53 +01:00
Corentin Chary 4d26bf0203 Add support for remote storage on Graphite
Allows to use graphite over tcp or udp. Metrics labels
and values are used to construct a valid Graphite path
in a way that will allow us to eventually read them back
and reconstruct the metrics.

For example, this metric:

model.Metric{
	model.MetricNameLabel: "test:metric",
	"testlabel":           "test:value",
	"testlabel2":           "test:value",
)

Will become:

test:metric.testlabel=test:value.testlabel2=test:value

escape.go takes care of escaping values to match Graphite
character set, it basically uses percent-encoding as a fallback
wich will work pretty will in the graphite/grafana world.

The remote storage module also has an optional 'prefix' parameter
to prefix all metrics with a path (for example, 'prometheus.').

Graphite URLs are simply in the form tcp://host:port or
udp://host:port.
2016-01-11 18:20:52 +01:00
Fabian Reinartz af095f701e Fix outdated federation feature statement 2016-01-11 16:48:26 +01:00
Brian Brazil 2844d0bc24 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.
2016-01-11 16:48:26 +01:00
Fabian Reinartz 52ec61a54d Update version on master branch 2016-01-11 16:48:25 +01:00
Federico Baldo 9e05d82ead Minor improvements to ec2 sd:
1. static credentials replaced with defaults.DefaultChainCredentials.
This change ensures that credentials are sourced form all possible
providers available with the aws sdk,           in the following order:
env variables, shared awsconfig file in user folder, ec2 instance role.

2. Added a few labels: AvailabilityZone, PublicDns, VpcId (if
available), SubnetId (if in Vpc)
2016-01-11 16:48:25 +01:00
Kevin Lyda 63ecff7076 Add blackbox console. 2016-01-11 16:48:25 +01:00
Brian Brazil a0e70853ee Remove Hacktoberfest
It's almost at an end, so we can remove this.
2016-01-11 16:48:25 +01:00
Fabian Reinartz 7a8b5ff725 Update vendoring 2016-01-11 16:48:25 +01:00