Skip to content

Feature heartbeat#682

Open
chenjiahui wants to merge 19 commits intologgie-io:mainfrom
chenjiahui:feature-heartbeat
Open

Feature heartbeat#682
chenjiahui wants to merge 19 commits intologgie-io:mainfrom
chenjiahui:feature-heartbeat

Conversation

@chenjiahui
Copy link

@chenjiahui chenjiahui commented Jul 2, 2024

Proposed Changes:

add the Heartbeat function, you can simply add the following configuration to the loggie.yml configuration file:

Additional documentation:

heartbeat:  
  address: http://127.0.0.1:8000/api/heartbeat  
  interval: 10  
  nodeName: node-01

This configuration enables the Heartbeat feature, where:

  • address specifies the endpoint where the heartbeat requests will be sent, in this case http://127.0.0.1:8000/api/heartbeat.
  • interval defines the interval (in seconds) at which heartbeat messages are sent. In this example, it is set to 10 seconds.
  • nodeName identifies the node sending the heartbeat, in this case named node-01.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants