question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to activate both CF Actuators and Endpoints together

See original GitHub issue

Describe the bug

Package steeltoe.management.endpointweb.2.4.0-rc1

Trying to enable actuators for an ASP.NET full framework application using ActuatorConfigurator as below. The problem is that when I set the context to ActuatorContext.Actuator I am able to hit the endpoints, say /actuator/health, but since I need the Cf Actuators to be enabled for AppsMan, I set the context to ActuatorContext.ActuatorAndCloudFoundry where I can see the actuators enabled in AppsMan, but I am getting 401 UnAuthorized when trying to access the endpoints say /actuator/health or /actuator/info

ActuatorConfigurator.UseCloudFoundryActuators(configuration,
                                                            dynamicLoggerProvider,
                                                            MediaTypeVersion.V1,
                                                            ActuatorContext.ActuatorAndCloudFoundry,
                                                            GetHealthContributors(),
                                                            GlobalConfiguration.Configuration.Services.GetApiExplorer(),
                                                            loggerFactory);

Expected behavior

When context is set to ActuatorContext.ActuatorAndCloudFoundry, we should be able to hit the endpoints, together with AppsMan actuators.

Environment (please complete the following information):

  • Platform: PCF
  • OS: Windows
  • .NET Framework 4.6.2
  • Steeltoe Version 2.4.0-rc1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

Unable to access Spring Boot Actuator "/actuator" endpoint
As of spring boot version 2.0.1 using below property would work management.endpoints.web.exposure.include=<comma separated endpoints you ...
Read more >
Unable to access the actuator endpoint in pcf ...
I am trying to access the actuator /cloudfoundryapplication/refresh endpoint of my springboot application. I generated a the token using the ...
Read more >
Cloud Foundry Integration
When running in Cloud Foundry, it is possible to access the endpoints via the hypermedia context path which defaults to /actuator . In...
Read more >
How to Enable All Endpoints in Spring Boot Actuator
Let's go to http://localhost:8080/actuator and view a list of available endpoints because the actuator endpoints are HATEOS enabled. We should ...
Read more >
Using Cloud Foundry health checks
Configure health checks for an existing app. To configure a health check for an existing app or to add a custom HTTP endpoint,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found