You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Georg Henzler (Jira)" <ji...@apache.org> on 2020/07/03 06:13:00 UTC

[jira] [Commented] (FELIX-6292) Introduce functionality to perform custom operation after a heath check is executed

    [ https://issues.apache.org/jira/browse/FELIX-6292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17150757#comment-17150757 ] 

Georg Henzler commented on FELIX-6292:
--------------------------------------

For these kind of use cases FELIX-6250 "Introduce HealthCheckMonitor to keep track of HC status and to register Condition Services, OSGi events, etc.	
 Edit CommentAssign" was created (and fixed already). That way execution and result consumption is nicely decoupled. A very simple setup would

* Create a HC with a tag "foo" (can be via config or custom code)
* Create a HealthCheckMonitor for tag "foo" (config, see [docu|https://github.com/apache/felix-dev/blob/master/healthcheck/README.md#setting-up-a-monitor-configuration]
* Create custom code to listen to OSGi events that the monitor emits and react

[~amitmondal] Please check if this approach works for you. 
 

> Introduce functionality to perform custom operation after a heath check is executed
> -----------------------------------------------------------------------------------
>
>                 Key: FELIX-6292
>                 URL: https://issues.apache.org/jira/browse/FELIX-6292
>             Project: Felix
>          Issue Type: New Feature
>          Components: Health Checks
>            Reporter: Amit Mondal
>            Priority: Minor
>              Labels: ready-to-commit
>
> Sometimes consumers need to perform custom operations after a health check gets executed. For example, one might need to send the health check result to online monitoring system such as Kibana, Grafana etc. That's why we need to introduce an extension point for consumers to extend the current functionality.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)