Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-20871

Unable to pass the LLD macro with macro function to the first parameter of "Prometheus pattern" preprocessing step for item prototypes

    XMLWordPrintable

Details

    • Team C
    • Sprint 87 (Apr 2022), Sprint 88 (May 2022), Sprint 89 (Jun 2022), Sprint 90 (Jul 2022), Sprint 91 (Aug 2022), Sprint 92 (Sep 2022), Sprint 93 (Oct 2022), Sprint 94 (Nov 2022), Sprint 95 (Dec 2022), Sprint 96 (Jan 2023), Sprint 97 (Feb 2023)
    • 0.5

    Description

      Steps to reproduce:

      1. Open "Create item prototype" form.
      2. Enter some name and key.
      3. Navigate to preprocessing tab.
      4. Add preprocessing step with:
        • Type: Prometheus pattern.
        • 1st parameter: { {#LLD_MACRO}

          .regsub("(.*)_([0-9]+)", \1)}

      5. Press add button.

      Result:
      Unable to add the item prototype with macro function.


      Expected:
      No error occurs. Item prototype was successfully added.

      Attachments

        Activity

          People

            vmaksimovs Vladimirs Maksimovs
            vmaksimovs Vladimirs Maksimovs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: