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
7414a3d6
Commit
7414a3d6
authored
May 19, 2015
by
Fabian Reinartz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add consul SD documentation
parent
a40ad094
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
configuration.md
content/docs/operating/configuration.md
+35
-0
No files found.
content/docs/operating/configuration.md
View file @
7414a3d6
...
@@ -97,6 +97,10 @@ job_name: <name>
...
@@ -97,6 +97,10 @@ job_name: <name>
dns_sd_configs:
dns_sd_configs:
[ - <dns_sd_config> ... ]
[ - <dns_sd_config> ... ]
# List of Consul service discovery configurations.
consul_sd_configs:
[ - <consul_sd_config> ... ]
# List of labeled target groups for this job.
# List of labeled target groups for this job.
target_groups:
target_groups:
[ - <target_group> ... ]
[ - <target_group> ... ]
...
@@ -150,6 +154,37 @@ names:
...
@@ -150,6 +154,37 @@ names:
Where
`<host>`
is a valid hostname.
Where
`<host>`
is a valid hostname.
### Consul SD configurations `<consul_sd_config>`
Consul SD configurations allow to retrieve scrape targets from
[
Consul's
](
https://www.consul.io
)
Catalog API.
The following labels are attached to targets:
*
`__meta_consul_node`
: the node name defined for the target
*
`__meta_consul_tags`
: the list of tags of the target joined by the tag separator
*
`__meta_consul_service`
: the name of the service the target belongs to
*
`__meta_consul_dc`
: the datacenter string for the target
```
# The information to access the Consul API. It is to be defined
# as the Consul documentation requires.
server: <host>
[ token: <string> ]
[ datacenter: <string> ]
[ scheme: <string> ]
[ username: <string> ]
[ password: <string> ]
# A list of services for which targets are retrieved.
services:
[ - <string> ]
# The string by which consul tags are joined into the tag label.
[ tag_separator: <string> | default = , ]
```
### Relabeling `<relabel_config>`
### Relabeling `<relabel_config>`
Relabeling is a powerful tool to dynamically rewrite the label set of a target before
Relabeling is a powerful tool to dynamically rewrite the label set of a target before
...
...
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