{"action":"closed","issue":{"url":"https://api.github.com/repos/SYNAXON/GraphiteReceiver/issues/8","labels_url":"https://api.github.com/repos/SYNAXON/GraphiteReceiver/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/SYNAXON/GraphiteReceiver/issues/8/comments","events_url":"https://api.github.com/repos/SYNAXON/GraphiteReceiver/issues/8/events","html_url":"https://github.com/SYNAXON/GraphiteReceiver/issues/8","id":62341615,"number":8,"title":"Bug: MaxSamples not working","user":{"login":"toni-moreno","id":5883405,"avatar_url":"https://avatars.githubusercontent.com/u/5883405?v=3","gravatar_id":"","url":"https://api.github.com/users/toni-moreno","html_url":"https://github.com/toni-moreno","followers_url":"https://api.github.com/users/toni-moreno/followers","following_url":"https://api.github.com/users/toni-moreno/following{/other_user}","gists_url":"https://api.github.com/users/toni-moreno/gists{/gist_id}","starred_url":"https://api.github.com/users/toni-moreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toni-moreno/subscriptions","organizations_url":"https://api.github.com/users/toni-moreno/orgs","repos_url":"https://api.github.com/users/toni-moreno/repos","events_url":"https://api.github.com/users/toni-moreno/events{/privacy}","received_events_url":"https://api.github.com/users/toni-moreno/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-17T09:24:26Z","updated_at":"2015-03-30T08:30:29Z","closed_at":"2015-03-30T08:30:29Z","body":"When trying to get only 1 metric/minute I've configured only one metric for 1 vm.\r\n```\r\n    <receivers>\r\n        <receiver>\r\n            <name>graphite</name>\r\n            <class>de.synaxon.graphitereceiver.MetricsReceiver</class>\r\n            <properties>\r\n                <property>\r\n                    <name>host</name>\r\n                    <value>localhost</value>\r\n                </property>\r\n                <property>\r\n                    <name>port</name>\r\n                    <value>2055</value>\r\n                </property>\r\n                <property>\r\n                    <name>prefix</name>\r\n                    <value>esxtest</value>\r\n                </property>\r\n                <property>\r\n                    <name>use_fqdn</name>\r\n                    <value>false</value>\r\n                </property>\r\n                <property>\r\n                    <name>use_entity_type_prefix</name>\r\n                    <value>true</value>\r\n                </property>\r\n\r\n            </properties>\r\n                              \r\n...\r\n <frequency unit=\"second\">60</frequency>\r\n...\r\n        <entity>\r\n            <receivers>graphite</receivers>\r\n            <name>APACHE_TEST</name>\r\n            <type>VirtualMachine</type>\r\n            <intervalId>20</intervalId>\r\n            <maxSamples>1</maxSamples>\r\n            <statsList>\r\n                <stat>cpu.usage.average</stat>\r\n            </statsList>\r\n        </entity>\r\n..\r\n```\r\n\r\nwe get 3 metrics each minute ( one per each 20 seconds) thus with maxsamples=1.\r\n\r\n```\r\nesxtest.vm.APACHE_TEST.cpu.usage.average_percent 14 1426583560\r\nesxtest.vm.APACHE_TEST.cpu.usage.average_percent 13 1426583580\r\nesxtest.vm.APACHE_TEST.cpu.usage.average_percent 12 1426583600\r\n```\r\n\r\n\r\n\r\n"}}