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
db2869b1
Commit
db2869b1
authored
Sep 03, 2015
by
Jimmi Dyson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Kubernetes SD docs
Fixes #202
parent
fefdb4eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
configuration.md
content/docs/operating/configuration.md
+12
-8
No files found.
content/docs/operating/configuration.md
View file @
db2869b1
...
...
@@ -278,14 +278,17 @@ CAUTION: Kubernetes SD is in beta: breaking changes to configuration are still
likely in future releases.
Kubernetes SD configurations allow retrieving scrape targets from
[
Kubernetes'
](
http://kubernetes.io/
)
REST API. By default, this discovers nodes
and appropriately annotated services so that metrics from both cluster
components and deployed applications can be scraped. This will create multiple
target groups: one for all nodes with each node as a target; and one for each
service containing each service endpoint as a target.
[
Kubernetes'
](
http://kubernetes.io/
)
REST API. By default, this discovers
masters, nodes, and appropriately annotated services so that metrics from both
cluster components and deployed applications can be scraped. This will create
multiple target groups: one for all masters with each master as a target, one
for all nodes with each node as a target, and one for each service containing
each service endpoint as a target.
The following meta labels are available on targets during relabeling:
*
`__meta_kubernetes_role`
: the role of the target: one of
`master`
,
`node`
or
`service`
*
`__meta_kubernetes_node`
: the name of the node from the Kubernetes API
*
`__meta_kubernetes_node_label_<labelname>`
: each node label from the
Kubernetes API
...
...
@@ -301,9 +304,10 @@ See below for the configuration options for Kubernetes discovery:
```
# The information to access the Kubernetes API.
# The server address. In a cluster this will normally be
# https://kubernetes.default.svc.
server: <host>
# The master addresses. In a cluster this will normally be
# `https://kubernetes.default.svc`. Supports multiple HA masters.
masters:
- [<host>]
# Run in cluster. This will use the automounted CA certificate and bearer
# token file at /var/run/secrets/kubernetes.io/serviceaccount/ in the pod.
...
...
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