Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-130499

"opentelemetry.control.status_code" metric does not report failing scripts

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-10.2
    • pcp
    • None
    • None
    • Low
    • rhel-pt-pcp
    • 2
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • Manual
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      Please provide the package NVR for which the bug is seen:

      pcp-pmda-opentelemetry-7.0.3-1.el10

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1.  Install pcp-zeroconf, pcp-pmda-opentelemetry and register the pcp-pmda-opentelemetry
        dnf -y install pcp-zeroconf pcp-pmda-opentelemetry && cd /var/lib/pcp/pmdas/opentelemetry && ./Install
        
      1.  Create a script which always fails
        echo -e '#!/bin/sh\nexit 1' > /var/lib/pcp/pmdas/opentelemetry/config.d/errscript && chmod +x /var/lib/pcp/pmdas/opentelemetry/config.d/errscript
        
      1.  Trigger the script execution
        pminfo -f opentelemetry
        

      Expected results

      The opentelemetry.control.status_code will provide non zero value for the errscript instance.

      Actual results

      The opentelemetry.control.status_code always provides zero value for instances representing scripts.

      Note

      The man page of the pmdaopentelemetry PMDA provides description only for URL data sources. Description for scripted data sources is missing for the opentelemetry.control.status_code metric. However my expectation is that the status_code will reflect somehow non zero exit code of the data source script. Please update the man page with expected behavior of the opentelemetry.control.status_code metric on a scripted data source. Also, if my expectation is correct, please fix the status_code value for failing scripted data sources.

              rh-ee-lchilton Lauren Chilton
              jkurik@redhat.com Jan Kurik
              pcp-maint pcp-maint
              Jan Kurik Jan Kurik
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: