Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Testet Version

Application

Version

Archive Center

22.X

23.X

How To

Add Health Check to hazelcast.xml.

More Info Using the REST Endpoint Groups (hazelcast.com)

Version 22.4

Add Health Check to D:\otx\cfg\otac234\config\cluster\hazelcast.xml file

 		<rest-api enabled="true">
            <endpoint-group name="HEALTH_CHECK" enabled="true"/>
        </rest-api>>
image-20240327-131633.png

Verison 23.4

Add Health Check to D:\otx\cfg\otac234\config\cluster\hazelcast.xml file

    <rest-api enabled="true">
        <endpoint-group name="HEALTH_CHECK" enabled="true"/>
        <endpoint-group name="CLUSTER_READ" enabled="false"/>
    </rest-api>
image-20240327-131726.png

Test

Tomcat Restart Needed

Open URL http://<fqnd>:5701/hazelcast/health

image-20240327-132331.png

Blackbox Exporter configuration

  1. Change <env>

  2. Change <FQND>

  - job_name: 'blackbox_exporter_otac_cluster_<env>'
    metrics_path: /probe
    params:
      module: [http_2xx_otac_cluster]  # Look for a HTTP 200 response.
    static_configs:
      - targets: ['http://<fqdn otac>:5701/hazelcast/health']
        labels:
          hid: "OTAC0201ND01"
          env: "TEST"
          help: "https://handel.atlassian.net/wiki/spaces/HITID/pages/734953643"  
      - targets: ['http://<fqdn otac>:5701/hazelcast/health']
        labels:
          hid: "OTAC0201ND02"
          env: "TEST"
          help: "https://handel.atlassian.net/wiki/spaces/HITID/pages/734953643" 
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        replacement: 127.0.0.1:9115  # The blackbox exporter's real hostname:port. 

  • No labels