nestjs / terminus

Terminus module for Nest framework (node.js) :robot:

Home Page:https://nestjs.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Elasticsearch health-indicator

stanimirovv opened this issue · comments

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe it

I am interested in creating and maintaining a health-indicator for elasticsearch.

I realise you can use the http indicator for it, in fact one of the examples is for it:
#985

However I think there is value to be added by having a stand alone elasticsearch indicator:

  • make authentication easier
  • offer option for both cluster and index level monitoring

That being said - with the base http-indicator it is quite doable. I am not sure what is the intent - have several very generic indicators or also have specific ones ?

Cheers!

Describe the solution you'd like

elasticsearch health-indicator

Teachability, documentation, adoption, migration strategy

Not applicable

What is the motivation / use case for changing the behavior?

Elasticsearch is very popular and having a streamlined standartized way that is extendable will be helpful to a lot of people.

Also I think it is fine since there is an official nestjs ES client.

@kamilmysliwiec does this sound like something that can be added or maybe should be a stand alone plugin/package ?

I think you can make one yourself. Heres a sample https://github.com/nestjs/terminus/blob/master/sample/000-dogs-app/src/dog/dog.health.ts for custom health check

Agreed, it is most likely the cleaner way since less code to maintain in nest.

Yeah this custom stuffs is where nestjs shines.