Initialize the Event Hub Beat using MSI


Before you initialize the Beat, you must have the Open Collector installed. If you do not already have it installed, follow the instructions in the Open Collector Installation and User Guide, and then return to this topic.

  1. To confirm the Open Collector is running, run the following command:

    ./lrctl status
    

    You should see the open_collector and metrics listed:
    image2020-5-26_16-33-53.png

  2. In the Open Collector, run the following command:

    ./lrctl eventhubbeat start
    


  3. At the prompt to deploy the Event Hub Beat service on Azure VM, type Y
    image2019-12-18_11-0-1.png

    If you do not want to deploy the Event Hub Beat service on Azure VM, follow the steps in Initialize the Event Hubs Beat Using Connection Strings.


  4. Enter the following information:

    1. Enter the Subscription ID.

      Event Hub Connection Strings, Storage Connection Strings, and Subscription IDs are stored in encrypted format in the configuration file


    2. Enter the Resource Group Name.

    3. Enter the Storage Name.

    4. Enter Event Hub Namespace Name.

    5. Enter Event Hub Instance Name.

    6. Enter Storage Container Name.

      You can enter more than one event hub namespace, event hub instance name, and storage container name at a time.


  5. When you are finished, type C.
    The configuration saves and service starts successfully.
    image2020-1-8_14-19-13.png                                                                                                                                                                                                                                                                                                                                                                                                                         

  6. To check the status of the service, run the following command:

    ./lrctl eventhubbeat status
    

    image2020-6-2_17-32-56.png

Default Config Values for EventHubBeat:

S. No.

Field Name

Default Value

1.

period

1s

2.

HeartbeatInterval

5m0s 

3.

HeartbeatDisabled

false

4.

StorageConnectionString

User Provided

5.

ConnectionString

User Provided

6.

ConsumerGroup

User Provided

7.

Time Period

5s

8.

Azure Flag

false

9.

SubscriptionID

User Provided

10.

ResourceGroupName

User Provided

11.

EventHubDetails

User Provided

12.

StorageAccountNameMSI

User Provided