Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53360

Add ability to send list of data to InfluxDB

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • influxdb-plugin
    • None
    • Jenkins 2.121.1

      Main idea: get information about different stages in pipeline reported to InfluxDB.

      It will be good if there will be automatic PointGenerator that collects information about stages in pipeline build and then prepares list of BatchPoints:

      pipeline_data:

      project_name build_number stage time
      pipeline1 14 init 3
      pipeline1 14 checkout 14
      pipeline1 14 compile 40
      pipeline1 14 deploy 15

      In current implementation of plugin I am trying to do this using CustomDataMap, but I can't prepare such list of BatchPoints, because if I add CustomDataMap with key "pipeline_data", I can only add one point with any amount of fields, so possible structure now is:

      pipeline_data:

      project_name build_number stage_init stage_checkout stage_compile stage_deploy
      pipeline1 14 3 14 40 15

      Such structure is not generic, so if I have different pipelines with different stages, my InfluxDB table will have fields from all stages of all pipelines.

       

      In this request I propose to add generic mechanism for sending list of data, so I can collect all necessary information in pipeline script and then publish to InfluxDB. However, adding default PointGenerator for pipeline stages time will be also helpful (people will be able to see pipeline stats without modification of their pipelines at all).

       

            aleksisimell Aleksi Simell
            pvasilevich Pavel Vasilevich
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: