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

Dash changed to underscore in custom prefix

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: influxdb-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.89.3
      InfluxDB plugin 1.14
    • Similar Issues:

      Description

      When entering a custom prefix for InfluxDB that includes a dash the plugin is incorrectly substituting the dash for an underscore. This isn't necessary and is confusing if you're using the prefix to query the data.  The AbstractPointGenerator is incorrectly passing the custom prefix to the measurementName() method. This isn't necessary, it's not being used in the measurement name but rather in the Prefix tag.  Tag values can have underscore.

       

        Attachments

          Activity

          Hide
          aleksisimell Aleksi Simell added a comment -

          "Tag values can have underscore."

          You mean to say tag values can have dashes? Otherwise this is already the functionality.

          Show
          aleksisimell Aleksi Simell added a comment - "Tag values can have underscore." You mean to say tag values can have dashes? Otherwise this is already the functionality.
          Hide
          mandyjprescott Mandy Prescott-Courville added a comment -

          Yes, that's what I meant

          Show
          mandyjprescott Mandy Prescott-Courville added a comment - Yes, that's what I meant
          Hide
          karanmagdani karan magdani added a comment - - edited

          Why are we replacing the '-' to '_' ?

          I want to use custom prefix and keep the '-' 

          "Tag values can have underscore."

          I think what Mandy meant was that if we want '_' we can use underscore. Why does the code need to convert '-' to '_'

           

          Show
          karanmagdani karan magdani added a comment - - edited Why are we replacing the '-' to '_' ? I want to use custom prefix and keep the '-'  "Tag values can have underscore." I think what Mandy meant was that if we want '_ ' we can use underscore. Why does the code need to convert '-' to ' _'  
          Hide
          aleksisimell Aleksi Simell added a comment - - edited

          Removed replacing dashes with underscores in tag values. Will be available in next release.

          Show
          aleksisimell Aleksi Simell added a comment - - edited Removed replacing dashes with underscores in tag values. Will be available in next release.

            People

            • Assignee:
              aleksisimell Aleksi Simell
              Reporter:
              mandyjprescott Mandy Prescott-Courville
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: