Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
signalboost
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gagz
signalboost
Commits
186153bc
Commit
186153bc
authored
6 years ago
by
ziggy
Browse files
Options
Downloads
Patches
Plain Diff
add prometheus to docker-compose
* include basic configuration file
parent
5feeb8b4
Branches
monitoring
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
docker-compose.yml
+9
-0
9 additions, 0 deletions
docker-compose.yml
prometheus.yml
+28
-0
28 additions, 0 deletions
prometheus.yml
with
37 additions
and
0 deletions
docker-compose.yml
+
9
−
0
View file @
186153bc
...
...
@@ -78,3 +78,12 @@ services:
-
proxy-tier
depends_on
:
-
proxy
prometheus
:
image
:
prom/prometheus
container_name
:
prometheus
ports
:
-
127.0.0.1:9090:9090
volumes
:
-
./prometheus.yml:/etc/prometheus/prometheus.yml
This diff is collapsed.
Click to expand it.
prometheus.yml
0 → 100644
+
28
−
0
View file @
186153bc
# my global config
global
:
scrape_interval
:
15s
evaluation_interval
:
15s
# Alertmanager configuration
alerting
:
alertmanagers
:
-
static_configs
:
-
targets
:
# - alertmanager:9093
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files
:
# - "first_rules.yml"
# - "second_rules.yml"
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs
:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
-
job_name
:
'
prometheus'
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs
:
-
targets
:
[
'
localhost:9090'
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment