Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[O11y][Prometheus] Revert changes of TSDB performance and storage reduction #10766

Merged

Conversation

harnish-elastic
Copy link
Contributor

@harnish-elastic harnish-elastic commented Aug 12, 2024

  • Bugfix

Proposed commit message

  • Create a dimension field having fingerprint value applied on prometheus label values to avoid document drop.

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

@@ -2,10 +2,14 @@
type: group
fields:
- name: labels.*
type: object
Copy link
Contributor

@agithomas agithomas Aug 19, 2024

Choose a reason for hiding this comment

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

Let us not do this rollback change.
Introducing labels_fingerprint would suffice

Copy link
Contributor

Choose a reason for hiding this comment

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

What we have presently (as below), must be retained.

- name: prometheus
  type: group
  fields:
    - name: labels.*
      type: keyword
      dimension: true
      description: |
        Prometheus metric labels

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated, thanks!

@@ -2,10 +2,14 @@
type: group
fields:
- name: labels.*
type: object
Copy link
Contributor

Choose a reason for hiding this comment

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

As mentioned above, let us not do this mapping changes.

Introducing labels_fingerprint is sufficient.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated, thanks!

@andrewkroh andrewkroh added the bugfix Pull request that fixes a bug issue label Aug 19, 2024
@harnish-elastic harnish-elastic self-assigned this Aug 20, 2024
@harnish-elastic harnish-elastic marked this pull request as ready for review August 20, 2024 05:49
@harnish-elastic harnish-elastic requested review from a team as code owners August 20, 2024 05:49
@andrewkroh andrewkroh added Team:Cloudnative-Monitoring Label for the Cloud Native Monitoring team [elastic/obs-cloudnative-monitoring] Team:Obs-InfraObs Label for the Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] labels Aug 20, 2024
@agithomas agithomas changed the title [Don't merge][O11y][Prometheus] Revert changes of TSDB performance and storage reduction [O11y][Prometheus] Revert changes of TSDB performance and storage reduction Aug 20, 2024
Copy link
Contributor

@agithomas agithomas left a comment

Choose a reason for hiding this comment

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

LGTM!

@elasticmachine
Copy link

💚 Build Succeeded

History

cc @harnish-elastic

@harnish-elastic harnish-elastic merged commit aeeb35c into elastic:main Aug 22, 2024
5 checks passed
@elasticmachine
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Pull request that fixes a bug issue Integration:prometheus Prometheus Team:Cloudnative-Monitoring Label for the Cloud Native Monitoring team [elastic/obs-cloudnative-monitoring] Team:Obs-InfraObs Label for the Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants