This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| get list of alarms from ceilometer. Port based on Vagrantfile port forwarding. | |
| GET http://localhost:8082/v2/alarms | |
| Response: | |
| [ | |
| { | |
| "alarm_actions": [ | |
| "http://10.0.2.15:8000/v1/signal/arn%3Aopenstack%3Aheat%3A%3Ae80185c2992040379ccdadb3d34c78ec%3Astacks%2Fautoscale-8%2F85b121c5-c5e8-4048-adaf-84ed2e07c8cd%2Fresources%2Fscale_down_policy?Timestamp=2015-02-22T18%3A27%3A22Z&SignatureMethod=HmacSHA256&AWSAccessKeyId=b6d1ef23a7b0439c93f850a9c9d369c2&SignatureVersion=2&Signature=bf%2FMozGKTI7MSEXzrZQ7d6I4YgtTumI5QawPRbd9lgc%3D" | |
| ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| get details on a VM. Compute port is based on port forwarding set on Vagrantfile. | |
| GET http://localhost:8083/v2/e80185c2992040379ccdadb3d34c78ec/servers/c0a2646b-25dd-49b1-86ef-ea0818088f77 | |
| Response: | |
| { | |
| "server": { | |
| "status": "ACTIVE", | |
| "updated": "2015-02-22T18:58:05Z", | |
| "hostId": "dac664f5623d69df7a20190bdba4015bd3d71629dddfa6deeb18e9b4", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| heat_template_version: 2013-05-23 | |
| description: cpu_util based scale up or scale down. Please adjust thresholds below(in my case 0.65% cpu_util) to match cpu_util observed in your instances. | |
| parameters: | |
| flavor: | |
| type: string | |
| description: Flavor for the instances to be created | |
| default: m1.nano | |
| constraints: | |
| - custom_constraint: nova.flavor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Assumes keystone 5000 port on vagrant VM is forwared to port 8084 on host machine | |
| POST http://localhost:8084/v2.0/tokens | |
| Payload: | |
| {"auth":{"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "letm3in"}}} | |
| Response: | |
| { | |
| "access": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [[local|localrc]] | |
| #enable_service ceilometer-acompute ceilometer-acentral ceilometer-anotification ceilometer-collector | |
| # Enable the ceilometer alarming services | |
| #enable_service ceilometer-alarm-evaluator,ceilometer-alarm-notifier | |
| # Enable the ceilometer api services | |
| #enable_service ceilometer-api | |
| enable_service heat h-api h-api-cfn h-api-cw h-eng |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| # Every Vagrant virtual environment requires a box to build off of. | |
| config.vm.box = "trusty64" | |
| # set up the the network | |
| config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## File: vm-infra-monitoring\ansible\monitoring\group_vars\all | |
| proxy_env: | |
| http_proxy: http://one.proxy.att.com:8080 | |
| https_proxy: http://one.proxy.att.com:8080 | |
| ## File: vm-infra-monitoring\ansible\monitoring\roles\apt\tasks\main.yml | |
| - apt: update_cache=yes upgrade=dist | |
| environment: proxy_env | |
| - shell: /usr/bin/apt-get autoremove -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DROP TABLE IF EXISTS metric; | |
| DROP TABLE IF EXISTS metric_type; | |
| DROP TABLE IF EXISTS uom; | |
| DROP TABLE IF EXISTS resource; | |
| DROP TABLE IF EXISTS usage_tenant; | |
| DROP TABLE IF EXISTS job_run; | |
| CREATE TABLE usage_tenant ( | |
| usage_tenant_id INT(10) NOT NULL AUTO_INCREMENT, | |
| source_tenant_id VARCHAR(36) NOT NULL, |
NewerOlder