signalfx-agent icon indicating copy to clipboard operation
signalfx-agent copied to clipboard

Filter option for VMWare monitor not working

Open stevehut72 opened this issue 4 years ago • 4 comments

We are trying to monitor one data cluster within one of our two datacentres with signalfx using the filter option.

We have followed https://docs.signalfx.com/en/latest/integrations/agent/monitors/vsphere.html and used a variation of the example filter - "Datacenter == 'MyDatacenter' && Cluster == 'MyCluster'".

The instructions state "The above expr value will cause metrics collection for only the given datacentre + cluster. " which has worked for the specified datacentre in our filter but it has brought in all the clusters on a second datacentre in the VMWare infrastructure. Is there an issue with the filter option ?

Thanks

Steve

stevehut72 avatar Feb 12 '21 10:02 stevehut72

Hi Steve, sorry this isn't working for you. I'm assuming your filter expression is exactly Datacenter == 'MyDatacenter' && Cluster == 'MyCluster' with just the names of the datacenter and cluster replaced, correct?

Do you see anything in the logs that says shouldFollowCluster failed? (If the expression engine fails for any reason, it defaults to not filtering out the cluster)

Does the cluster for which you want metrics have a unique name? If so, can you try just "Cluster == 'MyCluster'"?

Thanks.

Edit: I ran some tests and found that the filter is not applied to hosts that are not in any cluster, so those hosts don't get filtered out. This will be fixed in the next release.

pmcollins avatar Feb 12 '21 15:02 pmcollins

Hi Pablo thanks for getting back to me. Yes we have specifically named the datacentre and cluster in the filter definition and the cluster does have a unique name. This works for the specified datacentre, the issue is signalfx if bringing in all the clusters from the second datacentre, which has a different name and has not been specified in the filter.

We checked the logs and there is no entry for “shouldFollowCluster failed”

Thanks

Steve

From: Pablo Collins [email protected] Sent: 12 February 2021 15:58 To: signalfx/signalfx-agent [email protected] Cc: Steve.Hutchinson (IT) [email protected]; Author [email protected] Subject: Re: [signalfx/signalfx-agent] Filter option for VMWare monitor not working (#1605)

CAUTION: This mail comes from outside the University. Please consider this before opening attachments, clicking links, or acting on the content.

Hi Steve, sorry this isn't working for you. I'm assuming your filter expression is exactly Datacenter == 'MyDatacenter' && Cluster == 'MyCluster' with just the names of the datacenter and cluster replaced, correct?

Do you see anything in the logs that says shouldFollowCluster failed? (If the expression engine fails for any reason, it defaults to not filtering out the cluster)

Does the cluster for which you want metrics have a unique name? If so, can you try just "Cluster == 'MyCluster'"?

Thanks.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/signalfx/signalfx-agent/issues/1605#issuecomment-778279531, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AS2MZQGV62CDRSWYSCGZAY3S6VFYPANCNFSM4XQOKCBQ.

-- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). The Open University is authorised and regulated by the Financial Conduct Authority in relation to its secondary activity of credit broking.

stevehut72 avatar Feb 15 '21 09:02 stevehut72

@stevehut72 It looks like Pablo submitted a fix for this issue. This will be rolled into the next agent release.

Cheers,

  • Robert

rcastley avatar Feb 15 '21 11:02 rcastley

Thanks Robert

stevehut72 avatar Feb 15 '21 11:02 stevehut72

Closing this issue as inactive. Please reopen if this issue is still occurring.

atoulme avatar Sep 22 '22 04:09 atoulme