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

No Datacenter or ClusterComputeResource entity metrics #43

Open
dayglojesus opened this issue Mar 2, 2016 · 1 comment
Open

No Datacenter or ClusterComputeResource entity metrics #43

dayglojesus opened this issue Mar 2, 2016 · 1 comment

Comments

@dayglojesus
Copy link

Similar to issue #42, I cannot seem to get GraphiteReceiver to send any Datacenter or ClusterComputeResource entity metrics. However, these statistics can be collected using the builtin csvOutput receiver.

Other child-level entities (HostSystem or VirtualMachine) work normally, but collecting metrics above these containers does not produce any results or errors.

For instance, the following example in the config doesn't seem to work...
https://github.com/SYNAXON/GraphiteReceiver/blob/master/sample/sampleConfig.xml#L397-L411

Here is my complete config.xml:

<statsfeeder>
    <numberOfThreads>10</numberOfThreads>
    <frequency unit="second">60</frequency>
    <feeder>true</feeder>
    <receivers>
        <receiver>
            <name>graphite</name>
            <class>de.synaxon.graphitereceiver.core.MetricsReceiver</class>
            <properties>
                <property>
                    <name>host</name>
                    <value>my.host.com</value>
                </property>
                <property>
                    <name>port</name>
                    <value>2003</value>
                </property>
            </properties>
        </receiver>
    </receivers>
    <entityList>
        <entity>
            <receivers>graphite</receivers>
            <name>myCluster</name>
            <type>ClusterComputeResource</type>
            <intervalId>300</intervalId>
            <maxSamples>10</maxSamples>
            <statsList>
                <stat>cpu.usagemhz.average</stat>
            </statsList>
        </entity>
    </entityList>
</statsfeeder>

Here is a debug log excerpt:

