Skip to content

Commit

Permalink
Fix for prometheus scraping of cAdvisor metrics (#957)
Browse files Browse the repository at this point in the history
* exposing cadvisor metrics on port 48080 for prometheus scraping

* update comment

---------

Co-authored-by: Jacob Pleiness <jdpleiness@users.noreply.github.com>
  • Loading branch information
loujar and jdpleiness committed Nov 20, 2023
1 parent 81ca27f commit fb6dc7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docker-compose/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ services:
# Description: Publishes Prometheus metrics about Docker containers.
#
# Disk: none
# Ports exposed to other Sourcegraph services: 8080/TCP
# Ports exposed to other Sourcegraph services: 48080/TCP
# Ports exposed to the public internet: none
#
cadvisor:
Expand All @@ -513,8 +513,8 @@ services:
networks:
- sourcegraph
restart: always
command:
- --port=8080
expose:
- 48080

# Description: Publishes Prometheus metrics about the machine's hardware / operating system.
#
Expand Down
2 changes: 1 addition & 1 deletion prometheus/prometheus_targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
nodename: "sourcegraph-docker-compose-host"
job: node
targets:
- cadvisor:8080
- cadvisor:48080
- sourcegraph-frontend-internal:6060
- labels:
nodename: "sourcegraph-docker-compose-host"
Expand Down

0 comments on commit fb6dc7e

Please sign in to comment.