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

apollo configuration is not working? #4073

Closed
sinolan opened this issue Dec 16, 2019 · 6 comments
Closed

apollo configuration is not working? #4073

sinolan opened this issue Dec 16, 2019 · 6 comments
Assignees
Labels
question End user question and discussion.
Milestone

Comments

@sinolan
Copy link

sinolan commented Dec 16, 2019

Question

  • apollo configuration is not working?

  • Which version of SkyWalking, OS and JRE?
    6.5.0/ jdk1.8 / es7.5

  • What happen?
    First: my configuration segment
    configuration:
    #none:
    apollo:
    apolloMeta: http://172.31.242.161:8080,http://172.31.242.162:8080
    apolloCluster: default

    apolloEnv: # defaults to null

    appId: skywalking
    period: 10

And then, executing the startup.sh, following log::

2019-12-16 18:47:56,658 - com.ctrip.framework.apollo.internals.DefaultMetaServerProvider - 42 [main] INFO [] - Located meta services from apollo.meta configuration: http://172.31.242.1:8080,http://172.31.242.2:8080!
2019-12-16 18:47:56,659 - com.ctrip.framework.apollo.core.MetaDomainConsts - 93 [main] INFO [] - Located meta server address http://172.31.242.161:8080,http://172.31.242.162:8080 for env UAT from com.ctrip.framework.apollo.internals.DefaultMetaServerProvider
2019-12-16 18:47:56,736 - org.apache.skywalking.oap.server.configuration.apollo.ApolloConfigWatcherRegister - 54 [main] INFO [] - Read dynamic configs from Apollo namespace: application

but not loading config item from my apollo center. please help me ,tx.

@kezhenxu94 kezhenxu94 self-assigned this Dec 16, 2019
@kezhenxu94 kezhenxu94 added the question End user question and discussion. label Dec 16, 2019
@kezhenxu94
Copy link
Member

@Sinoryan what are your configurations in Apollo, can you share some of them? Or you can test with the Apollo Demo environment (remember not to put sensitive configurations there) and I can see it there

@kezhenxu94 kezhenxu94 added this to the 6.6.0 milestone Dec 16, 2019
@kezhenxu94
Copy link
Member

Apollo Demo Environment: http://106.54.227.205/config.html?#/appid=skywalking

@sinolan
Copy link
Author

sinolan commented Dec 17, 2019

@Sinoryan what are your configurations in Apollo, can you share some of them? Or you can test with the Apollo Demo environment (remember not to put sensitive configurations there) and I can see it there

I want to override some configuration items from skywalking application.yml , sush as following fragment:
storage:
elasticsearch:
nameSpace: ${SW_NAMESPACE:""}
clusterNodes: ${SW_STORAGE_ES_CLUSTER_NODES:localhost:9200}
protocol: ${SW_STORAGE_ES_HTTP_PROTOCOL:"http"}

In my apollo center configuration ::
image
all tried, include comment out of configuration items .
#storage.elasticsearch.clusterNodes = http://172.31.242.160:9200

@kezhenxu94
Copy link
Member

@Sinoryan not all config items in application.yml are dynamically configurable, check the documentation first, your efforts should not be wasted in such way

@sinolan
Copy link
Author

sinolan commented Dec 17, 2019

@Sinoryan not all config items in application.yml are dynamically configurable, check the documentation first, your efforts should not be wasted in such way

Ok, got it. thank you!
By the way, How to open the login validation with spring security?

@kezhenxu94
Copy link
Member

@Sinoryan not all config items in application.yml are dynamically configurable, check the documentation first, your efforts should not be wasted in such way

Ok, got it. thank you!
By the way, How to open the login validation with spring security?

We don’t have that now

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

No branches or pull requests

2 participants