elastic / integrations

Elastic Integrations
https://www.elastic.co/integrations
Other
187 stars 392 forks source link

[Postgresql] Association of metrics across Postgresql Datasets using OID #6765

Closed ishleenk17 closed 2 months ago

ishleenk17 commented 1 year ago

There are 3 datasets in Postgresql and all three have OID fields under different field names.

postgresql.activity.database.oid postgresql.database.oid postgresql.statement.database.oid

User should be able to associate data across these 3 datasets using these OID's. Opening this ticket for this enhancement in Postgresql. Probable Solution: Create an Alias for the OID's

Additionally, we can also check if similar changes are required in other databases as well.

niraj-elastic commented 3 months ago

Currently there are total four OID fields

Here we can make alias field database.oid for all the database OID fields so that user can make meaningful visualization related to database OID in general. i will raise a PR for this change soon, @ishleenk17 Let me know if there is anything else needed to be done here.

ishleenk17 commented 3 months ago

@niraj-elastic : Yes aliasing should work. Before that can we please confirm if the values are same for all of them? Expectation is the values should be similar.

niraj-elastic commented 2 months ago

@ishleenk17 I checked in metricbeat Postgresql module, And it is same as integration. all the data type for this three field is same and all of them gives oid of database,

ishleenk17 commented 2 months ago

Yes, lets go ahead with aliasing.

niraj-elastic commented 2 months ago

Closing this issue since the the PR with fix is merged.