Intel® Edge Software Hub
Get answers from community peers to your questions about building Edge Software Hub solutions for edge compute node.
Announcements
Welcome to the Intel Community! If you like the answer to your question, please mark it as 'Accepted Solution' to help others.

The Edge Software Vision Package for Red Hat Enterprise Linux is now available here.

Learn more about developing on Intel® Hardware and Software here.
397 Discussions

question about eii_message_bus

Jerry4_Liu
Novice
986 Views

Hi all,

I would like to ask a question. How to send data to Telegraf through eii_message_bus by EmbPublisher, and then send data from Telegraf to EmbSubscriber through eii_message_bus, The settings is in the below pictures.  

The EmbSubsrciber will only receive messages from EmbPublisher

Jerry4_Liu_0-1659349690119.png

publisher to telegraf,  the left side is EmbPublisher's json file, the right side is Telegraf's

 

Jerry4_Liu_1-1659349709939.png

subscriber to telegraf,  the left side is EmbSubscriber's json file, the right side is Telegraf's

 

and my Telegraf's .conf file has been also set

Jerry4_Liu_2-1659350160186.png

Jerry4_Liu_3-1659350210495.png

 

But in the pictures below, Embsubscriber can't receive the customized Topics sent by Telegraf through eii_message_bus at all. I would like to ask if your everyone who knows how to solve it~?

296929653_5904443639583916_6839402219605713109_n.png

 the left side is EmbSubscriber's json file, the right side is Telegraf's

 

 

Thanks.

 

Regards,

 

-Jerry

Labels (1)
0 Kudos
1 Solution
JesusE_Intel
Moderator
777 Views

Hi Jerry,

 

Apologies for the delay in our response. Could you check if you exposed the publisher port in edge_insihgts_industrial/Edge_Insights_for_Industrial_3.0/IEdgeInsights/Telegraf/docker-compose.yml file?

 

JesusE_Intel_0-1665786086387.png

 

Using the steps below I am able to publish the temperature, humidity and pressure data. Could you give it a try and let me know if it works for you too?

  1. Update edge_insihgts_industrial/Edge_Insights_for_Industrial_3.0/IEdgeInsights/build/usecases/video-timeseries.yml

JesusE_Intel_1-1665786264080.png

 

  1. Update edge_insihgts_industrial/Edge_Insights_for_Industrial_3.0/IEdgeInsights/Telegraf/config/Telegraf/Telegraf.conf

 

JesusE_Intel_3-1665786439577.png

JesusE_Intel_4-1665786469593.png

JesusE_Intel_7-1665787072972.png

 

 

  1. Update edge_insihgts_industrial/Edge_Insights_for_Industrial_3.0/IEdgeInsights/Telegraf/config.json

JesusE_Intel_6-1665786553138.png

 

  1. In edge_insihgts_industrial/Edge_Insights_for_Industrial_3.0/IEdgeInsights/build 

    run the following commands:

    python3 builder.py -f usecases/video-timeseries.yml
    docker-compose -f docker-compose-build.yml build
    ./eii_start.sh​

Ref:

https://github.com/open-edge-insights/ts-telegraf#enabling-message-bus-input-plugin-in-telegraf 

https://github.com/open-edge-insights/ts-telegraf#enabling-message-bus-output-plugin-in-telegraf

 

Regards,

Jesus

View solution in original post

0 Kudos
5 Replies
JesusE_Intel
Moderator
965 Views

Hi Jerry4_Liu,


Thanks for reaching out, let me run some tests from my side and get back to you.


Regards,

Jesus


0 Kudos
JesusE_Intel
Moderator
947 Views

Hi Jerry,


Appologies for the delay, I ran into a couple of issues while configuring Telegraf to receive input from message bus and need to check with the development team. I will let you know what I find out.


Regards,

Jesus


0 Kudos
Jerry4_Liu
Novice
917 Views

Hi JesusE_Intel,

 

ok~thanks~

 

Thanks.

 

Regards,

 

-Jerry

0 Kudos
JesusE_Intel
Moderator
778 Views

Hi Jerry,

 

Apologies for the delay in our response. Could you check if you exposed the publisher port in edge_insihgts_industrial/Edge_Insights_for_Industrial_3.0/IEdgeInsights/Telegraf/docker-compose.yml file?

 

JesusE_Intel_0-1665786086387.png

 

Using the steps below I am able to publish the temperature, humidity and pressure data. Could you give it a try and let me know if it works for you too?

  1. Update edge_insihgts_industrial/Edge_Insights_for_Industrial_3.0/IEdgeInsights/build/usecases/video-timeseries.yml

JesusE_Intel_1-1665786264080.png

 

  1. Update edge_insihgts_industrial/Edge_Insights_for_Industrial_3.0/IEdgeInsights/Telegraf/config/Telegraf/Telegraf.conf

 

JesusE_Intel_3-1665786439577.png

JesusE_Intel_4-1665786469593.png

JesusE_Intel_7-1665787072972.png

 

 

  1. Update edge_insihgts_industrial/Edge_Insights_for_Industrial_3.0/IEdgeInsights/Telegraf/config.json

JesusE_Intel_6-1665786553138.png

 

  1. In edge_insihgts_industrial/Edge_Insights_for_Industrial_3.0/IEdgeInsights/build 

    run the following commands:

    python3 builder.py -f usecases/video-timeseries.yml
    docker-compose -f docker-compose-build.yml build
    ./eii_start.sh​

Ref:

https://github.com/open-edge-insights/ts-telegraf#enabling-message-bus-input-plugin-in-telegraf 

https://github.com/open-edge-insights/ts-telegraf#enabling-message-bus-output-plugin-in-telegraf

 

Regards,

Jesus

0 Kudos
JesusE_Intel
Moderator
702 Views

If you need any additional information, please submit a new question as this thread will no longer be monitored.

0 Kudos
Reply