Coder Social home page Coder Social logo

Comments (9)

patsevanton avatar patsevanton commented on July 4, 2024

May be project have switch: enable/disable wavefront?

from spring-petclinic-cloud.

arey avatar arey commented on July 4, 2024

I am in favor of the possibility of disabling wavefront on the k8s profile. Could you work on this idea?

from spring-petclinic-cloud.

patsevanton avatar patsevanton commented on July 4, 2024

I try to disable wavefront by issue wavefrontHQ/wavefront-spring-boot#57

In https://github.com/spring-petclinic/spring-petclinic-cloud/blob/master/k8s/api-gateway-deployment.yaml use SPRING_PROFILES_ACTIVE - kubernetes

cat spring-petclinic-api-gateway/src/main/resources/bootstrap.yml

---
spring:
  profiles: kubernetes
  cloud:
    config:
      enabled: false
    kubernetes:
      reload:
        strategy: restart-context
        enabled: true
      config:
        enabled: true
        name: petclinic-config
management:
  endpoint:
    restart:
      enabled: true
  metrics:
    export:
      wavefront:
        enabled: false

Run skaffold dev --default-repo antonpatsev

Get error

api-gateway-84d66b6dd4-kg948 api-gateway 2021-10-29 08:36:00.615 ERROR [api-gateway,,,] 1 --- [tClientSender-0] c.w.s.c.c.service.ReportingService       : Unable to obtain status code from the Wavefront service at http://wavefront-proxy.spring-petclinic.svc.cluster.local:2878/report?f=trace
api-gateway-84d66b6dd4-kg948 api-gateway 
api-gateway-84d66b6dd4-kg948 api-gateway java.net.UnknownHostException: wavefront-proxy.spring-petclinic.svc.cluster.local
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/java.net.AbstractPlainSocketImpl.connect(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/java.net.Socket.connect(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/sun.net.NetworkClient.doConnect(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/sun.net.www.http.HttpClient.openServer(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/sun.net.www.http.HttpClient.<init>(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/sun.net.www.http.HttpClient.New(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/java.net.HttpURLConnection.getResponseCode(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at com.wavefront.sdk.common.clients.service.ReportingService.safeGetResponseCodeAndClose(ReportingService.java:77)
api-gateway-84d66b6dd4-kg948 api-gateway        at com.wavefront.sdk.common.clients.service.ReportingService.send(ReportingService.java:68)
api-gateway-84d66b6dd4-kg948 api-gateway        at com.wavefront.sdk.common.clients.WavefrontClient.internalFlush(WavefrontClient.java:515)
api-gateway-84d66b6dd4-kg948 api-gateway        at com.wavefront.sdk.common.clients.WavefrontClient.flushNoCheck(WavefrontClient.java:472)
api-gateway-84d66b6dd4-kg948 api-gateway        at com.wavefront.sdk.common.clients.WavefrontClient.flush(WavefrontClient.java:460)
api-gateway-84d66b6dd4-kg948 api-gateway        at com.wavefront.sdk.common.clients.WavefrontClient.run(WavefrontClient.java:448)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway        at java.base/java.lang.Thread.run(Unknown Source)
api-gateway-84d66b6dd4-kg948 api-gateway 

May be i incorrect add management.metrics.export.wavefront.enabled=false ?

from spring-petclinic-cloud.

patsevanton avatar patsevanton commented on July 4, 2024

May be create issue in https://github.com/wavefrontHQ/wavefront-spring-boot ?

from spring-petclinic-cloud.

snicoll avatar snicoll commented on July 4, 2024

I think we should keep this conversation here. The configuration to disable the endpoint should be read soon enough (that is not via configuration server). How is this configuration file loaded ?

from spring-petclinic-cloud.

patsevanton avatar patsevanton commented on July 4, 2024

@snicoll I am sorry. I am DevOps engineer. Where i can find configuration file ?

from spring-petclinic-cloud.

snicoll avatar snicoll commented on July 4, 2024

@patsevanton sorry I've noticed that you did answered my question already. I am not sure bootstrap.yml is the best place for this. See also the issue I've created.

from spring-petclinic-cloud.

patsevanton avatar patsevanton commented on July 4, 2024

any news?

from spring-petclinic-cloud.

arey avatar arey commented on July 4, 2024

Yes see #43

from spring-petclinic-cloud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.