Configure metrics in temporal server

Hi

I have been trying to configure the OSS temporal service metrics that are described here in my temporal server with the splunk collector and splunk cloud.

I was able to get some trace data out of the server and into splunk cloud by adding the following to my configuration file

otel:
  exporters:
    - kind:
        signal: traces
        model: otlp
        protocol: grpc
      spec:
        connection:
          insecure: true
          endpoint: {{ default .Env.OTEL_EXPORTER_OTLP_ENDPOINT "localhost:4317"}}

But I don’t see any of the metrics mentioned in the documentation. Is there additional configuration I need to enable the metrics?

fwiw, I did try switching the value of signal to metrics without any luck

Did you configure metrics endpoint in your service static config (see here)
Could use PROMETHEUS_ENDPOINT env var directly and then define each service metrics endpoint in for example Prometheus scrape_configs

1 Like

Thanks tihomir, it took me a bit to get prometheus up and going but it looks like that’s what I was missing.

I was actually hoping we could configure metrics with an exporter instead. But it looks like maybe that’s not supported yet