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

    • 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), Sprint 98 (Mar 2023), Sprint 99 (Apr 2023), Sprint 100 (May 2023), Sprint 101 (Jun 2023), Sprint 102 (Jul 2023), Sprint 103 (Aug 2023), Sprint 104 (Sep 2023), Sprint 105 (Oct 2023), Sprint 106 (Nov 2023), Sprint 107 (Dec 2023), S2401, S24-W10/11, S24-W18/19
    • 0.5

      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.

            vmaksimovs Vladimirs Maksimovs
            vmaksimovs Vladimirs Maksimovs
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: