Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cloud_Computing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Alexander Tim Hobelsberger
Cloud_Computing
Commits
65a0ac5d
Commit
65a0ac5d
authored
2 years ago
by
Markus Klose
Browse files
Options
Downloads
Patches
Plain Diff
Fixed prometheus.yml config path
parent
b805dc58
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
docker-compose.yaml
+5
-2
5 additions, 2 deletions
docker-compose.yaml
prometheus/prometheus.yml
+1
-0
1 addition, 0 deletions
prometheus/prometheus.yml
with
7 additions
and
3 deletions
Dockerfile
+
1
−
1
View file @
65a0ac5d
...
@@ -10,7 +10,7 @@ COPY ["package.json", "package-lock.json*", "./"]
...
@@ -10,7 +10,7 @@ COPY ["package.json", "package-lock.json*", "./"]
RUN
npm
install
RUN
npm
install
# Bundle app source code inside the Docker Image
# Bundle app source code inside the Docker Image
COPY
. .
EXPOSE
3000
EXPOSE
3000
CMD
[ "npm", "start" ]
CMD
[ "npm", "start" ]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker-compose.yaml
+
5
−
2
View file @
65a0ac5d
...
@@ -7,11 +7,12 @@ services:
...
@@ -7,11 +7,12 @@ services:
ports
:
ports
:
-
"
9090:9090"
-
"
9090:9090"
volumes
:
volumes
:
-
/etc/prometheus:/etc/prometheus
-
./prometheus:/etc/prometheus
-
prometheus-data:/prometheus
restart
:
unless-stopped
restart
:
unless-stopped
command
:
command
:
-
"
--config.file=/etc/prometheus/prometheus.yml"
-
"
--config.file=/etc/prometheus/prometheus.yml"
grafana
:
grafana
:
image
:
grafana/grafana:latest
image
:
grafana/grafana:latest
container_name
:
grafana
container_name
:
grafana
...
@@ -42,6 +43,8 @@ services:
...
@@ -42,6 +43,8 @@ services:
volumes
:
volumes
:
mongodb
:
mongodb
:
prometheus
:
prometheus-data
:
prometheus-data
:
grafana-data
:
grafana-data
:
grafana
:
This diff is collapsed.
Click to expand it.
etc/
prometheus/prometheus.yml
→
prometheus/prometheus.yml
+
1
−
0
View file @
65a0ac5d
...
@@ -17,4 +17,5 @@ scrape_configs:
...
@@ -17,4 +17,5 @@ scrape_configs:
static_configs
:
static_configs
:
-
targets
:
[
'
localhost:9090'
]
-
targets
:
[
'
localhost:9090'
]
-
targets
:
[
'
localhost:3000'
]
\ No newline at end of file
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