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
0d1ce770
Commit
0d1ce770
authored
May 20, 2015
by
Julius Volz
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #90 from prometheus/fabxc/cfg
Add basic auth and reloading to configuration docs
parents
a4933287
08aae9ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
configuration.md
content/docs/operating/configuration.md
+10
-0
rules.md
content/docs/querying/rules.md
+4
-1
No files found.
content/docs/operating/configuration.md
View file @
0d1ce770
...
...
@@ -14,6 +14,11 @@ load](/docs/querying/rules/#configuring-rules).
To view all available command-line flags, run
`prometheus -h`
.
Prometheus can reload its configuration at runtime. If the new configuration
is not well-formatted the changes will not be applied.
A configuration reload is triggered by sending
`SIGHUP`
to the Prometheus process.
This will also reload any configured rule files.
## Configuration file
...
...
@@ -93,6 +98,11 @@ job_name: <name>
# The URL scheme with which to fetch metrics from targets.
[ scheme: <scheme> | default = http ]
# HTTP basic authentication information.
basic_auth:
[ username: <string> ]
[ password: <string> ]
# List of DNS service discovery configurations.
dns_sd_configs:
[ - <dns_sd_config> ... ]
...
...
content/docs/querying/rules.md
View file @
0d1ce770
...
...
@@ -10,7 +10,10 @@ Prometheus supports two types of rules which may be configured and then
evaluated at regular intervals: recording rules and alerting rules. To include
rules in Prometheus, create a file containing the necessary rule statements and
have Prometheus load the file via the
`rule_files`
field in the
[
Prometheus
configuration](https://github.com/prometheus/prometheus/blob/master/config/config.proto).
configuration](/docs/operating/configuration).
The rule files can be reloaded at runtime by sending
`SIGHUP`
to the Prometheus
process. The changes are only applied if all rule files are well-formatted.
## Syntax-checking rules
To quickly check whether a rule file is syntactically correct without starting
...
...
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