Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metric not exposed without workersAutoDiscovery property when using spring boot actuator. #2287

Open
GwiYeong opened this issue Oct 22, 2024 · 1 comment

Comments

@GwiYeong
Copy link

Expected Behavior

I'm using temporal spring boot io.temporal:temporal-spring-boot-starter:1.25.1 and try to scrape metric from the temporal client.
I have two application, one is worker and other is api. Worker application was successfully showing metric(I can get metric from http://localhost:8080/metrics/prometheus but api application could not. After I'm trying to resolve this problem, finally I found one thing.
This is my api application properties

spring:
  temporal:
    namespace: local
    connection:
      target: 127.0.0.1:7233

There is no workersAutoDiscovery property that the worker has, because api doesn't need to start the worker, only use workflowClient, so I didn't put the property.
After putting the workersAutoDiscovery as dummy, the api application is showing metric (still worker is not started because package is dummy)

spring:
  temporal:
    namespace: local
    connection:
      target: 127.0.0.1:7233
    workersAutoDiscovery:
      packages: dummy

Actual Behavior

Shows the temporal metric to the actuator without the workersAutoDiscovery property.

Steps to Reproduce the Problem

  1. As written above.

Specifications

  • Version: io.temporal:temporal-spring-boot-starter:1.25.1
  • Platform: Java 18
@Quinn-With-Two-Ns
Copy link
Contributor

just to confirm are you using the client bean to make requests and still not seeing metrics?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants