Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8464ef8e
Commit
8464ef8e
authored
Sep 21, 2020
by
Philippe Charrière
Committed by
Amy Qualls (slowly returning after surgery)
Sep 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: Add a user tip to ease the access to Prometheus
parent
174311b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
doc/development/prometheus.md
doc/development/prometheus.md
+10
-0
No files found.
doc/development/prometheus.md
View file @
8464ef8e
...
...
@@ -47,3 +47,13 @@ using a Prometheus managed application in Kubernetes:
```
1.
Open
`localhost:9090`
in your browser to display the Prometheus user interface.
## Script access to Prometheus
You can script the access to Prometheus, extracting the name of the pod automatically like this:
```
shell
POD_INFORMATION
=
$(
kubectl get pods
-n
gitlab-managed-apps |
grep
'prometheus-prometheus-server'
)
POD_NAME
=
$(
echo
$POD_INFORMATION
|
awk
'{print $1;}'
)
kubectl port-forward
$POD_NAME
9090:9090
-n
gitlab-managed-apps
```
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