Mimir port 9095

When I try to run Mimir, it complains about port 9095 already being used.

ts=2023-02-21T23:08:51.714171682Z
caller=log.go:65
level=error
msg="error running application"
err="
    listen tcp :9095: bind: address already in use

    error initialising module: server
    github.com/grafana/dskit/modules.(*Manager).initModule
        /go/src/github.com/grafana/mimir/vendor/github.com/grafana/dskit/modules/modules.go:122
    github.com/grafana/dskit/modules.(*Manager).InitModuleServices
        /go/src/github.com/grafana/mimir/vendor/github.com/grafana/dskit/modules/modules.go:92
    github.com/grafana/mimir/pkg/mimir.(*Mimir).Run
        /go/src/github.com/grafana/mimir/pkg/mimir/mimir.go:752
    main.main
        /go/src/github.com/grafana/mimir/cmd/mimir/main.go:212
    runtime.main
        /usr/local/go/src/runtime/proc.go:250
    runtime.goexit
        /usr/local/go/src/runtime/asm_amd64.s:1594
"

I am using a very basic config file.

config.yaml
---

target: all

multitenancy_enabled: false

server:
    http_listen_port: 9009
    log_level: error

blocks_storage:
    backend: filesystem
    bucket_store:
      sync_dir: /tmp/mimir/tsdb-sync
    filesystem:
      dir: /tmp/mimir/data/tsdb
    tsdb:
      dir: /tmp/mimir/tsdb

When I search the documentation site the only reference to this port is an article about “Grafana Mimir query-tee”, which mentions that port 9095 has to do with a gRPC service.

If port 9095 is a requirement for Mimir to run, it makes sense to me that there would be some prominent documentation about it, probably in the “Get started with Grafana Mimir” document.

If I am already using port 9095 for something else, where do I specify the custom port the configuration?

I have discovered that Loki also wants to claim the same default port (9095) as Mimir does. This means that either I specify a custom port for one of those two services, or ensure that neither service is ever allowed to run on the same machine.

And it looks like the configuration for adjusting the port on Mimir is also the same as Loki.

server:
  http_listen_port: 9009
  grpc_listen_port: <custom-port>