sourcegraph/dev/prometheus
Robert Lin 5fa93155fc
telemetry-gateway: migrate to MSP runtime (#58814)
This change migrates Telemetry Gateway to use the MSP runtime library for service initialization, which now handles Sentry, OpenTelemetry, etc and offers a simpler interface for defining services.

Because we now only expose 1 port (i.e. no debugserver port), I've made the default in local dev `6080`, because my browser was complaining about `10080`.

## Test plan

```sh
sg run telemetry-gateway
curl http://localhost:6080/-/version
# 0.0.0+dev%                                                  
curl http://localhost:6080/-/healthz
# unauthorized%                                              
curl -H 'Authorization: bearer sekret' http://localhost:6080/-/healthz
# healthz: ok%                                            
```

Also visit http://localhost:6080/debug/grpcui/ and http://localhost:6080/metrics, which are expected to be enabled in local dev.

Then try with full Sourcegraph stack:

```
sg start
```

<img width="660" alt="image" src="https://github.com/sourcegraph/sourcegraph/assets/23356519/9e799c58-4d02-4752-9f9f-da3108ba762f">
2023-12-08 12:14:34 -08:00
..
all telemetry-gateway: migrate to MSP runtime (#58814) 2023-12-08 12:14:34 -08:00
linux msp/runtime: add diagnostics handlers (#58762) 2023-12-06 10:54:09 -08:00
BUILD.bazel Switch to OCI/Wolfi based image (#52693) 2023-06-02 12:12:52 +02:00
README.md dev env: launch prometheus if desired (#4963) 2019-08-05 13:50:27 -07:00

Prometheus configuration

This directory contains configuration for the Prometheus metrics deployment.

This directory is mounted into the prometheus container. After making your changes to this directory, simply docker restart prometheus for your changes to take effect (depending on your change, Prometheus may respond to it as soon as you save the file).