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

How to run Prometheus with mesh start without giving an error? #6545

Closed
jaksonlima opened this issue Feb 7, 2024 · 1 comment · Fixed by #6911
Closed

How to run Prometheus with mesh start without giving an error? #6545

jaksonlima opened this issue Feb 7, 2024 · 1 comment · Fixed by #6911

Comments

@jaksonlima
Copy link

🕸️ Mesh - Worker 4 💥 Error: A metric with the name graphql_mesh_fetch_duration has already been registered.

configuração

# ...
serve:
  hostname: 0.0.0.0
  playground: true
  fork: 2
# cors:
#   origin: http://localhost:4001

# ...
sources:
  - name: API-V1
    handler:
      graphql:
        endpoint: ${API_V1:http://localhost:3004/graphql}
  - name: API-V2
    handler:
      graphql:
        endpoint: ${API_V2:http://localhost:3005/graphql}

plugins:
  - prometheus:
      skipIntrospection: true
      requestCount: true
      requestSummary: true
      parse: true
      validate: true
      contextBuilding: true
      execute: true
      errors: true
      delegation: true
      fetch: true
      fetchRequestHeaders: true
      fetchResponseHeaders: true
      http: gateway
      httpRequestHeaders: true
      httpResponseHeaders: true
      deprecatedFields: true
      endpoint: /metrics

@cgpoh
Copy link

cgpoh commented Mar 20, 2024

I get the same issue. My dependencies are as follows:

"@graphql-mesh/plugin-prometheus":` "^0.98.2",
"prom-client": "^15.1.0"

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

Successfully merging a pull request may close this issue.

2 participants