Comments (3)
Hi @mohankumaru,
Yes you are correct, the default health checker for an HTTP service makes a GET
request against the /status/aggregate
endpoint of the service being checked. This is because it assumes the service implements the health checks API, which specifies this request as a GET request. See the API specification here. Because of this, the response you are seeing would be expected if the elastic
service you want to health check only supports POST
requests. I think you have two options:
- Update the
elastic
service so that it supports the health checks API. Once the service supports the API, this error would go away. If you can't do this becauseelastic
is something you can't extend, then see option 2. - Write a custom status check that checks against some other API endpoint on the
elastic
service using aPOST
request. To move forward with this option, see the Writing a StatusCheck section of the README
from healthchecks.
Hi @HootAdam ,
Thank you for your reply.
I followed 2nd approach you suggested.
I have some confusion regarding node traversal. I will give you a scenario, can you explain how to form a graph out of that.
Ex. lets say there are four services in a product , s1, s2, s3, s4
and s2 and s4 are dependent on s1.
can you please explain in detail how to form the tree out of this.
from healthchecks.
To form a graph and traverse to nodes in the graph, each node you want to traverse to must implement the Health Checks API, specifically the traverse endpoint. See the docs here.
The easiest way to do this is to use the go healthchecks framework and register your services / dependencies like shown here.
- To traverse from the product -> s1, both the product and S1 need to implement the health checks API.
- To traverse from s1 -> s2 or s1 -> s4, all of s1, s2 and s4
To learn more, check out the demo/test project we have at https://github.com/hootsuite/microservice-graph-explorer-test. It wires up services and allows traversal.
from healthchecks.
Related Issues (3)
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 healthchecks.