StatsFeeder [4.1 (Build jenkins-Statsfeeder-697)]
Copyright (c) 2011-2013 VMware, Inc
All rights reserved
0    [main] DEBUG de.synaxon.graphitereceiver.core.MetricsReceiver  - MetricsReceiver Constructor.
6    [main] DEBUG de.synaxon.graphitereceiver.core.MetricsReceiver  - MetricsReceiver join in setExecutionContext.
7    [main] DEBUG de.synaxon.graphitereceiver.core.MetricsReceiver  - Getting context and properties
8    [main] DEBUG de.synaxon.graphitereceiver.core.MetricsReceiver  - graphite_force_reconnect_timeout attribute is not set or not supported.
8    [main] DEBUG de.synaxon.graphitereceiver.core.MetricsReceiver  - graphite_force_reconnect_timeout is set to < 1 will not be supported: 
10   [main] DEBUG de.synaxon.graphitereceiver.utils.Utils  - cluster_map_refresh_timeout attribute is not set or not supported.
11   [main] DEBUG de.synaxon.graphitereceiver.utils.Utils  - cluster_map_refresh_timeout set: 60 seconds
11   [main] DEBUG de.synaxon.graphitereceiver.utils.Utils  - alternate_vm_prefix_sufix_timeout attribute is not set or not supported.
11   [main] DEBUG de.synaxon.graphitereceiver.utils.Utils  - alternate_vm_prefix_sufix_timeout set: 60 seconds
87   [main] DEBUG de.synaxon.graphitereceiver.utils.Utils  - cViewRef is not null: null
111  [main] DEBUG de.synaxon.graphitereceiver.utils.Utils  - cViewRef is not null: SPT
197  [main] DEBUG de.synaxon.graphitereceiver.utils.Utils  - cViewRef is not null: MyCluster
628  [main] DEBUG de.synaxon.graphitereceiver.core.MetricsReceiver  - MetricsReceiver  setExecutionContext.
630  [main] INFO  com.vmware.ee.statsfeeder.AbstractStatsFeeder  - Created receiver [graphite]
631  [main] INFO  com.vmware.ee.statsfeeder.Main  - Is Feeder: true
636  [main] INFO  com.vmware.ee.statsfeeder.MOREFRetriever  - entityNameSet size: 1
637  [main] DEBUG com.vmware.ee.statsfeeder.MOREFRetriever  - Name: MyCluster & Type: ClusterComputeResource
637  [main] INFO  com.vmware.ee.statsfeeder.MOREFRetriever  - Type: ClusterComputeResource
696  [main] DEBUG com.vmware.ee.statsfeeder.MOREFRetriever  - MOR Type: ClusterComputeResource
697  [main] DEBUG com.vmware.ee.statsfeeder.MOREFRetriever  - MOR Type: ClusterComputeResource
697  [main] DEBUG com.vmware.ee.statsfeeder.MOREFRetriever  - Found MOREF for: MyCluster
698  [main] DEBUG com.vmware.ee.statsfeeder.MOREFRetriever  - No ContainerViews to monitor !!!
700  [main] INFO  com.vmware.ee.statsfeeder.CounterInfo  - Initializing PerfCounters
957  [main] DEBUG com.vmware.ee.statsfeeder.CounterInfo  - cpu.usage.none - 1
958  [main] DEBUG com.vmware.ee.statsfeeder.CounterInfo  - cpu.usage.average - 2
958  [main] DEBUG com.vmware.ee.statsfeeder.CounterInfo  - cpu.usage.minimum - 3
958  [main] DEBUG com.vmware.ee.statsfeeder.CounterInfo  - cpu.usage.maximum - 4
958  [main] DEBUG com.vmware.ee.statsfeeder.CounterInfo  - cpu.usagemhz.none - 5
959  [main] DEBUG com.vmware.ee.statsfeeder.CounterInfo  - cpu.usagemhz.average - 6
...
-----------------------------
Managed entity: com.vmware.vim25.ManagedObjectReference@6844e8c5
Current supported: false
Refresh rate: -1
Summary supported: true
-----------------------------
1064 [main] DEBUG com.vmware.ee.statsfeeder.VsphereStatsFeeder  - Starting StatsRetriever for Entity [MyCluster[ClusterComputeResource]]
1067 [Timer-0] DEBUG de.synaxon.graphitereceiver.core.MetricsReceiver  - refreshClusterMapPeriod at period: 1
1123 [Timer-0] DEBUG de.synaxon.graphitereceiver.utils.Utils  - cViewRef is not null: null
1141 [Timer-0] DEBUG de.synaxon.graphitereceiver.utils.Utils  - cViewRef is not null: SPT
1193 [Timer-0] DEBUG de.synaxon.graphitereceiver.utils.Utils  - cViewRef is not null: MyCluster
1464 [Timer-0] DEBUG de.synaxon.graphitereceiver.core.MetricsReceiver  - onStartRetrieval - Graphite Host and Port: my.host.com 2003
1480 [Timer-0] DEBUG com.vmware.ee.statsfeeder.VsphereStatsFeeder  - ========== Submitted 1 for retrieval
1481 [pool-1-thread-1] DEBUG com.vmware.ee.statsfeeder.StatsRetriever  - Setting retrieval timeout to [60000] (ms)
61483 [pool-1-thread-1] DEBUG com.vmware.ee.statsfeeder.StatsRetriever  - Retriever ended, status = RUNNING
61483 [Timer-0] DEBUG com.vmware.ee.statsfeeder.VsphereStatsFeeder  - ========== There are [0] retrievers still running at end of collection
61483 [Timer-0] DEBUG com.vmware.ee.statsfeeder.VsphereStatsFeeder  - ========== Retrieval Total time: 60008
61484 [Timer-0] DEBUG de.synaxon.graphitereceiver.core.MetricsReceiver  - MetricsReceiver onEndRetrieval.
61484 [Timer-0] INFO  de.synaxon.graphitereceiver.core.MetricsReceiver  - onEndRetrieval PerformanceMetricsCountForEachRun: 0
61484 [Timer-0] WARN  com.vmware.ee.statsfeeder.VsphereStatsFeeder  - ========== Retrieval Time > Interval by : 417
61484 [Timer-0] DEBUG de.synaxon.graphitereceiver.core.MetricsReceiver  - refreshClusterMapPeriod at period: 1
64106 [Timer-0] DEBUG de.synaxon.graphitereceiver.utils.Utils  - cViewRef is not null: null
64120 [Timer-0] DEBUG de.synaxon.graphitereceiver.utils.Utils  - cViewRef is not null: SPT
64177 [Timer-0] DEBUG de.synaxon.graphitereceiver.utils.Utils  - cViewRef is not null: MyCluster
64470 [Timer-0] DEBUG de.synaxon.graphitereceiver.core.MetricsReceiver  - onStartRetrieval - Graphite Host and Port: my.host.com    2003
64474 [Timer-0] DEBUG com.vmware.ee.statsfeeder.VsphereStatsFeeder  - ========== Submitted 1 for retrieval
64475 [pool-1-thread-2] DEBUG com.vmware.ee.statsfeeder.StatsRetriever  - Setting retrieval timeout to [60000] (ms)

There is no indication of a configuration problem, error or warning, there is one line that appears strange:

698 [main] DEBUG com.vmware.ee.statsfeeder.MOREFRetriever - No ContainerViews to monitor !!!

@dayglojesus dayglojesus changed the title No Datacenter or ClusterComputeResource entity metrics No Datacenter or ClusterComputeResource entity metrics Mar 2, 2016
@exbane
Copy link

exbane commented Apr 19, 2017

I'm facing the same problem.. What can be done to resolve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants