• Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website

    Testing out the new Influx DB Line Protocol Data Source

    User help
    2
    3
    129
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      Wingnut2.0 last edited by

      Hello,

      While testing the data source, the help section indicates the following -

      There are 2 env properties that configure how the Line Protocol endpoint behaves.

      lineProtocol.task.queueWarningSize - Size of line queue at to which raise an event warning of queue growth
      lineProtocol.pointValidation.cacheExpirySeconds - When creating data points Mango will cache the existing points on this data source for performance during validation, this is how long they should live in the cache

      These 2 lines do not exist in the env.properties file. Could you provide an example of what the recommended defaults should be?

      Thank you.

      1 Reply Last reply Reply Quote 0
      • terrypacker
        terrypacker last edited by

        The defaults that will be used if no property exists are:

        lineProtocol.task.queueWarningSize: 10000
        lineProtocol.pointValidation.cacheExpirySeconds: 5000
        

        Basically you will have to experiment with your setup and these would only need to be adjusted when you see performance degradation.

        1 Reply Last reply Reply Quote 0
        • W
          Wingnut2.0 last edited by

          Thank you, Terry.

          While testing, I am using the following input

          [[inputs.win_perf_counters.object]]
          # Processor usage, alternative to native, reports on a per core.
          ObjectName = "Processor"
          Instances = [""]
          Counters = [
          "% Idle Time",
          "% Interrupt Time",
          "% Privileged Time",
          "% User Time",
          "% Processor Time",
          "% DPC Time",
          ]
          Measurement = "win_cpu"
          # Set to true to include _Total instance when querying for all (
          ).
          IncludeTotal=true

          The message to be sent is the following

          win_cpu,host=LAPTOP,instance=2,objectname=Processor,source=telegraf Percent_DPC_Time=0,Percent_Idle_Time=89.79866790771484,Percent_Interrupt_Time=0,Percent_Privileged_Time=0,Percent_Processor_Time=3.9585533142089844,Percent_User_Time=3.098111152648926 1604960081000000000
          

          What is making it to Mango ends up looking like this
          0_1604960358678_0ccc20d1-834d-4c65-bf9b-6184c2d19fdd-image.png

          Along with some additional errors for points that failed to be created.

          	 'test_Influx': Failed creating point with field key ²—‚œ±þÞÑE€d7ˆF}Ñú¢ªÓU™çœÌâï£ÉŤZ>Mç‹Ów?œýò׳?üã¯gÿŒïß¼Œ&óÅprYžo¯‡ÇÕùɏ‹OÕ¬~`úñ?«ËÅdø¥:ý¹Zü>}>?ùódQÍþ>¼¬óéíì²:]Tãêz6üûÉÙðòsµ˜_|¨&‹‹›j6¯.Oaðí×÷Õe5ú­ººx;š_gWÕÕÆÅ¿Þ.>No'ÍïŸüq6›ÎæMÝ_ùÓ×EµñÄý(V¿?3²oWNÐ@ÒPáÛ¿¨Aœÿ>¼yÅ‹_¦‹áx¹³áõhr}~òÓhÜ€Y5»¬õë|x]zd¶PrvmÊåÍí3¡ƒ˜M/«ù|:kÁý¿Œ¾T§’$T-ƒ‰ßî|{öfuÜÿôç«qµú-¢°cH‚hØú–zÝÌnoŸ because name -> Cannot be longer than 255 characters
          

          I do have Treat integers as Numeric types checked but seem to keep getting NumberFormatExceptions and Invalid Line Length errors. Can Mango only handle a single value being sent at a time?

          Thank you.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post