Comments (12)
Hi @nullptr1108
I've created a sample with UI and HealthZ on the same project here https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/tree/master/samples/HealthChecks.UIAndApi can you checkout? this explain how solve your issues?
from aspnetcore.diagnostics.healthchecks.
Unai - Thank you for your quick reply to this issue. I will put together a small repro solution and then add it into this commentary.
from aspnetcore.diagnostics.healthchecks.
Checkout the new sample
from aspnetcore.diagnostics.healthchecks.
@unaizorrilla - I did check out the sample that you added which I think is a little different than the use case that I currently am trying to work through. I have put together a repro solution at https://github.com/nullptr1108/Repro-HeathChecksUI which follows the pattern that I am trying to implement across a larger project. Hopefully this will shed some light on what I am trying to accomplish
from aspnetcore.diagnostics.healthchecks.
Let me some time to check this
from aspnetcore.diagnostics.healthchecks.
One question @nullptr1108. Why are you adding the UI in the svc.target project that is only meant to register HealthChecks when you have a separate UI monitor project that is already registering the UI?
from aspnetcore.diagnostics.healthchecks.
@CarlosLanderas - Based on what I was seeing that project allowed for the response writer that was needed in the Svc.Target project to reply back in a way that the monitor can consume it. Does this reference need to be removed?
from aspnetcore.diagnostics.healthchecks.
You can remove the UI assembly and the AddHealthecksUI, UseHealthChecksUI from the SVC.target as only the health-ui path with the UIResponse Writer is needed for that service to be monitored by the other project you have 👍. You can read additional info on the README.md
from aspnetcore.diagnostics.healthchecks.
@CarlosLanderas - I removed the references that you indicated in your message and the behavior remains. It seems to me that the UI client in the monitor application is not able to see the target api that it is supposed to be monitoring. I dont see any errors that are being thrown through the execution in the containers.
from aspnetcore.diagnostics.healthchecks.
Are you using localhost in UI project appsettings configured HealthChecks? Because if you use localhost that's not gonna work. You have to assign the container name
from aspnetcore.diagnostics.healthchecks.
@CarlosLanderas - That took care of the issue that I was having, which is kind of an embarrassing oversight on my part. When I put the URI as http://svc.target:80 everything works as I would expect it to. When I try https://svc.target:443 it does not seem to work though. Is there a limitation or additional configuration for https?
from aspnetcore.diagnostics.healthchecks.
Yes, volumes have to be configured so an HTTPS certificate can be used. You can check more here. I close the issue as we found the problem. Thanks
from aspnetcore.diagnostics.healthchecks.
Related Issues (20)
- OpenIdConnectServer health check does not allow RS512 only signing algorithm HOT 2
- Would be useful if UIResponseWriter had more extensibility
- How to healthcheck amazon SQS using LocalStack? HOT 1
- Consider adding explicit target framework versions to all packages HOT 6
- Could not load type 'SqlGuidCaster' from assembly Microsoft.Data.SqlClient HOT 2
- Enable more container-based configuration on HealthChecksUI
- Add Qdrant health check client
- Health history graph
- Uncaught TypeError: Cannot read properties of undefined (reading 'color') HOT 1
- Put UIHealthReport in .NET Standard 2.0 library to support NET Framework 4.8 HOT 1
- Log the Exception If One Occurs During Health Check
- Support Nats authentication using Username and Password
- Multiple CosmosDB health checks always use latest connection string HOT 1
- Provide Parameter less Methods to add health check
- Adding sqlite package is exposing AddOracle Method
- Setup health checks by passing in IConfiguration
- The db healthy check should be utilising the data property to store key information
- The system package provide more system checks
- Provide a Hyper-V health package
- It should be possible to check the health of the network
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aspnetcore.diagnostics.healthchecks.