{"__v":1,"_id":"55d3b647f77e6d0d00b1b28f","category":{"__v":4,"_id":"55d3b645f77e6d0d00b1b27c","pages":["55d3b647f77e6d0d00b1b286","55d3b647f77e6d0d00b1b287","55d3b647f77e6d0d00b1b288","55d3b647f77e6d0d00b1b289","55d3b647f77e6d0d00b1b28a","55d3b647f77e6d0d00b1b28b","55d3b647f77e6d0d00b1b28c","55d3b647f77e6d0d00b1b28d","55d3b647f77e6d0d00b1b28e","55d3b647f77e6d0d00b1b28f","55d3b647f77e6d0d00b1b290","55d3b647f77e6d0d00b1b291","562ea6c53b2af20d006ad03d","56312e4024014b0d00bd9a48","564e4d122b223c2b00496a27"],"project":"55c505b41469ad2500fa2ab7","version":"55d3b644f77e6d0d00b1b273","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-08-10T18:45:23.276Z","from_sync":false,"order":9,"slug":"integration-guides","title":"Integration Guides"},"parentDoc":null,"project":"55c505b41469ad2500fa2ab7","user":"55c50f4a7c199a2f00665cbf","version":{"__v":6,"_id":"55d3b644f77e6d0d00b1b273","project":"55c505b41469ad2500fa2ab7","createdAt":"2015-08-18T22:48:36.632Z","releaseDate":"2015-08-18T22:48:36.632Z","categories":["55d3b645f77e6d0d00b1b274","55d3b645f77e6d0d00b1b275","55d3b645f77e6d0d00b1b276","55d3b645f77e6d0d00b1b277","55d3b645f77e6d0d00b1b278","55d3b645f77e6d0d00b1b279","55d3b645f77e6d0d00b1b27a","55d3b645f77e6d0d00b1b27b","55d3b645f77e6d0d00b1b27c","55d3b645f77e6d0d00b1b27d","55d7c2939510f00d007ec6fe","56fac9925df15a20002972a2","56fb2f7668e1d30e00a0b672","583498d411e8af2500f6b334","58e52a180ab7b03b00f4a97a"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.1.0","version":"1.1"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-08-10T20:10:25.195Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":8,"body":"## Step 1: Go to your integrations page to get started with Monasca integration.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/BarJSdZ5Tr6KEQHCNtJk_Monasca.png\",\n        \"Monasca.png\",\n        \"2842\",\n        \"1584\",\n        \"#7b0846\",\n        \"\"\n      ],\n      \"caption\": \"Monasca Integration\"\n    }\n  ]\n}\n[/block]\n## Step 2: Add your Monasca keystone auth token\nTo query alarm definitions from Monasca, we need the keystone auth token for Monasca. You can use the following curl command to get it.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -H 'Content-Type:application/json' -X POST -d ' {\\\"auth\\\":{\\\"tenantName\\\":\\\"tenant\\\",\\\"passwordCredentials\\\":{\\\"username\\\":\\\"username\\\",\\\"password\\\":\\\"password\\\"}}}' http://identity_host:5000/v2.0/tokens\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/OtZauLboQzSlIBY8lbO6_Screen%20Shot%202015-08-11%20at%206.05.25%20PM.png\",\n        \"Screen Shot 2015-08-11 at 6.05.25 PM.png\",\n        \"1684\",\n        \"670\",\n        \"#49042a\",\n        \"\"\n      ],\n      \"caption\": \"Add Monasca keystone auth token\"\n    }\n  ]\n}\n[/block]\n\n## Step 3: Add Neptuneio endpoint as a webhook in Monasca notifications.\nGo to (1) Monitoring --> (2) Notifications --> (3) Create Notification --> (4) Select the type as Webhook\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/4l9XPcO3RgGNEhJKWcWI_monascaWebhook.png\",\n        \"monascaWebhook.png\",\n        \"1920\",\n        \"1080\",\n        \"#1b95c8\",\n        \"\"\n      ],\n      \"caption\": \"Create Webhook notification in Monasca\"\n    }\n  ]\n}\n[/block]\n## Step 4: Add new webhook channel to your Monasca alarm definitions.\nGo to (1) Monitoring --> (2) Alarm Definitions --> (3) Edit Alarm Definition \nIn the notifications, click add more and select the Webhook you created in previous step.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/VI7u0uO5SeeHVNNsf9A8_monascaEditAlarm.png\",\n        \"monascaEditAlarm.png\",\n        \"1920\",\n        \"1080\",\n        \"#4d2825\",\n        \"\"\n      ],\n      \"caption\": \"Adding webhook to Monasca Alarm definitions\"\n    }\n  ]\n}\n[/block]\nRepeat the same for all the Alarm definitions and you are all done!","excerpt":"","slug":"monasca-integration","type":"basic","title":"Monasca"}
## Step 1: Go to your integrations page to get started with Monasca integration. [block:image] { "images": [ { "image": [ "https://files.readme.io/BarJSdZ5Tr6KEQHCNtJk_Monasca.png", "Monasca.png", "2842", "1584", "#7b0846", "" ], "caption": "Monasca Integration" } ] } [/block] ## Step 2: Add your Monasca keystone auth token To query alarm definitions from Monasca, we need the keystone auth token for Monasca. You can use the following curl command to get it. [block:code] { "codes": [ { "code": "curl -H 'Content-Type:application/json' -X POST -d ' {\"auth\":{\"tenantName\":\"tenant\",\"passwordCredentials\":{\"username\":\"username\",\"password\":\"password\"}}}' http://identity_host:5000/v2.0/tokens", "language": "shell" } ] } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/OtZauLboQzSlIBY8lbO6_Screen%20Shot%202015-08-11%20at%206.05.25%20PM.png", "Screen Shot 2015-08-11 at 6.05.25 PM.png", "1684", "670", "#49042a", "" ], "caption": "Add Monasca keystone auth token" } ] } [/block] ## Step 3: Add Neptuneio endpoint as a webhook in Monasca notifications. Go to (1) Monitoring --> (2) Notifications --> (3) Create Notification --> (4) Select the type as Webhook [block:image] { "images": [ { "image": [ "https://files.readme.io/4l9XPcO3RgGNEhJKWcWI_monascaWebhook.png", "monascaWebhook.png", "1920", "1080", "#1b95c8", "" ], "caption": "Create Webhook notification in Monasca" } ] } [/block] ## Step 4: Add new webhook channel to your Monasca alarm definitions. Go to (1) Monitoring --> (2) Alarm Definitions --> (3) Edit Alarm Definition In the notifications, click add more and select the Webhook you created in previous step. [block:image] { "images": [ { "image": [ "https://files.readme.io/VI7u0uO5SeeHVNNsf9A8_monascaEditAlarm.png", "monascaEditAlarm.png", "1920", "1080", "#4d2825", "" ], "caption": "Adding webhook to Monasca Alarm definitions" } ] } [/block] Repeat the same for all the Alarm definitions and you are all done!