Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 13 11:13
    FJiayang closed #1277
  • Oct 13 10:58
    FJiayang edited #1277
  • Oct 13 10:58
    FJiayang opened #1277
  • Oct 11 06:31

    joshiste on gh-pages

    Docs for current (compare)

  • Oct 11 06:12
    joshiste milestoned #1269
  • Oct 11 06:11
    joshiste closed #1276
  • Oct 11 06:09

    joshiste on master

    Polish contribution (compare)

  • Oct 11 06:06
    joshiste closed #1269
  • Oct 11 06:06

    joshiste on master

    Allow configuring the protocol … Polish contribution (compare)

  • Oct 11 06:03

    joshiste on master

    support new parameter 'serviceS… Polish contribution (compare)

  • Oct 10 21:46

    joshiste on gh-pages

    Docs for current (compare)

  • Oct 10 21:32

    joshiste on gh-pages

    Docs for current (compare)

  • Oct 10 21:31

    joshiste on master

    Fix deprecated configprops (compare)

  • Oct 10 21:27

    joshiste on master

    Fix deprecations (compare)

  • Oct 10 21:19

    joshiste on master

    Use proxyBeanMethods = false fo… (compare)

  • Oct 08 19:12

    joshiste on gh-pages

    Docs for current (compare)

  • Oct 08 18:59
    joshiste milestoned #1256
  • Oct 08 18:58
    joshiste closed #1275
  • Oct 08 18:58
    joshiste closed #1256
  • Oct 08 18:58

    joshiste on master

    Allow creation of new Loggers (… Polish contribution (compare)

Johannes Edmeier
@joshiste
Grafana
Hem Chand
@versatile-hem
thanks
Dhaval Shewale
@DhavalShewale
I have created a spring boot admin war project by referring the available samples and I am facing below issues. Can you pls advice.
  1. Default Spring Security Login Page is loaded instead of login.html page.
  2. Logout button returns 403. On analysis I observed that it is a post form submit action. If I change the form method to get, then logout confirmation page is correctly loaded.
I am using spring boot admin 2.1.6 version
Johannes Edmeier
@joshiste
@DhavalShewale I've checked the sample. It works for me
Dhaval Shewale
@DhavalShewale
I figured it out. I had not overwritten the configure method of WebSecurityConfigurerAdaptor and was relying
on default spring security credentials provided in application.yml
Dhaval Shewale
@DhavalShewale
When is login page customization planned to be rolled out? It is not available in 2.1.6. I understand that it is already fixed and available in 2.2.0-SNAPSHOT. Can we have it release in 2.1.7?
Johannes Edmeier
@joshiste
@DhavalShewale are you referring to a specific issue?
Dhaval Shewale
@DhavalShewale
@joshiste Yes 1207 and 1201
While these are small changes it avoids confusion for someone using the portal as they might not be aware of the underlying framework implemented
Johannes Edmeier
@joshiste
@DhavalShewale There are no plans to backport these changes to the 2.1.x branch.
Dhaval Shewale
@DhavalShewale
@joshiste Is there a way to overwrite login page in that case? Only the login.html view is what I am expecting by placing it under assets or something like that?
I presume version 2.2 will not be released till we have an official release of spring boot 2.2
Johannes Edmeier
@joshiste
@DhavalShewale yes and yes
Dhaval Shewale
@DhavalShewale
@joshiste The documentation says that custom views can be added by placing them under META-INF/spring-boot-admin-server-ui/extensions/{name}. However I could find no such mention for login.html. Will simply placing a login.html under META-INF/spring-boot-admin-server-ui/ overwrite the existing file or I should place it in a predefined directory?
Johannes Edmeier
@joshiste

Will simply placing a login.html under META-INF/spring-boot-admin-server-ui/ overwrite the existing file

yes this should do it

Dhaval Shewale
@DhavalShewale
yes this should do it
I was wondering if it is possible to overwrite only icon-spring-boot-admin.svg instead of replacing the entire login.html. Is it possible?
I tried placing the image under img folder but it didnt work :(
Radek
@radas
How to setup cluster on node1 and node2. What to put here tcpIpConfig.setMembers(singletonList("node1,node2")); or node1 must have node2 in config a node must have node1?
Kristina Trajkovska
@kristinatrajkovska7
Does anybody used the spring boot admin 2.x without the UI or have an idea how should I do that? I need custom interface, just couple of the indicators of each client app on my dashboard as panels. I would appreciate any advice.
Dhaval Shewale
@DhavalShewale
@kristinatrajkovska7 You can directly fetch those metrics on a fixed interval from actuator end points and display them on your UI.
Kristina Trajkovska
@kristinatrajkovska7
@DhavalShewale Thank you, I was just thinking of just doing that :D
Ajju
@ajju1260_twitter
Is there any working example available for accessing oauth2 secured actuator endpoint from SBA.
Dominik Bartholdi
@imod
Hi, is there any way I can tell SBA to use https instead of http for all calls to the client instances running in cloudfoundry? defining service-base-url does not work, as it is ignored
Johannes Edmeier
@joshiste
@imod are you using the sba-client (if yes - which version?) or some kind of discovery?
Dominik Bartholdi
@imod
@joshiste we use spring-boot-admin-starter-client:2.1.5
Johannes Edmeier
@joshiste
setting the spring.boot.admin.client.instance.service-base-url should work. do you have any other spring.boot.admin.client.instance.* property set?
Dominik Bartholdi
@imod
@joshiste yes, I also have this stuff set:
spring:
  boot:
    admin:
      client:
        username: ${spring.cloud.config.username}
        password: ${spring.cloud.config.password}
        url:
        - https://xxxx.xxxx.net/admin       
        instance:
          metadata:
            applicationId: ${vcap.application.application_id}
            instanceId: ${vcap.application.instance_index}
            user.name: zzzz@dddd.com
            user.password: '{cipher}xxxxxxxxx’
Johannes Edmeier
@joshiste
@imod I can't see any reasy why it shouldn't work. If you say setting service-base-url doesn't work for you, the best thing you can do is look at the configprops to see if the prooerty is bound correctly and then to debug the DefaulApplicationFactory
Dominik Bartholdi
@imod
@joshiste I will try again - but I did spend hours debugging this already
to behownest, the easiest would be if I could just tell SBA to use https to do whatever call it needs to do - that would also simplify configuration a lot
Dominik Bartholdi
@imod
@joshiste just found there is spring.boot.admin.client.instance.service-base-url and spring.boot.admin.client.instance.service-url - what is the difference? Sorry, but I don’t understand the explanations at https://codecentric.github.io/spring-boot-admin/current/#spring-boot-admin-client - it would help a lot if each of these settigns would have an example value.
Johannes Edmeier
@joshiste
With the latter you specify the full url (sba client doesn't do any changes to it), with the former only the first part and the context-path / servlet-path will be appended by sba.
Dominik Bartholdi
@imod

@joshiste This is what I have configured:

spring:
  boot:
    admin:
      client:
        instance:
          metadata:
            applicationId: ${vcap.application.application_id}
            instanceId: ${vcap.application.instance_index}
            user.name: xxxxx@zzzz.com
            user.password: ppppppppppppp
        password: ${spring.cloud.config.password}
        service-url: https://xx-yyyy-domi-ci.scapp.io
        url:
        - https://oooo.zzzz.com/admin
        username: ${spring.cloud.config.username}

This is what the journal in SBA shows:

{
    "registration": {
        "name": "api",
        "managementUrl": "http://xx-yyyy-ci.scapp.io/actuator",
        "healthUrl": "http://xx-yyyy-ci.scapp.io/actuator/health",
        "serviceUrl": "http://xx-yyyy-ci.scapp.io/",
        "source": "http-api",
        "metadata": {
            "user.name": "xxxxx@zzzz.com",
            "instanceId": "0",
            "applicationId": "c77c8622-34e3-410d-904a-edec8fc539c2",
            "user.password": "******",
            "startup": "2019-10-01T07:45:32.218294Z"
        }
    }
}

as you can see the service-url is set to https://xx-yyyy-domi-ci.scapp.io in the config (-domi- is added on purpose to be wrong, so I can see it causing an error once it gets picked up) - but it is not reflected in the registration journal in SBA.
And this are the real urls displayed (and used) in the application details view in SBA:
service: http://xx-yyyy-ci.scapp.io/
management: http://xx-yyyy-ci.scapp.io/actuator
health: http://xx-yyyy-ci.scapp.io/actuator/health

just to be clear, the configuration does work, and the status of the app is shown correctly - also all actuators are shown correct in SBA. But it is not picking up the configuration I give it, HTTPS is not used. It also does not make any difference if I use service-url or service-base-url.

Johannes Edmeier
@joshiste
@imod you said you're running on CF?
Then the CloudFoundryApplicationFactory is active. It uses the uris from vcap.application.* with a fixed http scheme. ...
Johannes Edmeier
@joshiste
You could force the DefaultApplicationFactory by instantiating it yourself.
Do you want to file an issue for this?
Dominik Bartholdi
@imod
@joshiste yes, I’m using CF - I’ll file an issue - thanks!
Dominik Bartholdi
@imod
TapBooth
@tapbooth

Hey All, just wondering if anyone can help. I'm creating a custom UI module following the instructions and everything is working ouot perfect. THe problem that i'm having is that i can't debug it using the devtools plugin. I keep getting the message: Vue.js is detected on this page. Devtools inspection is not available because it's in production mode or explicitly disabled by the author.

Any idea how i can enable this so that i can debug my custom UI code?

I've built the mvn module (using the exec-maven-plugin) running as npm build -- --mode=development

Johannes Edmeier
@joshiste
@tapbooth sorry for the late response. The vue.js shipped by the spring-boot-admin-server-ui package is a production build of vue, so there is no easy way of achieve this., without swapping out the whole jar.
jeevitesh
@jeeviteshms_twitter
Hi.. Need some helping in configuring spring boot admin in kubernetes
getting following exception io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: GET at: https://x.x.x.x/api/v1/namespaces/stage/endpoints. Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked. endpoints is forbidden: User "system:serviceaccount:stage:default" cannot list resource "endpoints" in API group "" in the namespace "stage".
it my local it works fine
Johannes Edmeier
@joshiste
That’s an issue of the discovery client, not SBA. The pod must run with a service account having some rights
BIMAL MOHANTY
@bimalkm191_twitter
Hello All
We have our microservices running in Cloud Foundry. How we will get those logs from microservices to be viewed from springboot admin? I tried to enable logging.file property in client's application.properties, but I am getting http 404 error
Johannes Edmeier
@joshiste
I guess on cf tho property gets overridden. SBA needs the logfile endpoint, so you just can’t
BIMAL MOHANTY
@bimalkm191_twitter
I fixed this already. The Logging.file property, had a space after the file name that cause problem. It was my mistake