Google IoT Core registry with additional telemetry topic and wildcard in subfolder?












2















I want to add telemetry topics to a registry and distribute telemetry streams to different pubsub topics. Since our MQTT topics on the devices use more than one subfolder, the registry's subfolder string does not match exactly to the pubsub topic.



For example, our device sends telemetry to the topic:
/devices/devId/events/pubsubTopicId/additionalInfo/evenMoreInfo



I'd wish the resulting pubsub messages to be placed in the topic /projects/projectId/topics/pubsubTopicId and to have the pubsub subfolder property like /additionalInfo/evenMoreInfo.



Instead currently, all messages are published in the registry's default pubsub topic.



So this question is more of a feature request to the google team to enable wildcards in the subfolderMatches property of registry's EventNotificationConfig. Than a positive match could be evaluted if the first subfolder after /devices/devId/events would match.



Thx for your answer!










share|improve this question



























    2















    I want to add telemetry topics to a registry and distribute telemetry streams to different pubsub topics. Since our MQTT topics on the devices use more than one subfolder, the registry's subfolder string does not match exactly to the pubsub topic.



    For example, our device sends telemetry to the topic:
    /devices/devId/events/pubsubTopicId/additionalInfo/evenMoreInfo



    I'd wish the resulting pubsub messages to be placed in the topic /projects/projectId/topics/pubsubTopicId and to have the pubsub subfolder property like /additionalInfo/evenMoreInfo.



    Instead currently, all messages are published in the registry's default pubsub topic.



    So this question is more of a feature request to the google team to enable wildcards in the subfolderMatches property of registry's EventNotificationConfig. Than a positive match could be evaluted if the first subfolder after /devices/devId/events would match.



    Thx for your answer!










    share|improve this question

























      2












      2








      2








      I want to add telemetry topics to a registry and distribute telemetry streams to different pubsub topics. Since our MQTT topics on the devices use more than one subfolder, the registry's subfolder string does not match exactly to the pubsub topic.



      For example, our device sends telemetry to the topic:
      /devices/devId/events/pubsubTopicId/additionalInfo/evenMoreInfo



      I'd wish the resulting pubsub messages to be placed in the topic /projects/projectId/topics/pubsubTopicId and to have the pubsub subfolder property like /additionalInfo/evenMoreInfo.



      Instead currently, all messages are published in the registry's default pubsub topic.



      So this question is more of a feature request to the google team to enable wildcards in the subfolderMatches property of registry's EventNotificationConfig. Than a positive match could be evaluted if the first subfolder after /devices/devId/events would match.



      Thx for your answer!










      share|improve this question














      I want to add telemetry topics to a registry and distribute telemetry streams to different pubsub topics. Since our MQTT topics on the devices use more than one subfolder, the registry's subfolder string does not match exactly to the pubsub topic.



      For example, our device sends telemetry to the topic:
      /devices/devId/events/pubsubTopicId/additionalInfo/evenMoreInfo



      I'd wish the resulting pubsub messages to be placed in the topic /projects/projectId/topics/pubsubTopicId and to have the pubsub subfolder property like /additionalInfo/evenMoreInfo.



      Instead currently, all messages are published in the registry's default pubsub topic.



      So this question is more of a feature request to the google team to enable wildcards in the subfolderMatches property of registry's EventNotificationConfig. Than a positive match could be evaluted if the first subfolder after /devices/devId/events would match.



      Thx for your answer!







      google-cloud-iot






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 24 '18 at 13:03









      Matthias RombachMatthias Rombach

      111




      111
























          1 Answer
          1






          active

          oldest

          votes


















          2














          I hear the feature request, and I can bring that to our engineering team.



          As a possible solution for now...what if you set up something where the telemetry always goes to the /devices/devId/events/pubsubTopicId/ folder. And then inside the telemetry payload, you had subfolders where you wanted things going in addition to that, and you ran a cloud function, or a dataflow pipeline to parse the payload, and send the telemetry to the appropriate bucket?






          share|improve this answer
























          • Thank you for communicating that to the engineers. We'll probably only use the registry's default telemetry topic for now.

            – Matthias Rombach
            Nov 28 '18 at 6:50











          • Sounds good, if you have more questions, feel free to reach out on Twitter (easier to get ahold of me than SO generally).

            – GabeWeiss
            Nov 28 '18 at 20:43











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53458415%2fgoogle-iot-core-registry-with-additional-telemetry-topic-and-wildcard-in-subfold%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          I hear the feature request, and I can bring that to our engineering team.



          As a possible solution for now...what if you set up something where the telemetry always goes to the /devices/devId/events/pubsubTopicId/ folder. And then inside the telemetry payload, you had subfolders where you wanted things going in addition to that, and you ran a cloud function, or a dataflow pipeline to parse the payload, and send the telemetry to the appropriate bucket?






          share|improve this answer
























          • Thank you for communicating that to the engineers. We'll probably only use the registry's default telemetry topic for now.

            – Matthias Rombach
            Nov 28 '18 at 6:50











          • Sounds good, if you have more questions, feel free to reach out on Twitter (easier to get ahold of me than SO generally).

            – GabeWeiss
            Nov 28 '18 at 20:43
















          2














          I hear the feature request, and I can bring that to our engineering team.



          As a possible solution for now...what if you set up something where the telemetry always goes to the /devices/devId/events/pubsubTopicId/ folder. And then inside the telemetry payload, you had subfolders where you wanted things going in addition to that, and you ran a cloud function, or a dataflow pipeline to parse the payload, and send the telemetry to the appropriate bucket?






          share|improve this answer
























          • Thank you for communicating that to the engineers. We'll probably only use the registry's default telemetry topic for now.

            – Matthias Rombach
            Nov 28 '18 at 6:50











          • Sounds good, if you have more questions, feel free to reach out on Twitter (easier to get ahold of me than SO generally).

            – GabeWeiss
            Nov 28 '18 at 20:43














          2












          2








          2







          I hear the feature request, and I can bring that to our engineering team.



          As a possible solution for now...what if you set up something where the telemetry always goes to the /devices/devId/events/pubsubTopicId/ folder. And then inside the telemetry payload, you had subfolders where you wanted things going in addition to that, and you ran a cloud function, or a dataflow pipeline to parse the payload, and send the telemetry to the appropriate bucket?






          share|improve this answer













          I hear the feature request, and I can bring that to our engineering team.



          As a possible solution for now...what if you set up something where the telemetry always goes to the /devices/devId/events/pubsubTopicId/ folder. And then inside the telemetry payload, you had subfolders where you wanted things going in addition to that, and you ran a cloud function, or a dataflow pipeline to parse the payload, and send the telemetry to the appropriate bucket?







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 26 '18 at 18:26









          GabeWeissGabeWeiss

          86168




          86168













          • Thank you for communicating that to the engineers. We'll probably only use the registry's default telemetry topic for now.

            – Matthias Rombach
            Nov 28 '18 at 6:50











          • Sounds good, if you have more questions, feel free to reach out on Twitter (easier to get ahold of me than SO generally).

            – GabeWeiss
            Nov 28 '18 at 20:43



















          • Thank you for communicating that to the engineers. We'll probably only use the registry's default telemetry topic for now.

            – Matthias Rombach
            Nov 28 '18 at 6:50











          • Sounds good, if you have more questions, feel free to reach out on Twitter (easier to get ahold of me than SO generally).

            – GabeWeiss
            Nov 28 '18 at 20:43

















          Thank you for communicating that to the engineers. We'll probably only use the registry's default telemetry topic for now.

          – Matthias Rombach
          Nov 28 '18 at 6:50





          Thank you for communicating that to the engineers. We'll probably only use the registry's default telemetry topic for now.

          – Matthias Rombach
          Nov 28 '18 at 6:50













          Sounds good, if you have more questions, feel free to reach out on Twitter (easier to get ahold of me than SO generally).

          – GabeWeiss
          Nov 28 '18 at 20:43





          Sounds good, if you have more questions, feel free to reach out on Twitter (easier to get ahold of me than SO generally).

          – GabeWeiss
          Nov 28 '18 at 20:43


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53458415%2fgoogle-iot-core-registry-with-additional-telemetry-topic-and-wildcard-in-subfold%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks

          Calculate evaluation metrics using cross_val_predict sklearn

          Insert data from modal to MySQL (multiple modal on website)