• Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major Major
    • influxdb-plugin
    • None
    • 2.1

      I want to customize the tags and keys in the collected data. As of now only the project name is the tag in influxdb. But i want add some more fields as tags in influxdb.

      Example

      I want to filter the data build wise. So that i want to add the build number as tag in the influxdb.

       

       

      And also i could not get the pipeline data such as stage duration, failed at which stage.

       

          [JENKINS-54445] Add more common tags for all measurements

          Mohamed Nazeer Mohamed Ibrahim created issue -
          Mohamed Nazeer Mohamed Ibrahim made changes -
          Description Original: I want to customize the tags and keys in the collected data. As of now only the project name is the tag in influxdb. But i want add some more fields as tags in influxdb.

          Example

          I want to filter the data build wise. So that i want to add the build number as tag in the influxdb.

           
          New: I want to customize the tags and keys in the collected data. As of now only the project name is the tag in influxdb. But i want add some more fields as tags in influxdb.

          Example

          I want to filter the data build wise. So that i want to add the build number as tag in the influxdb.

           

           

          And also i could not get the pipeline data such as stage duration, failed at which stage.

           

          Aleksi Simell added a comment -

          Custom tags were added in PR 32 (https://github.com/jenkinsci/influxdb-plugin/pull/32). Does this already address your issue? You can add build number tag to your build with adding a jenkins-env-parameter tag build_number=${BUILD_NUMBER}.

          Aleksi Simell added a comment - Custom tags were added in PR 32 ( https://github.com/jenkinsci/influxdb-plugin/pull/32 ). Does this already address your issue? You can add build number tag to your build with adding a jenkins-env-parameter tag build_number=${BUILD_NUMBER}.

          Thanks for replying. The pull request 32 will solve our one requirement. But we have one more requirement blocking our progress. Which is already created as ticket by someone else. The ticket is https://issues.jenkins-ci.org/browse/JENKINS-53360

           

          We are publishing data as step configuration of InfluxDb as below 

          step([$class: 'InfluxDbPublisher', customData: myDataMap, customDataMap: myCustomDataMap, customPrefix: null, target: 'Influxtarget'])

          But we do not know how to configure the  jenkins-env-parameter tag build_number=${BUILD_NUMBER}. And also we could not find the UI to configure the same. 

          Our Jenkins version is Jenkins ver. 2.107.3 and InfluxDb Plugin version is 1.20

           

           

          Mohamed Nazeer Mohamed Ibrahim added a comment - Thanks for replying. The pull request 32 will solve our one requirement. But we have one more requirement blocking our progress. Which is already created as ticket by someone else. The ticket is https://issues.jenkins-ci.org/browse/JENKINS-53360 .    We are publishing data as step configuration of InfluxDb as below  step( [$class: 'InfluxDbPublisher', customData: myDataMap, customDataMap: myCustomDataMap, customPrefix: null, target: 'Influxtarget'] ) But we do not know how to configure the  jenkins-env-parameter tag build_number=${BUILD_NUMBER}. And also we could not find the UI to configure the same.  Our Jenkins version is  Jenkins ver. 2.107.3  and InfluxDb Plugin version is 1.20    

          Aleksi Simell added a comment - - edited

          mohamednazeer You can add build number tag in your pipeline by adding for example

          jenkinsEnvParameterTag: 'build_number=' + env.BUILD_NUMBER
          

          to your step.

          Aleksi Simell added a comment - - edited mohamednazeer You can add build number tag in your pipeline by adding for example jenkinsEnvParameterTag: 'build_number=' + env.BUILD_NUMBER to your step.

          Thank you very much its working.

          could you please give some update for https://issues.jenkins-ci.org/browse/JENKINS-53360 

           

          Thanks in advance

          Mohamed Nazeer Mohamed Ibrahim added a comment - Thank you very much its working. could you please give some update for https://issues.jenkins-ci.org/browse/JENKINS-53360     Thanks in advance

          Aleksi Simell added a comment -

          My current project has kept me busy for a very long time, so I haven't had time to do any work on any ticket for quite some time. However, now my project is coming to an end so in the near future I might have more time to work on new features for the plugin (instead of just bug fixes and pull requests).

          In short: Nothing done whatsoever.

          Aleksi Simell added a comment - My current project has kept me busy for a very long time, so I haven't had time to do any work on any ticket for quite some time. However, now my project is coming to an end so in the near future I might have more time to work on new features for the plugin (instead of just bug fixes and pull requests). In short: Nothing done whatsoever.

          Aleksi Simell added a comment -

          Tags already implemented.

          Other issue continued in https://issues.jenkins-ci.org/browse/JENKINS-53360.

          Aleksi Simell added a comment - Tags already implemented. Other issue continued in https://issues.jenkins-ci.org/browse/JENKINS-53360 .
          Aleksi Simell made changes -
          Resolution New: Won't Do [ 10001 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Aleksi Simell made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Closed [ 6 ]

            aleksisimell Aleksi Simell
            mohamednazeer Mohamed Nazeer Mohamed Ibrahim
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: