• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • influxdb-plugin
    • None
    • InfluxDB-Plugin -1.23 (28.6.2019)
      Jenkins ver. 2.164.2
      InfluxDB version: 1.7.7
      Chrome Version 75.0.3770.100 (Official Build) (64-bit)
    • 2.0

      Hi, 

      We are pushing stats from our Jenkins server into InfluxDB using the influxdb-plugin. We have multiple build agents and we are very interested in monitoring build times per agent using InfluxDB. The issue is the field for build_agent_name is always blank, the plugin doesn't send the data to influxdb. We are calling the plugin using piplelines in the post using the simple call -  influxDbPublisher(selectedTarget: 'InfluxMonitoring') 

      What could be wrong ? Nothing in the logs I can see to help identify the issue  

      Thanks 

          [JENKINS-58945] build_agent_name always blank

          James Watson added a comment -

          Can anyone help with this please, we really need the . build agent hostnames along with the build times. Its always blank and I have run out of options with the troubleshooting, can someone please point me in the right direction. 

          The results are sent:
          05:09:02 [InfluxDB Plugin] Publishing data to: Target

          {description=InfluxMet, url=[http://ci.testing.net8086|http://monitoring.oxbotica.com:8086/], username=, database=jmetrics}

          05:09:02 [InfluxDB Plugin] Completed.
           

          Out from Influx on write: 

          Aug 19 11:52:26 monitoring influxd[1510]: [httpd] 192.168.1.5 - null [19/Aug/2019:11:52:26 +0100] "POST /write?db=jmetrics&rp=default&precision=n&consistency=any HTTP/1.1" 204 0 "-" "okhttp/3.11.0" 6ecfd11d-c26f-11e9-851a-000c29613005 724

          James Watson added a comment - Can anyone help with this please, we really need the . build agent hostnames along with the build times. Its always blank and I have run out of options with the troubleshooting, can someone please point me in the right direction.  The results are sent: 05:09:02 [InfluxDB Plugin] Publishing data to: Target {description=InfluxMet, url=[http://ci.testing.net8086|http://monitoring.oxbotica.com:8086/], username=, database=jmetrics} 05:09:02 [InfluxDB Plugin] Completed.   Out from Influx on write:  Aug 19 11:52:26 monitoring influxd [1510] : [httpd] 192.168.1.5 - null [19/Aug/2019:11:52:26 +0100] "POST /write?db=jmetrics&rp=default&precision=n&consistency=any HTTP/1.1" 204 0 "-" "okhttp/3.11.0" 6ecfd11d-c26f-11e9-851a-000c29613005 724

          Aleksi Simell added a comment -

          jameswox I'll take a look at this once I get a more severe issue fixed. At a quick glance I couldn't find the root cause, but I see the same behaviour.

          Aleksi Simell added a comment - jameswox I'll take a look at this once I get a more severe issue fixed. At a quick glance I couldn't find the root cause, but I see the same behaviour.

          James Watson added a comment -

          Thank you, i'll await your feedback. Let me know if I can help with any testing 

           

           

          James Watson added a comment - Thank you, i'll await your feedback. Let me know if I can help with any testing     

          Aleksi Simell added a comment -

          This issue is now fixed. Will be available in the next release.

          Aleksi Simell added a comment - This issue is now fixed. Will be available in the next release.

          Chris Chan added a comment -

          Is there a regression of this bug? I am running Jenkins 2.303.2 and plugin version 3.0.2. build_agent_name is always blank even though all our builds run on agents, and if I look in env on the build, it shows there is a value for NODE_NAME.

          Chris Chan added a comment - Is there a regression of this bug? I am running Jenkins 2.303.2 and plugin version 3.0.2. build_agent_name is always blank even though all our builds run on agents, and if I look in env on the build, it shows there is a value for NODE_NAME.

          Aleksi Simell added a comment -

          tcchan Sorry for the delay. Are you still facing this issue?

          I just tried with InfluxDB plugin 3.3, Jenkins 2.349, InfluxDB 1.8, and InfluxDB 2.2.0 and build_agent_name was properly populated.

          Aleksi Simell added a comment - tcchan Sorry for the delay. Are you still facing this issue? I just tried with InfluxDB plugin 3.3, Jenkins 2.349, InfluxDB 1.8, and InfluxDB 2.2.0 and build_agent_name was properly populated.

          Aleksi Simell added a comment -

          Closing this again as fixed. I'm still not able to reproduce this and it has been over a year since the last update on this ticket.

          Aleksi Simell added a comment - Closing this again as fixed. I'm still not able to reproduce this and it has been over a year since the last update on this ticket.

            aleksisimell Aleksi Simell
            jameswox James Watson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: