Unable to activate both CF Actuators and Endpoints together
See original GitHub issueDescribe 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:
- Created 4 years ago
- Comments:12 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks alfus it worked
@VenkateshSrini here is a working sample https://github.com/alfusinigoj/pivotal_aspnet_bootstrap_cloudfoundry_extensions/tree/master/samples/Actuators/ActuatorSample