{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/node_exporter/issues/754","repository_url":"https://api.github.com/repos/prometheus/node_exporter","labels_url":"https://api.github.com/repos/prometheus/node_exporter/issues/754/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/node_exporter/issues/754/comments","events_url":"https://api.github.com/repos/prometheus/node_exporter/issues/754/events","html_url":"https://github.com/prometheus/node_exporter/issues/754","id":279704969,"number":754,"title":"Add System V semaphores and shared memory metrics","user":{"login":"sathieu","id":741106,"avatar_url":"https://avatars0.githubusercontent.com/u/741106?v=4","gravatar_id":"","url":"https://api.github.com/users/sathieu","html_url":"https://github.com/sathieu","followers_url":"https://api.github.com/users/sathieu/followers","following_url":"https://api.github.com/users/sathieu/following{/other_user}","gists_url":"https://api.github.com/users/sathieu/gists{/gist_id}","starred_url":"https://api.github.com/users/sathieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sathieu/subscriptions","organizations_url":"https://api.github.com/users/sathieu/orgs","repos_url":"https://api.github.com/users/sathieu/repos","events_url":"https://api.github.com/users/sathieu/events{/privacy}","received_events_url":"https://api.github.com/users/sathieu/received_events","type":"User","site_admin":false},"labels":[{"id":36419758,"url":"https://api.github.com/repos/prometheus/node_exporter/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-06T10:41:25Z","updated_at":"2018-02-01T17:31:08Z","closed_at":null,"author_association":"NONE","body":"### What did you expect to see?\r\n\r\nSame metrics as:\r\n```\r\n# ipcs -u\r\n\r\n------ Messages Status --------\r\nallocated queues = 0\r\nused headers = 0\r\nused space = 0 bytes\r\n\r\n------ Shared Memory Status --------\r\nsegments allocated 1117\r\npages allocated 1535\r\npages resident  1535\r\npages swapped   0\r\nSwap performance: 0 attempts\t 0 successes\r\n\r\n------ Semaphore Status --------\r\nused arrays = 1006\r\nallocated semaphores = 1006\r\n```\r\n\r\ni. e. [semctl](https://manpages.debian.org/stretch/manpages-fr-dev/semctl.2)(IPC_INFO, ...):\r\n\r\n```\r\n       IPC_INFO (Linux-specific)\r\n                 Return information about system-wide semaphore limits and parameters in the structure pointed to by arg.__buf.  This structure  is  of  type  seminfo,  defined  in\r\n                 <sys/sem.h> if the _GNU_SOURCE feature test macro is defined:\r\n\r\n                     struct  seminfo {\r\n                         int semmap;  /* Number of entries in semaphore\r\n                                         map; unused within kernel */\r\n                         int semmni;  /* Maximum number of semaphore sets */\r\n                         int semmns;  /* Maximum number of semaphores in all\r\n                                         semaphore sets */\r\n                         int semmnu;  /* System-wide maximum number of undo\r\n                                         structures; unused within kernel */\r\n                         int semmsl;  /* Maximum number of semaphores in a\r\n                                         set */\r\n                         int semopm;  /* Maximum number of operations for\r\n                                         semop(2) */\r\n                         int semume;  /* Maximum number of undo entries per\r\n                                         process; unused within kernel */\r\n                         int semusz;  /* Size of struct sem_undo */\r\n                         int semvmx;  /* Maximum semaphore value */\r\n                         int semaem;  /* Max. value that can be recorded for\r\n                                         semaphore adjustment (SEM_UNDO) */\r\n                     };\r\n\r\n                 The semmsl, semmns, semopm, and semmni settings can be changed via /proc/sys/kernel/sem; see proc(5) for details.\r\n```\r\n\r\nWe need this because Apache is consuming a lot of semaphores on some servers.\r\n\r\n### What did you see instead?\r\n\r\nnothing"},"comment":{"url":"https://api.github.com/repos/prometheus/node_exporter/issues/comments/362341619","html_url":"https://github.com/prometheus/node_exporter/issues/754#issuecomment-362341619","issue_url":"https://api.github.com/repos/prometheus/node_exporter/issues/754","id":362341619,"user":{"login":"gtaylor","id":75556,"avatar_url":"https://avatars3.githubusercontent.com/u/75556?v=4","gravatar_id":"","url":"https://api.github.com/users/gtaylor","html_url":"https://github.com/gtaylor","followers_url":"https://api.github.com/users/gtaylor/followers","following_url":"https://api.github.com/users/gtaylor/following{/other_user}","gists_url":"https://api.github.com/users/gtaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/gtaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtaylor/subscriptions","organizations_url":"https://api.github.com/users/gtaylor/orgs","repos_url":"https://api.github.com/users/gtaylor/repos","events_url":"https://api.github.com/users/gtaylor/events{/privacy}","received_events_url":"https://api.github.com/users/gtaylor/received_events","type":"User","site_admin":false},"created_at":"2018-02-01T17:31:08Z","updated_at":"2018-02-01T17:31:08Z","author_association":"NONE","body":"We're looking to get some of the message queue IPC stats. Would that be covered as part of this issue, or should I create a new issue that is specifically for message queue stats?"}}
{"actor":{"display_login":"gtaylor"}}