Skip to content

[vSphere][datastorecluster] Add new Datastream Datastore Cluster - #11089

Merged
kush-elastic merged 20 commits into
elastic:mainfrom
kush-elastic:45-implement-the-change-to-datastore_cluster-datastream-in-integrations-using-the-snapshot-agent
Sep 22, 2024
Merged

[vSphere][datastorecluster] Add new Datastream Datastore Cluster#11089
kush-elastic merged 20 commits into
elastic:mainfrom
kush-elastic:45-implement-the-change-to-datastore_cluster-datastream-in-integrations-using-the-snapshot-agent

Conversation

@kush-elastic

@kush-elastic kush-elastic commented Sep 11, 2024

Copy link
Copy Markdown
Contributor

Description

Here are the following metrics to be added as part of new datastream datastore cluster in the vSphere Integration.

Metrics Type Metrics API Field Mappings
Datastore cluster capacity StoragePod.Summary.Capacity Summary capacity.bytes
  StoragePod.Summary.FreeSpace Summary free_space.bytes
  Datastore cluster childEntity(type= datastore) Extra API datastore.names
  childEntity(type= datastore) Extra API datastore.count

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.

TSDB

Values being used:
        elasticsearch_host = https://localhost:9200
        elasticsearch_ca_path = /root/.elastic-package/profiles/default/certs/elasticsearch/ca-cert.pem
        elasticsearch_user = elastic
        elasticsearch_pwd = changeme
        data_stream = metrics-vsphere.datastorecluster-default
        docs_index = First index of the data stream
        settings_mappings_index = Last index of the data stream
        max_docs = All documents
        get_overlapping_files = True
        directory_overlapping_files = overwritten-docs-metrics-vsphere.datastorecluster-default
        display_docs = 10
        copy_docs_per_dimension = 2

You're testing with version 8.15.2-SNAPSHOT.

Testing data stream metrics-vsphere.datastorecluster-default.
Index being used for the documents is .ds-metrics-vsphere.datastorecluster-default-2024.09.22-000001.
Index being used for the settings and mappings is .ds-metrics-vsphere.datastorecluster-default-2024.09.22-000001.

The time series fields for the TSDB index are: 
        - dimension (10 fields):
                - agent.id
                - cloud.account.id
                - cloud.availability_zone
                - cloud.instance.id
                - cloud.provider
                - cloud.region
                - container.id
                - host.name
                - service.address
                - vsphere.datastorecluster.name
        - gauge (3 fields):
                - vsphere.datastorecluster.capacity.bytes
                - vsphere.datastorecluster.datastore.count
                - vsphere.datastorecluster.free_space.bytes
        - routing_path (10 fields):
                - agent.id
                - cloud.account.id
                - cloud.availability_zone
                - cloud.instance.id
                - cloud.provider
                - cloud.region
                - container.id
                - host.name
                - service.address
                - vsphere.datastorecluster.name

Index tsdb-index-enabled successfully created.

Copying documents from .ds-metrics-vsphere.datastorecluster-default-2024.09.22-000001 to tsdb-index-enabled...
All 6 documents taken from index .ds-metrics-vsphere.datastorecluster-default-2024.09.22-000001 were successfully placed to index tsdb-index-enabled.

Related issues

@kush-elastic
kush-elastic requested a review from a team as a code owner September 11, 2024 05:45
@kush-elastic kush-elastic self-assigned this Sep 11, 2024
@andrewkroh andrewkroh added Integration:vsphere VMware vSphere Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] labels Sep 11, 2024
@kush-elastic kush-elastic added enhancement New feature or request Metricbeat and removed Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] labels Sep 11, 2024
@elasticmachine

Copy link
Copy Markdown

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@andrewkroh andrewkroh added the Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] label Sep 11, 2024
Comment thread packages/vsphere/data_stream/datastorecluster/fields/fields.yml Outdated
Comment thread packages/vsphere/data_stream/datastorecluster/manifest.yml

@lucian-ioan lucian-ioan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Add a changelog entry with version "1.14.0-next" as per this issue.

Comment thread packages/vsphere/data_stream/datastorecluster/fields/fields.yml Outdated
Comment thread packages/vsphere/data_stream/datastorecluster/fields/fields.yml
Comment thread packages/vsphere/data_stream/datastorecluster/fields/agent.yml Outdated
…nto 45-implement-the-change-to-datastore_cluster-datastream-in-integrations-using-the-snapshot-agent
Comment thread packages/vsphere/_dev/build/docs/README.md Outdated
Comment thread packages/vsphere/_dev/build/docs/README.md Outdated
…nto 45-implement-the-change-to-datastore_cluster-datastream-in-integrations-using-the-snapshot-agent
…nto 45-implement-the-change-to-datastore_cluster-datastream-in-integrations-using-the-snapshot-agent
Comment thread packages/vsphere/_dev/build/docs/README.md Outdated
Comment thread packages/vsphere/_dev/deploy/docker/Dockerfile
Comment thread packages/vsphere/data_stream/datastorecluster/manifest.yml Outdated
Comment thread packages/vsphere/_dev/build/docs/README.md Outdated
…nto 45-implement-the-change-to-datastore_cluster-datastream-in-integrations-using-the-snapshot-agent
@willemdh

Copy link
Copy Markdown

Is there support for Vsphere 8?

@kush-elastic

Copy link
Copy Markdown
Contributor Author

Is there support for Vsphere 8?

We have tested current integration with version 7.0.3, i cannot say confidently but it might just work fine with 8.0.0 as well.

@niraj-elastic niraj-elastic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@lucian-ioan lucian-ioan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Comment thread packages/vsphere/_dev/deploy/docker/docker-compose.yml
Comment thread packages/vsphere/data_stream/datastorecluster/fields/agent.yml Outdated
Comment thread packages/vsphere/data_stream/datastorecluster/manifest.yml Outdated
…-in-integrations-using-the-snapshot-agent' of https://github.com/kush-elastic/integrations into 45-implement-the-change-to-datastore_cluster-datastream-in-integrations-using-the-snapshot-agent

@ishleenk17 ishleenk17 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approving, please address 1 pending comment.

@elasticmachine

Copy link
Copy Markdown

💚 Build Succeeded

History

cc @kush-elastic

@kush-elastic
kush-elastic merged commit 8966518 into elastic:main Sep 22, 2024
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

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

harnish-crest-data pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 4, 2025
…stic#11089)

* initial commit for datastore cluster datastream

* resolve review comments

* update changelog entry

* update README.md

* udpate README

* update changelog entry

* reorder changelog

* fix changelog

* udpate docker-compose

* fix conflicts

* fix description of period

* update and fix system test for datastorecluster

* update processor URL

* remove agent fields
harnish-crest-data pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 5, 2025
…stic#11089)

* initial commit for datastore cluster datastream

* resolve review comments

* update changelog entry

* update README.md

* udpate README

* update changelog entry

* reorder changelog

* fix changelog

* udpate docker-compose

* fix conflicts

* fix description of period

* update and fix system test for datastorecluster

* update processor URL

* remove agent fields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Integration:vsphere VMware vSphere Metricbeat Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations]

7 participants