{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/snmp_exporter/issues/43","repository_url":"https://api.github.com/repos/prometheus/snmp_exporter","labels_url":"https://api.github.com/repos/prometheus/snmp_exporter/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/snmp_exporter/issues/43/comments","events_url":"https://api.github.com/repos/prometheus/snmp_exporter/issues/43/events","html_url":"https://github.com/prometheus/snmp_exporter/issues/43","id":159951676,"number":43,"title":"Multiple metrics with the same OID? (multi-CPU load case)","user":{"login":"paurullan","id":305266,"avatar_url":"https://avatars.githubusercontent.com/u/305266?v=3","gravatar_id":"","url":"https://api.github.com/users/paurullan","html_url":"https://github.com/paurullan","followers_url":"https://api.github.com/users/paurullan/followers","following_url":"https://api.github.com/users/paurullan/following{/other_user}","gists_url":"https://api.github.com/users/paurullan/gists{/gist_id}","starred_url":"https://api.github.com/users/paurullan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paurullan/subscriptions","organizations_url":"https://api.github.com/users/paurullan/orgs","repos_url":"https://api.github.com/users/paurullan/repos","events_url":"https://api.github.com/users/paurullan/events{/privacy}","received_events_url":"https://api.github.com/users/paurullan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-13T13:35:49Z","updated_at":"2016-06-13T13:52:47Z","closed_at":null,"body":"I have a multi-core switch I would like to monitor. I can walk the CPU tree but I do not know how to register the load for the 36 cores.\r\n\r\n```\r\n$ snmpwalk -v 2c  -c public 10.10.0.8  .1.3.6.1.2.1.25.3.3.1.2\r\niso.3.6.1.2.1.25.3.3.1.2.1 = INTEGER: 2\r\n[...]\r\niso.3.6.1.2.1.25.3.3.1.2.36 = INTEGER: 1\r\n```\r\n\r\nI may write the individual metrics but it will be a pain to use later in prometheus because I will not have a simple way to do an `avg` on the many metrics.\r\n\r\n```\r\n    - name: hrProcessorLoad_1\r\n      oid: 1.3.6.1.2.1.25.3.3.1.2.1 # the last «1» is the core number\r\n      type: Integer32\r\n```\r\n\r\nI would love to do something like this: to be able to mach the last OID number to a label.\r\n\r\n```\r\n    - name: hrProcessorLoad\r\n      oid: 1.3.6.1.2.1.25.3.3.1.2.[cpu]\r\n      type: Integer32\r\n      indexes:\r\n          - labelname: cpu\r\n            type: Integer32\r\n      lookups:\r\n         - labels: [cpu]\r\n           labelname: cpu\r\n           values: 1-36 \r\n```\r\n\r\n\r\nHow would you approach this issue?"},"comment":{"url":"https://api.github.com/repos/prometheus/snmp_exporter/issues/comments/225587028","html_url":"https://github.com/prometheus/snmp_exporter/issues/43#issuecomment-225587028","issue_url":"https://api.github.com/repos/prometheus/snmp_exporter/issues/43","id":225587028,"user":{"login":"RichiH","id":754723,"avatar_url":"https://avatars.githubusercontent.com/u/754723?v=3","gravatar_id":"","url":"https://api.github.com/users/RichiH","html_url":"https://github.com/RichiH","followers_url":"https://api.github.com/users/RichiH/followers","following_url":"https://api.github.com/users/RichiH/following{/other_user}","gists_url":"https://api.github.com/users/RichiH/gists{/gist_id}","starred_url":"https://api.github.com/users/RichiH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichiH/subscriptions","organizations_url":"https://api.github.com/users/RichiH/orgs","repos_url":"https://api.github.com/users/RichiH/repos","events_url":"https://api.github.com/users/RichiH/events{/privacy}","received_events_url":"https://api.github.com/users/RichiH/received_events","type":"User","site_admin":false},"created_at":"2016-06-13T13:52:47Z","updated_at":"2016-06-13T13:52:47Z","body":"@brian-brazil For clarification: If you omit `lookups`, the index simply assigns the last number in a OID to the label as its value?"}}
{"actor":{"display_login":"RichiH"}}