Comments (9)
May be project have switch: enable/disable wavefront?
from spring-petclinic-cloud.
I am in favor of the possibility of disabling wavefront on the k8s profile. Could you work on this idea?
from spring-petclinic-cloud.
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.
May be create issue in https://github.com/wavefrontHQ/wavefront-spring-boot ?
from spring-petclinic-cloud.
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.
@snicoll I am sorry. I am DevOps engineer. Where i can find configuration file ?
from spring-petclinic-cloud.
@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.
any news?
from spring-petclinic-cloud.
Yes see #43
from spring-petclinic-cloud.
Related Issues (20)
- CloudFoundry deployment on PCF Dev HOT 5
- Give unique image name HOT 10
- Align k8s namespace to spring-petclinic HOT 5
- Support Azure Spring Cloud
- Fix typo in config-map.yaml - vists instead of visits HOT 3
- Docker spring-petclinic-config-server:latest not found HOT 7
- Unrecognized VM option 'UseCGroupMemoryLimitForHeap' when use java11 HOT 2
- How correct enable/disable endpoint of Spring Cloud via env variable? HOT 1
- Can i help for actualization readme? HOT 1
- deploying "customers-db-mysql": install: exit status 1 HOT 1
- couldn't parse image reference "${REPOSITORY_PREFIX} HOT 2
- java.sql.SQLSyntaxErrorException: Unknown database 'service_instance_db' HOT 2
- Remove use of Spring Cloud's bootstrap context HOT 1
- Consider using the official Spring Cloud Docker images
- how to deploy any war file or any html file into spring petclinic, is it possible? HOT 2
- how to deploy any war file or any html file into spring petclinic, is it possible? how to deploy anything by usnig this spring petclinic projetc HOT 2
- Skaffold Build Fails - Incompatible Maven Version
- Error: INSTALLATION FAILED: chart requires kubeVersion: >= 1.18.10 <= 1.20.5 HOT 4
- Switch to the spring-petclinic-cloud-config repo HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-petclinic-cloud.