{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/4522","repository_url":"https://api.github.com/repos/prometheus/prometheus","labels_url":"https://api.github.com/repos/prometheus/prometheus/issues/4522/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/prometheus/issues/4522/comments","events_url":"https://api.github.com/repos/prometheus/prometheus/issues/4522/events","html_url":"https://github.com/prometheus/prometheus/issues/4522","id":352427829,"node_id":"MDU6SXNzdWUzNTI0Mjc4Mjk=","number":4522,"title":"any way to support external user defined functions","user":{"login":"alburthoffman","id":863684,"node_id":"MDQ6VXNlcjg2MzY4NA==","avatar_url":"https://avatars1.githubusercontent.com/u/863684?v=4","gravatar_id":"","url":"https://api.github.com/users/alburthoffman","html_url":"https://github.com/alburthoffman","followers_url":"https://api.github.com/users/alburthoffman/followers","following_url":"https://api.github.com/users/alburthoffman/following{/other_user}","gists_url":"https://api.github.com/users/alburthoffman/gists{/gist_id}","starred_url":"https://api.github.com/users/alburthoffman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alburthoffman/subscriptions","organizations_url":"https://api.github.com/users/alburthoffman/orgs","repos_url":"https://api.github.com/users/alburthoffman/repos","events_url":"https://api.github.com/users/alburthoffman/events{/privacy}","received_events_url":"https://api.github.com/users/alburthoffman/received_events","type":"User","site_admin":false},"labels":[{"id":365567473,"node_id":"MDU6TGFiZWwzNjU1Njc0NzM=","url":"https://api.github.com/repos/prometheus/prometheus/labels/component/promql","name":"component/promql","color":"0052cc","default":false},{"id":647012865,"node_id":"MDU6TGFiZWw2NDcwMTI4NjU=","url":"https://api.github.com/repos/prometheus/prometheus/labels/not-as-easy-as-it-looks","name":"not-as-easy-as-it-looks","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-21T08:02:24Z","updated_at":"2018-09-26T08:46:22Z","closed_at":null,"author_association":"NONE","body":"## Proposal\r\n**Use case. Why is this important?**\r\nWe has to support some validation functions, which are limited to our company only. \r\nlike the metrics will be ignored if the host is in maintenance mode, and will be used when host is back.\r\nWe also have other private requirements.\r\n\r\nit's not a good idea to add those functions to functions.go. communicate does-not need them and we will have to maintain our own prometheus version.\r\n\r\nthe ideal solution would be we can do something like:\r\n`apply_external(\"plugin.function\", metrics)`\r\nthen it can check functions defined in plugin.so, which can be preload or loaded dynamically. "},"comment":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/comments/424636025","html_url":"https://github.com/prometheus/prometheus/issues/4522#issuecomment-424636025","issue_url":"https://api.github.com/repos/prometheus/prometheus/issues/4522","id":424636025,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDYzNjAyNQ==","user":{"login":"RalphSu","id":287680,"node_id":"MDQ6VXNlcjI4NzY4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/287680?v=4","gravatar_id":"","url":"https://api.github.com/users/RalphSu","html_url":"https://github.com/RalphSu","followers_url":"https://api.github.com/users/RalphSu/followers","following_url":"https://api.github.com/users/RalphSu/following{/other_user}","gists_url":"https://api.github.com/users/RalphSu/gists{/gist_id}","starred_url":"https://api.github.com/users/RalphSu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RalphSu/subscriptions","organizations_url":"https://api.github.com/users/RalphSu/orgs","repos_url":"https://api.github.com/users/RalphSu/repos","events_url":"https://api.github.com/users/RalphSu/events{/privacy}","received_events_url":"https://api.github.com/users/RalphSu/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T08:46:22Z","updated_at":"2018-09-26T08:46:22Z","author_association":"NONE","body":"> That's already possible within PromQL.\r\nDo you mean extension is already possible? That would be cool, can you point me a bit of reference? Not find in site docs if i don't miss anything\r\n"}}
{"actor":{"display_login":"RalphSu"}}