mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 13:11:49 +00:00
sg: Fix prometheus scraping for local dev (#43703)
This was missing github-proxy and the new dual deployment of gitserver.
This commit is contained in:
parent
4f1ff590f3
commit
82443158d9
@ -7,8 +7,10 @@
|
||||
- labels:
|
||||
job: gitserver
|
||||
targets:
|
||||
# gitserver
|
||||
- host.docker.internal:6068
|
||||
# gitserver 1
|
||||
- host.docker.internal:3551
|
||||
# gitserver 2
|
||||
- host.docker.internal:3552
|
||||
- labels:
|
||||
job: searcher
|
||||
targets:
|
||||
@ -56,3 +58,8 @@
|
||||
targets:
|
||||
# postgres exporter
|
||||
- host.docker.internal:9187
|
||||
- labels:
|
||||
job: github-proxy
|
||||
targets:
|
||||
# github proxy
|
||||
- host.docker.internal:6090
|
||||
|
||||
@ -7,8 +7,10 @@
|
||||
- labels:
|
||||
job: gitserver
|
||||
targets:
|
||||
# gitserver
|
||||
- 127.0.0.1:6068
|
||||
# gitserver 1
|
||||
- 127.0.0.1:3551
|
||||
# gitserver 2
|
||||
- 127.0.0.1:3552
|
||||
- labels:
|
||||
job: searcher
|
||||
targets:
|
||||
@ -56,3 +58,8 @@
|
||||
targets:
|
||||
# postgres exporter
|
||||
- 127.0.0.1:9187
|
||||
- labels:
|
||||
job: github-proxy
|
||||
targets:
|
||||
# github proxy
|
||||
- 127.0.0.1:6090
|
||||
|
||||
@ -42,7 +42,6 @@ env:
|
||||
GRAFANA_SERVER_URL: http://localhost:3370
|
||||
PROMETHEUS_URL: http://localhost:9090
|
||||
JAEGER_SERVER_URL: http://localhost:16686
|
||||
ZOEKT_HOST: localhost:3070
|
||||
|
||||
SRC_DEVELOPMENT: 'true'
|
||||
SRC_PROF_HTTP: ''
|
||||
@ -59,6 +58,7 @@ env:
|
||||
{ "Name": "repo-updater", "Host": "127.0.0.1:6074" },
|
||||
{ "Name": "codeintel-worker", "Host": "127.0.0.1:6088" },
|
||||
{ "Name": "oss-worker", "Host": "127.0.0.1:6089" },
|
||||
{ "Name": "github-proxy", "Host": "127.0.0.1:6090" },
|
||||
{ "Name": "worker", "Host": "127.0.0.1:6089" },
|
||||
{ "Name": "worker-executors", "Host": "127.0.0.1:6996" },
|
||||
{ "Name": "zoekt-index-0", "Host": "127.0.0.1:6072" },
|
||||
@ -204,6 +204,7 @@ commands:
|
||||
HOSTNAME: 127.0.0.1:3501
|
||||
GITSERVER_ADDR: 127.0.0.1:3501
|
||||
SRC_REPOS_DIR: $HOME/.sourcegraph/repos_1
|
||||
SRC_PROF_HTTP: 127.0.0.1:3551
|
||||
|
||||
gitserver-1:
|
||||
<<: *gitserver_template
|
||||
@ -212,6 +213,7 @@ commands:
|
||||
HOSTNAME: 127.0.0.1:3502
|
||||
GITSERVER_ADDR: 127.0.0.1:3502
|
||||
SRC_REPOS_DIR: $HOME/.sourcegraph/repos_2
|
||||
SRC_PROF_HTTP: 127.0.0.1:3552
|
||||
|
||||
github-proxy:
|
||||
cmd: .bin/github-proxy
|
||||
@ -221,8 +223,6 @@ commands:
|
||||
fi
|
||||
go build -gcflags="$GCFLAGS" -o .bin/github-proxy github.com/sourcegraph/sourcegraph/cmd/github-proxy
|
||||
checkBinary: .bin/github-proxy
|
||||
env:
|
||||
HOSTNAME: 127.0.0.1:3178
|
||||
watch:
|
||||
- lib
|
||||
- internal
|
||||
|
||||
Loading…
Reference in New Issue
Block a user