Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docs
Commits
58bf5a09
Commit
58bf5a09
authored
Jan 27, 2016
by
Fabian Reinartz
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #309 from prometheus/next-release
Next release
parents
10ba63b0
a2989085
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
25 deletions
+39
-25
getting_started.md
content/docs/introduction/getting_started.md
+1
-4
configuration.md
content/docs/operating/configuration.md
+24
-15
basics.md
content/docs/querying/basics.md
+1
-1
functions.md
content/docs/querying/functions.md
+10
-0
operators.md
content/docs/querying/operators.md
+3
-5
No files found.
content/docs/introduction/getting_started.md
View file @
58bf5a09
...
@@ -150,10 +150,7 @@ for three services with different latency distributions.
...
@@ -150,10 +150,7 @@ for three services with different latency distributions.
Ensure you have the
[
Go compiler installed
](
https://golang.org/doc/install
)
and
Ensure you have the
[
Go compiler installed
](
https://golang.org/doc/install
)
and
have a
[
working Go build environment
](
https://golang.org/doc/code.html
)
(
with
have a
[
working Go build environment
](
https://golang.org/doc/code.html
)
(
with
correct
`GOPATH`
) set up. For some of the dependencies that
`go get`
will
correct
`GOPATH`
) set up.
fetch, you will also need to have the
[
Mercurial
](
https://www.mercurial-scm.org/
)
revision control system (
`hg`
command) installed.
Download the Go client library for Prometheus and run three of these example
Download the Go client library for Prometheus and run three of these example
processes:
processes:
...
...
content/docs/operating/configuration.md
View file @
58bf5a09
...
@@ -307,17 +307,16 @@ likely in future releases.
...
@@ -307,17 +307,16 @@ likely in future releases.
Kubernetes SD configurations allow retrieving scrape targets from
Kubernetes SD configurations allow retrieving scrape targets from
[
Kubernetes'
](
http://kubernetes.io/
)
REST API. By default, this discovers
[
Kubernetes'
](
http://kubernetes.io/
)
REST API. By default, this discovers
mast
ers, nodes, and appropriately annotated services so that metrics from both
API serv
ers, nodes, and appropriately annotated services so that metrics from both
cluster components and deployed applications can be scraped. This will create
cluster components and deployed applications can be scraped. This will create
multiple target groups: one for all
masters with each mast
er as a target, one
multiple target groups: one for all
API servers with each API serv
er as a target, one
for all nodes with each node as a target, and one for each service containing
for all nodes with each node as a target, and one for each service containing
each service endpoint as a target.
each service endpoint as a target.
The following meta labels are available on targets during relabeling:
The following meta labels are available on targets during relabeling:
*
`__meta_kubernetes_role`
: the role of the target: one of
`master`
,
`node`
or
*
`__meta_kubernetes_role`
: the role of the target: one of
`apiserver`
,
`node`
`service`
or
`service`
*
`__meta_kubernetes_node`
: the name of the node from the Kubernetes API
*
`__meta_kubernetes_node_label_<labelname>`
: each node label from the
*
`__meta_kubernetes_node_label_<labelname>`
: each node label from the
Kubernetes API
Kubernetes API
*
`__meta_kubernetes_service_namespace`
: the namespace of the service
*
`__meta_kubernetes_service_namespace`
: the namespace of the service
...
@@ -327,14 +326,17 @@ Kubernetes API
...
@@ -327,14 +326,17 @@ Kubernetes API
*
`__meta_kubernetes_service_annotation_<annotationname>`
: each service
*
`__meta_kubernetes_service_annotation_<annotationname>`
: each service
annotation from the Kubernetes API
annotation from the Kubernetes API
In addition, the
`instance`
label for node metrics will be set to the node name
as retrieved from the API server.
See below for the configuration options for Kubernetes discovery:
See below for the configuration options for Kubernetes discovery:
```
```
# The information to access the Kubernetes API.
# The information to access the Kubernetes API.
# The
mast
er addresses. In a cluster this will normally be
# The
API serv
er addresses. In a cluster this will normally be
# `https://kubernetes.default.svc`. Supports multiple HA
mast
ers.
# `https://kubernetes.default.svc`. Supports multiple HA
API serv
ers.
mast
ers:
api_serv
ers:
- [<host>]
- [<host>]
# Run in cluster. This will use the automounted CA certificate and bearer
# Run in cluster. This will use the automounted CA certificate and bearer
...
@@ -345,14 +347,21 @@ masters:
...
@@ -345,14 +347,21 @@ masters:
# port of 10255 (default).
# port of 10255 (default).
[ kubelet_port: <int> ]
[ kubelet_port: <int> ]
# File to read the bearer token from to authenticate to the API server. If
# Optional authentication information used to authenticate to the API server.
# running in a pod, then it is best to use a service account and set in_cluster
# Note that `basic_auth`, `bearer_token` and `bearer_token_file` options are
# to true.
# mutually exclusive.
[ bearer_token_file: <filename> ]
# Username and password for basic authentication to the API server.
# Optional HTTP basic authentication information.
[ username: <string> ]
basic_auth:
[ password: <string> ]
[ username: <string> ]
[ password: <string> ]
# Optional bearer token authentication information.
[ bearer_token: <string> ]
# Optional bearer token file authentication information. If running in a pod,
# then it is best to use a service account and set in_cluster to true.
[ bearer_token_file: <filename> ]
# TLS configuration. If running in a pod, then it is best to use a service
# TLS configuration. If running in a pod, then it is best to use a service
# account and set in_cluster to true.
# account and set in_cluster to true.
...
...
content/docs/querying/basics.md
View file @
58bf5a09
...
@@ -85,7 +85,7 @@ For example, this selects all `http_requests_total` time series for `staging`,
...
@@ -85,7 +85,7 @@ For example, this selects all `http_requests_total` time series for `staging`,
http_requests_total{environment=~"staging|testing|development",method!="GET"}
http_requests_total{environment=~"staging|testing|development",method!="GET"}
Label matchers that match empty label values also select all time series that do
Label matchers that match empty label values also select all time series that do
not have the specific label set at all. Regex-matches are
not
anchored.
not have the specific label set at all. Regex-matches are
fully
anchored.
Vector selectors must either specify a name or at least one label matcher
Vector selectors must either specify a name or at least one label matcher
that does not match the empty string. The following expression is illegal:
that does not match the empty string. The following expression is illegal:
...
...
content/docs/querying/functions.md
View file @
58bf5a09
...
@@ -51,6 +51,16 @@ For each input time series, `changes(v range-vector)` returns the number of
...
@@ -51,6 +51,16 @@ For each input time series, `changes(v range-vector)` returns the number of
times its value has changed within the provided time range as an instant
times its value has changed within the provided time range as an instant
vector.
vector.
## `clamp_max()`
`clamp_max(v instant-vector, max scalar)`
clamps the sample values of all
elements in
`v`
to have an upper limit of
`max`
.
## `clamp_min()`
`clamp_min(v instant-vector, min scalar)`
clamps the sample values of all
elements in
`v`
to have a lower limit of
`min`
.
## `count_scalar()`
## `count_scalar()`
`count_scalar(v instant-vector)`
returns the number of elements in a time series
`count_scalar(v instant-vector)`
returns the number of elements in a time series
...
...
content/docs/querying/operators.md
View file @
58bf5a09
...
@@ -53,11 +53,9 @@ and vector/vector value pairs. By default they filter. Their behaviour can be
...
@@ -53,11 +53,9 @@ and vector/vector value pairs. By default they filter. Their behaviour can be
modified by providing
`bool`
after the operator, which will return
`0`
or
`1`
modified by providing
`bool`
after the operator, which will return
`0`
or
`1`
for the value rather than filtering.
for the value rather than filtering.
**Between two scalars**
, these operators result in another scalar that is
**Between two scalars**
, the
`bool`
modifier must be provided and these
either
`0`
(
`false`
) or
`1`
(
`true`
), depending on the comparison result.
operators result in another scalar that is either
`0`
(
`false`
) or
`1`
The
`bool`
modifier has no effect on this comparison, however it's
(
`true`
), depending on the comparison result.
recommended to always provide it due to
[
upcoming changes
](
https://github.com/prometheus/prometheus/issues/482
)
.
**Between an instant vector and a scalar**
, these operators are applied to the
**Between an instant vector and a scalar**
, these operators are applied to the
value of every data sample in the vector, and vector elements between which the
value of every data sample in the vector, and vector elements between which the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment