OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

spring security 3 and actuator/prometheus

  • Thread starter Thread starter work work
  • Start date Start date
W

work work

Guest
i`m trying to configure prometheus in my app with springSecurity i do this config

Code:
management:
  server:
      port: 9090
  security:
      enabled: false
  endpoint:
    prometheus:
        enabled: true
    health:
        enabled: true
  endpoints:
    web:
      exposure:
        include: prometheus,health
  metrics:
    distribution:
        percentiles-histogram:
            "[http.server.requests]": true
  prometheus:
    metrics:
      export:
          enabled: true

and config security

Code:
authorizeHttpRequests {
                    it.requestMatchers("/api/actuator/**").permitAll()
                    it.requestMatchers("/api/actuator").permitAll()

but still 401
<p>i`m trying to configure prometheus in my app with springSecurity
i do this config</p>
<pre><code>management:
server:
port: 9090
security:
enabled: false
endpoint:
prometheus:
enabled: true
health:
enabled: true
endpoints:
web:
exposure:
include: prometheus,health
metrics:
distribution:
percentiles-histogram:
"[http.server.requests]": true
prometheus:
metrics:
export:
enabled: true
</code></pre>
<p>and config security</p>
<pre><code>authorizeHttpRequests {
it.requestMatchers("/api/actuator/**").permitAll()
it.requestMatchers("/api/actuator").permitAll()
</code></pre>
<p>but still 401</p>
Continue reading...
 

Latest posts

S
Replies
0
Views
1
Safwan Aipuram
S

Online statistics

Members online
0
Guests online
4
Total visitors
4
Top