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

Fix JavaScript in aws.s3.get_metrics item for AWS S3 bucket by HTTP template

XMLWordPrintable

    • 0.5

      Steps to reproduce:
      In AWS Bucket go to: * Bucket metrics

      • ==> Request metrics
      • ==> Manage filters
      • Create filter(only one)

       
      Run JavaScript in `aws.s3.get_metrics` script item
      Result:

      zabbix_js [232041]: Warning: [ AWS S3 ] ERROR: TypeError: undefined not callable (property 'forEach' of [object Object]).
      {"error":"TypeError: undefined not callable (property 'forEach' of [object Object])."} 

      Expected:

      {"metrics":[{"Id":"m0","Label":"StandardStorage BucketSizeBytes","StatusCode":"Complete","Timestamps":[1709759340],"Values":[28293865]},{"Id":"m1","Label":"AllStorageTypes NumberOfObjects","StatusCode":"Complete","Timestamps":[1709759340],"Values":[5601]}],"filter_id":[{"Id":"test2","Filter":{"Prefix":"my-database-dump/"},"region":"us-east-1"}]} 

            egordymov Evgenii Gordymov
            egordymov Evgenii Gordymov
            Team INT
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: