Skip to content

[GCP][CloudSQL] Set metric type - #7556

Merged
constanca-m merged 2 commits into
elastic:mainfrom
constanca-m:gcp-add-metric-type
Aug 29, 2023
Merged

[GCP][CloudSQL] Set metric type#7556
constanca-m merged 2 commits into
elastic:mainfrom
constanca-m:gcp-add-metric-type

Conversation

@constanca-m

Copy link
Copy Markdown
Contributor

What does this PR do?

Metric type of GCP CloudSQL metrics can be found here.

Set the metric type for:

  • CloudSQL - MySQL
  • CloudSQL - PostgreSQL
  • CloudSQL - SQL Server

Changes:

  1. Switch every delta metric marked as counter to gauge.
  2. Add metric type to the metrics without type.

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.

Related issues

Relates to #7555.

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
@constanca-m
constanca-m requested review from a team as code owners August 28, 2023 08:20
Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
@constanca-m constanca-m mentioned this pull request Aug 28, 2023
4 tasks
@constanca-m constanca-m self-assigned this Aug 28, 2023
@constanca-m constanca-m added Integration:gcp Google Cloud Platform Team:Cloud-Monitoring Label for the Cloud Monitoring team labels Aug 28, 2023
@elasticmachine

elasticmachine commented Aug 28, 2023

Copy link
Copy Markdown

💚 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-08-28T08:21:59.055+0000

  • Duration: 19 min 25 sec

Test stats 🧪

Test Results
Failed 0
Passed 68
Skipped 0
Total 68

🤖 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
Copy Markdown

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (6/6) 💚
Files 100.0% (6/6) 💚
Classes 100.0% (6/6) 💚
Methods 87.826% (101/115) 👍 14.493
Lines 96.0% (1464/1525) 👎 -4.0
Conditionals 100.0% (0/0) 💚
@constanca-m
constanca-m merged commit 69bfb75 into elastic:main Aug 29, 2023
@constanca-m
constanca-m deleted the gcp-add-metric-type branch August 29, 2023 06:00
@elasticmachine

Copy link
Copy Markdown

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

orestisfl pushed a commit to orestisfl/integrations that referenced this pull request May 15, 2026
* Set metric type.

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>

* Update changelog.

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>

---------

Signed-off-by: constanca-m <constanca.manteigas@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Integration:gcp Google Cloud Platform Team:Cloud-Monitoring Label for the Cloud Monitoring team

3 participants