{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/2014","repository_url":"https://api.github.com/repos/prometheus/prometheus","labels_url":"https://api.github.com/repos/prometheus/prometheus/issues/2014/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/prometheus/issues/2014/comments","events_url":"https://api.github.com/repos/prometheus/prometheus/issues/2014/events","html_url":"https://github.com/prometheus/prometheus/issues/2014","id":178284058,"number":2014,"title":"Prometheus reports malformed alert at wrong line number","user":{"login":"alexmbird","id":691831,"avatar_url":"https://avatars3.githubusercontent.com/u/691831?v=3","gravatar_id":"","url":"https://api.github.com/users/alexmbird","html_url":"https://github.com/alexmbird","followers_url":"https://api.github.com/users/alexmbird/followers","following_url":"https://api.github.com/users/alexmbird/following{/other_user}","gists_url":"https://api.github.com/users/alexmbird/gists{/gist_id}","starred_url":"https://api.github.com/users/alexmbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexmbird/subscriptions","organizations_url":"https://api.github.com/users/alexmbird/orgs","repos_url":"https://api.github.com/users/alexmbird/repos","events_url":"https://api.github.com/users/alexmbird/events{/privacy}","received_events_url":"https://api.github.com/users/alexmbird/received_events","type":"User","site_admin":false},"labels":[{"id":365567449,"url":"https://api.github.com/repos/prometheus/prometheus/labels/component/rules","name":"component/rules","color":"0052cc","default":false},{"id":365563588,"url":"https://api.github.com/repos/prometheus/prometheus/labels/kind/bug","name":"kind/bug","color":"ff0000","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-21T08:48:10Z","updated_at":"2017-06-28T07:39:28Z","closed_at":null,"body":"Greetings Prometheans!\n\n**See update below...**\n\nI am trying to setup alerting for my cluster and have run into a troublesome bug.  What I want is pretty standard; to alert for filesystems with less than 20% space free.\n\nBased upon examples I've seen elsewhere it seems the correct thing to do is:\n\n```\nALERT NodeFilesystemUsageHigh\n    IF node_filesystem_free{} / node_filesystem_size{} < 0.2\n    LABELS { severity = \"page\" }\n    ANNOTATIONS {\n    summary = \"Node filesystem usage is high\",\n    description = \"Node {{ $labels.instance }}'s filesystem {{ $labels.filesystem }} has less than 20% disk space remaining.\"\n    }\n```\n\nMy understanding is that the expression `node_filesystem_free{} / node_filesystem_size{} < 0.2` should produce an instance vector of all metrics representing a filesystem with under 20% free.  I've tried it out in the console:\n-  `node_filesystem_free{} / node_filesystem_size{}` gives a list of all my filesystems with a value between `0` and `1` representing free space.  So far so good.\n-  `node_filesystem_free{} / node_filesystem_size{} < 0.2` gives an empty list because this is a good day and none of my filesystems are full\n\nHowever, when I try to deploy this rule by reloading my Prometheus config, it logs the error:\n\n```\ntime=\"2016-09-21T08:21:58Z\" level=info msg=\"Loading configuration file /etc/prometheus/prometheus.yml\" source=\"main.go:221\"\ntime=\"2016-09-21T08:21:59Z\" level=error msg=\"Failed to apply configuration: error loading rules, previous rule set restored: error parsing /etc/prometheus/alerts.rules: parse error at line 25, char 2: expected type vector in alert statement, got scalar\" source=\"main.go:239\"\ntime=\"2016-09-21T08:21:59Z\" level=error msg=\"Error reloading config: one or more errors occured while applying the new configuration (-config.file=/etc/prometheus/prometheus.yml)\" source=\"main.go:146\"\n```\n\nI've been banging my head against this one for a few hours now.  Doubtless I'm doing something wrong but no amount of googling reveals what it is.  Can somebody please point me in the right direction?\n\nIn case it's relevant here's my Prometheus build information:\n\n```\nBuild Information\nVersion     1.1.2\nRevision    36fbdcc30fd13ad796381dc934742c559feeb1b5\nBranch  master\nBuildUser   root@a74d279a0d22\nBuildDate   20160908-13:12:43\nGoVersion   go1.6.3\n```\n"},"comment":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/comments/311582081","html_url":"https://github.com/prometheus/prometheus/issues/2014#issuecomment-311582081","issue_url":"https://api.github.com/repos/prometheus/prometheus/issues/2014","id":311582081,"user":{"login":"GubendiranM","id":25481187,"avatar_url":"https://avatars3.githubusercontent.com/u/25481187?v=3","gravatar_id":"","url":"https://api.github.com/users/GubendiranM","html_url":"https://github.com/GubendiranM","followers_url":"https://api.github.com/users/GubendiranM/followers","following_url":"https://api.github.com/users/GubendiranM/following{/other_user}","gists_url":"https://api.github.com/users/GubendiranM/gists{/gist_id}","starred_url":"https://api.github.com/users/GubendiranM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GubendiranM/subscriptions","organizations_url":"https://api.github.com/users/GubendiranM/orgs","repos_url":"https://api.github.com/users/GubendiranM/repos","events_url":"https://api.github.com/users/GubendiranM/events{/privacy}","received_events_url":"https://api.github.com/users/GubendiranM/received_events","type":"User","site_admin":false},"created_at":"2017-06-28T07:39:28Z","updated_at":"2017-06-28T07:39:28Z","body":"ok @brian-brazil \r\nthank you for the reference"}}
{"actor":{"display_login":"GubendiranM"}}