• Products
  • Get started
  • Documentation
  • Resources

Monitor Marid with a Heartbeat

Marid is deprecated and will be permanently retired on November 21st, 2022. Read the community post for more details.

If you never used our extensibility platform before, visit Opsgenie Edge Connector as an extensibility platform to find out how to run it with your Opsgenie account.

If you're using Marid and want to migrate to Opsgenie Edge Connector, visit Why should you migrate to Opsgenie Edge Connector.

To monitor Marid, you need to be able to use Opsgenie Heartbeat Monitoring functionality. To use
Opsgenie Heartbeat Monitoring, add a Heartbeat Integration and add heartbeats. To send heartbeats from Marid to Opsgenie, configure Marid as a web server and send heartbeats by using Marid's Script Proxy functionality. Marid should send heartbeats periodically, and the period should be shorter than the heartbeat's interval. You can get detailed information by referring following support documents.

Marid has a built-in script (SendHeartbeat.groovy). The script uses a special opsgenie variable to send heartbeat with the least lines of code.

Script File

<SCRIPTS_DIR>/SendHeartbeat.groovy

Groovy

1 2 logger.debug("sending heartbeat with params:${params}") opsgenie.heartbeat(params)

URL to be Called via CURL

cURL

1 curl -XPOST 'http://<marid_server>:<marid_port>/script/SendHeartbeat.groovy?name=maridheartbeat' -d 'content data'

Expected curl Output

JSON

1 {"success":true}

 

Additional Help