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
24c62b17
Commit
24c62b17
authored
Aug 24, 2015
by
Julius Volz
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #181 from jimmidyson/auth-options
Document new authentication features
parents
109decd0
f6866cff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
configuration.md
content/docs/operating/configuration.md
+29
-1
No files found.
content/docs/operating/configuration.md
View file @
24c62b17
...
...
@@ -83,6 +83,20 @@ dynamically discovered using one of the supported service-discovery mechanisms.
Additionally,
`relabel_configs`
allow advanced modifications to any
target and its labels before scraping.
If the targets require authentication, the following options are available:
*
`basic_auth`
- sets the
`Authorization`
header on every scrape request with the
configured username and password.
*
`client_cert`
- configures the scrape request to use
[
mutual TLS
](
https://en.wikipedia.org/wiki/Mutual_authentication
)
with the
configured certificate and key.
*
`bearer_token`
- sets the
`Authorization`
header on every scrape request with
the configured bearer token.
*
`bearer_token_file`
- sets the
`Authorization`
header on every scrape request
with the bearer token read from the configured file.
See below for the configuration of these authentication options.
```
# The job name assigned to scraped metrics by default.
job_name: <name>
...
...
@@ -114,11 +128,25 @@ job_name: <name>
# The URL scheme with which to fetch metrics from targets.
[ scheme: <scheme> | default = http ]
# HTTP basic authentication information.
# Optional authentication information. Note that `basic_auth`, `bearer_token`
# `bearer_token_file` options are mutually exclusive.
# Optional HTTP basic authentication information.
basic_auth:
[ username: <string> ]
[ password: <string> ]
# Optional client certificate authentication information.
client_cert:
[ cert: /path/to/cert/file ]
[ key: /path/to/key/file ]
# Optional bearer token authentication information.
[ bearer_token: <string> ]
# Optional bearer token file authentication information.
[ bearer_token_file: /path/to/bearer/token/file ]
# List of DNS service discovery configurations.
dns_sd_configs:
[ - <dns_sd_config> ... ]
...
...
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