elastic / beats

:tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash
https://www.elastic.co/products/beats
Other
12.05k stars 4.89k forks source link

Enhance the buffer cache hit ratio calculations for performance metrics #40022

Open anil-elastic opened 2 days ago

anil-elastic commented 2 days ago

Proposed commit message

Enhance the buffer cache hit ratio calculations by adding buffer cache hit ratio base and modifying the calculation for performance metrics.

Checklist

Disruptive User Impact

Author's Checklist

How to test this PR locally

Below files changes used to test it: File : mssql/docker-compose.yml

version: '2.3'
services:
  microsoft_sqlserver:
    image: mcr.microsoft.com/mssql/server:2019-latest
    user: root
    environment:
      - ACCEPT_EULA=Y
      - SA_PASSWORD=Password123
    ports:
      - "1433:1433"

file: mssql.yml

- module: mssql
  metricsets:
    - "transaction_log"
    - "performance"
  hosts: ["sqlserver://0.0.0.0:1433"]
  username: sa
  password: Password123
  period: 10s

Related issues

Use cases

Screenshots

Logs

mergify[bot] commented 2 days ago

This pull request does not have a backport label. If this is a bug or security fix, could you label this PR @anil-elastic? 🙏. For such, you'll need to label your PR with:

To fixup this pull request, you need to add the backport labels for the needed branches, such as:

anil-elastic commented 1 day ago

@elastic/obs-infraobs-integrations I am not able to replicate the error locally because when I run MODULE="mssql" mage goIntegTest I always get below error:

performance_integration_test.go:27: failed to start service 'mssql': ps: failed to get container list: failed to get list of service names: exit status 1