Skip to content

Conversation

@agithomas
Copy link
Contributor

@agithomas agithomas commented Oct 16, 2023

  • Bug

Details

HAProxy dashboard uses incorrect aggregation functions in multiple dashboards and visualisation.

For all the fields that are having metric_type as counter, sum() function is used presently in the dashboard. This shows incorrect values in the dashboard compared to the /stats dashboard of haproxy.

All sum() functions are replaced with max() functions when field is having metric_type counter. This correction is also needed for TSDB compatibility for counter type fields to not show errors when using sum() function

Proposed commit message

HAProxy dashboard uses incorrect aggregation functions in multiple dashboards and visualisation. This is corrected in this version.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

image
image
image
image
image
image

@elasticmachine
Copy link

elasticmachine commented Oct 16, 2023

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-10-18T11:12:15.844+0000

  • Duration: 14 min 58 sec

Test stats 🧪

Test Results
Failed 0
Passed 40
Skipped 0
Total 40

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link

elasticmachine commented Oct 16, 2023

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (1/1) 💚
Files 100.0% (1/1) 💚 2.5
Classes 100.0% (1/1) 💚 2.5
Methods 90.476% (19/21) 👎 -0.433
Lines 97.312% (181/186) 👍 2.845
Conditionals 100.0% (0/0) 💚

@agithomas agithomas mentioned this pull request Oct 16, 2023
20 tasks
@agithomas
Copy link
Contributor Author

Verification check for timeseries enablement - info datastream

hidden": "true",
      "time_series": {
        "end_time": "2023-10-16T15:26:19.000Z",
        "start_time": "2023-10-16T11:26:19.000Z"
      },
      "provided_name": ".ds-metrics-haproxy.info-default-2023.10.16-000002",

time_series mapping

image

@agithomas
Copy link
Contributor Author

Verification check for timeseries enablement in stats datastream

      "time_series": {
        "end_time": "2023-10-16T15:35:18.000Z",
        "start_time": "2023-10-16T11:26:19.000Z"
      },

metric_type mapping

image

@agithomas agithomas marked this pull request as ready for review October 16, 2023 13:32
@agithomas agithomas requested a review from a team as a code owner October 16, 2023 13:32
Copy link
Contributor

@ritalwar ritalwar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@lalit-satapathy
Copy link
Contributor

uses incorrect aggregation functions in multiple dashboards and visualisation.

@agithomas, Can we briefly summarise the issues in the earlier aggregation and what was fixed. It's rather tricky to get a summary from the json file changes.

@agithomas
Copy link
Contributor Author

agithomas commented Oct 18, 2023

@agithomas, Can we briefly summarise the issues in the earlier aggregation and what was fixed. It's rather tricky to get a summary from the json file changes.

For all the fields that are having metric_type as counter, sum() function is used presently in the dashboard. This shows incorrect values in the dashboard compared to the /stats dashboard of haproxy.

All sum() functions are replaced with max() functions when field is having metric_type counter. This correction is also needed for TSDB compatibility for counter type fields to not show errors when using sum() function

@agithomas agithomas merged commit 27ca1d5 into elastic:main Oct 18, 2023
@elasticmachine
Copy link

Package haproxy - 1.8.6 containing this change is available at https://epr.elastic.co/search?package=haproxy

@agithomas agithomas deleted the issue-7138-haproxy-dashboard branch February 12, 2025 05:00
@andrewkroh andrewkroh added the dashboard Relates to a Kibana dashboard bug, enhancement, or modification. label Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dashboard Relates to a Kibana dashboard bug, enhancement, or modification. Integration:haproxy HAProxy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants