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

InfluxDB plugin does not create custom measurement in the DB

XMLWordPrintable

      Hello Team ,

      I have configured InfluxDB plugin version 2.3 with a groovy pipeline.

      I am using InfluxDbPublisher to create custom data map with fields and tags. Though the job build with message 

      "Custom data map found. Writing to InfluxDB...

      Publishing data to target 'jenkins' (url='http://localhost:8086', database='apiresults')

      Completed."

       The custom measurement doesn't exist in the influx DB

      My config step is as below 

       

      def testField = [:]
      def testTag = [:]
      def testDataMeasurementFields = [:]
      def testDataMeasurementTags = [:]
      testField['total'] = results.getTotalCount()
      testField['passed'] = results.getPassCount()
      testTag['infra'] = 'aws'
      testTag['space'] = 'dev'
      testDataMeasurementFields['apitest'] = testField
      testDataMeasurementTags['apitest'] = testTag

      step([$class: 'InfluxDbPublisher', selectedTarget: 'jenkins', customDataMap: testDataMeasurementFields,
      customDataMapTags: testDataMeasurementTags, measurementName: 'apitest'])

       

       

            aleksisimell Aleksi Simell
            karthik_hg Karthik HG
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: