Skip to content

Commit fb6dc7e

Browse files
loujarjdpleiness
andauthored
Fix for prometheus scraping of cAdvisor metrics (#957)
* exposing cadvisor metrics on port 48080 for prometheus scraping * update comment --------- Co-authored-by: Jacob Pleiness <[email protected]>
1 parent 81ca27f commit fb6dc7e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docker-compose/docker-compose.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ services:
486486
# Description: Publishes Prometheus metrics about Docker containers.
487487
#
488488
# Disk: none
489-
# Ports exposed to other Sourcegraph services: 8080/TCP
489+
# Ports exposed to other Sourcegraph services: 48080/TCP
490490
# Ports exposed to the public internet: none
491491
#
492492
cadvisor:
@@ -513,8 +513,8 @@ services:
513513
networks:
514514
- sourcegraph
515515
restart: always
516-
command:
517-
- --port=8080
516+
expose:
517+
- 48080
518518

519519
# Description: Publishes Prometheus metrics about the machine's hardware / operating system.
520520
#

prometheus/prometheus_targets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
nodename: "sourcegraph-docker-compose-host"
44
job: node
55
targets:
6-
- cadvisor:8080
6+
- cadvisor:48080
77
- sourcegraph-frontend-internal:6060
88
- labels:
99
nodename: "sourcegraph-docker-compose-host"

0 commit comments

Comments
 (0)