Permalink
Browse files

Add /varz endpoints

  • Loading branch information...
1 parent 4a74397 commit 9fe4ce823b4ee49fe6c95d8627c3dedebf5a6a54 @frodenas frodenas committed Apr 2, 2012
View
@@ -23,6 +23,7 @@ endpoint_categories:
- http-apps
- http-services
- http-users
+ - http-varz
nats_categories:
- cloud-controller
- dea
@@ -0,0 +1,134 @@
+{
+ "type": "CloudController",
+ "index": null,
+ "uuid": "daffe9692ed6cd447f28b4ba874d202b",
+ "host": "192.168.1.15:41111",
+ "credentials": [
+ "37637511ab0e387f764646dea0a692f9",
+ "9d00ec8ab3ea7f5b35abcd341db578bf"
+ ],
+ "start": "2012-04-02 21:02:19 +0200",
+ "num_cores": 4,
+ "config": {
+ "external_uri": "api.vcap.me",
+ "description": "VMware's Cloud Application Platform",
+ "support_address": "http://support.cloudfoundry.com",
+ "local_route": null,
+ "allow_registration": true,
+ "allow_external_app_uris": false,
+ "app_uris": {
+ "allow_external": false,
+ "reserved_list": [
+
+ ]
+ },
+ "external_port": 9022,
+ "nginx": {
+ "use_nginx": false,
+ "insecure_instance_port": 9025
+ },
+ "logging": {
+ "level": "debug"
+ },
+ "rails_logging": {
+ "level": "debug"
+ },
+ "directories": {
+ "droplets": "/var/vcap/shared/droplets",
+ "resources": "/var/vcap/shared/resources",
+ "staging_manifests": "/home/frodenas/cloudfoundry/.deployments/devbox/config/staging",
+ "staging_cache": "/var/vcap/data/cloud_controller/staging",
+ "tmpdir": "/var/vcap/data/cloud_controller/tmp"
+ },
+ "pid": "/var/vcap/sys/run/cloudcontroller.pid",
+ "rails_environment": "production",
+ "uaa": {
+ "enabled": true,
+ "url": "http://uaa.vcap.me",
+ "resource_id": "cloud_controller",
+ "token_secret": "uaa_jwt_secret",
+ "client_secret": "cloudcontrollersecret"
+ },
+ "staging": {
+ "max_concurrent_stagers": 10,
+ "max_staging_runtime": 120,
+ "secure": false
+ },
+ "admins": [
+ "dev@cloudfoundry.org"
+ ],
+ "https_required": false,
+ "https_required_for_admins": false,
+ "default_account_capacity": {
+ "memory": 2048,
+ "app_uris": 4,
+ "services": 16,
+ "apps": 20
+ },
+ "builtin_services": {
+ "redis": {
+ "token": "changeredistoken"
+ },
+ "mongodb": {
+ "token": "changemongodbtoken"
+ },
+ "neo4j": {
+ "token": "changeneo4jtoken"
+ }
+ },
+ "allow_debug": true,
+ "runtimes": {
+ "ruby18": {
+ "version": "1.8.7"
+ },
+ "ruby19": {
+ "version": "1.9.2"
+ },
+ "node": {
+ "version": "0.4.12",
+ "debug_modes": [
+ "run",
+ "suspend"
+ ]
+ },
+ "node06": {
+ "version": "0.6.8",
+ "debug_modes": [
+ "run",
+ "suspend"
+ ]
+ },
+ "java": {
+ "version": "1.6.0",
+ "debug_modes": [
+ "run",
+ "suspend"
+ ]
+ },
+ "php": {
+ "version": "5.3.[2-6]"
+ },
+ "erlangR14B02": {
+ "version": ".* 5.8.3"
+ },
+ "python2": {
+ "version": "2.[67]"
+ }
+ },
+ "new_initial_placement": false,
+ "bulk_api": {
+ "auth": {
+ "user": "bulk_api"
+ }
+ },
+ "max_droplet_size": 536870912
+ },
+ "requests": 536,
+ "pending_requests": 0,
+ "requests_per_sec": 0,
+ "running_stage_cmds": 0,
+ "pending_stage_cmds": 0,
+ "uptime": "0d:2h:13m:50s",
+ "mem": 77584,
+ "cpu": 0.2
+}
@@ -0,0 +1,68 @@
+{
+ "type": "HealthManager",
+ "index": null,
+ "uuid": "029122ba9a03b337c4ec36425d88ea34",
+ "host": "192.168.1.15:42577",
+ "credentials": [
+ "3acdf6219db11193541da8afe6f2e641",
+ "2337c5a6bae03b4451a0c6ad12a815ce"
+ ],
+ "start": "2012-04-02 21:02:38 +0200",
+ "num_cores": 4,
+ "config": {
+ "local_route": null,
+ "logging": {
+ "level": "info"
+ },
+ "pid": "/var/vcap/sys/run/healthmanager.pid",
+ "rails_environment": "production",
+ "intervals": {
+ "database_scan": 60,
+ "droplet_lost": 30,
+ "droplets_analysis": 10,
+ "flapping_death": 3,
+ "flapping_timeout": 180,
+ "restart_timeout": 20,
+ "stable_state": 60
+ }
+ },
+ "total_apps": 0,
+ "total_users": 1,
+ "total_instances": 0,
+ "running_instances": 0,
+ "crashed_instances": 0,
+ "down_instances": 0,
+ "queue_length": 0,
+ "total": {
+ "frameworks": {
+
+ },
+ "runtimes": {
+
+ }
+ },
+ "running": {
+ "frameworks": {
+
+ },
+ "runtimes": {
+
+ }
+ },
+ "heartbeat_msgs_received": 0,
+ "droplet_exited_msgs_received": 0,
+ "droplet_updated_msgs_received": 0,
+ "healthmanager_status_msgs_received": 0,
+ "healthmanager_health_request_msgs_received": 0,
+ "users": [
+ {
+ "email": "admin@vcap.me"
+ }
+ ],
+ "apps": [
+
+ ],
+ "uptime": "0d:2h:17m:58s",
+ "mem": 56288,
+ "cpu": 0.1
+}
@@ -0,0 +1,43 @@
+{
+ "type": "MongoaaS-Node",
+ "index": 0,
+ "uuid": "0-49828865b0c5a5b706a2ed65e777c945",
+ "host": "192.168.1.15:52137",
+ "credentials": [
+ "e86c714dfe4efbfd09aed690c71a867f",
+ "a31b74bf5efc1d12c624f7f0f13b3543"
+ ],
+ "start": "2012-04-02 21:02:25 +0200",
+ "num_cores": 4,
+ "config": {
+ "index": 0,
+ "plan": "free",
+ "capacity": 50,
+ "base_dir": "/var/vcap/services/mongodb/instances",
+ "ip_route": null,
+ "node_id": "mongodb_node_0",
+ "z_interval": null,
+ "local_db": "sqlite3:/var/vcap/services/mongodb/mongodb_node.db",
+ "migration_nfs": "/mnt/migration",
+ "max_nats_payload": null,
+ "config_template": "/home/frodenas/cloudfoundry/vcap/services/mongodb/resources/mongodb.conf.erb",
+ "port_range": "25001..45000",
+ "mongod_path": "/home/frodenas/cloudfoundry/.deployments/devbox/deploy/mongodb/bin/mongod",
+ "mongorestore_path": "mongorestore",
+ "max_memory": 128,
+ "mongod_log_dir": "/var/vcap/services/mongodb/logs",
+ "max_clients": null,
+ "quota_files": null
+ },
+ "running_services": [
+
+ ],
+ "disk": {
+
+ },
+ "max_capacity": 50,
+ "available_capacity": 50,
+ "uptime": "0d:2h:32m:39s",
+ "mem": 50516,
+ "cpu": 0.1
+}
@@ -0,0 +1,50 @@
+{
+ "type": "MongoaaS-Provisioner",
+ "index": 0,
+ "uuid": "0-8adeee92fd347caabcdf590e71cfcba6",
+ "host": "192.168.1.15:41786",
+ "credentials": [
+ "27e40800fb7c50741d003e663dc52ceb",
+ "82e724ac255aeba716f89ffb76514d22"
+ ],
+ "start": "2012-04-02 21:02:20 +0200",
+ "num_cores": 4,
+ "config": {
+ "index": 0,
+ "version": "1.8",
+ "ip_route": null,
+ "node_timeout": 5,
+ "z_interval": null,
+ "allow_over_provisioning": null,
+ "max_nats_payload": null,
+ "additional_options": {
+ "resque": null,
+ "upload_temp_dir": null
+ },
+ "status": null,
+ "plan_management": null
+ },
+ "nodes": {
+ "mongodb_node_0": {
+ "available_capacity": 50,
+ "id": "mongodb_node_0",
+ "plan": "free",
+ "time": 1333402685
+ }
+ },
+ "prov_svcs": {
+
+ },
+ "orphan_instances": {
+
+ },
+ "orphan_bindings": {
+
+ },
+ "plans": [
+
+ ],
+ "uptime": "0d:2h:35m:47s",
+ "mem": 48340,
+ "cpu": 0.1
+}
@@ -0,0 +1,46 @@
+{
+ "type": "MyaaS-Node",
+ "index": 0,
+ "uuid": "0-1a86909fd0dc58115f7d3ba819009aa3",
+ "host": "192.168.1.15:51388",
+ "credentials": [
+ "b67983fa2ae556b843fc49b04c80e030",
+ "e00bca1bc40f2e9d2da5f13703935f64"
+ ],
+ "start": "2012-04-02 21:02:43 +0200",
+ "num_cores": 4,
+ "config": {
+ "index": 0,
+ "plan": "free",
+ "capacity": 50,
+ "base_dir": "/var/vcap/services/mysql/",
+ "ip_route": null,
+ "node_id": "mysql_node_0",
+ "z_interval": null,
+ "local_db": "sqlite3:/var/vcap/services/mysql/mysql_node.db",
+ "migration_nfs": "/mnt/migration",
+ "max_nats_payload": null,
+ "mysqldump_bin": "mysqldump",
+ "gzip_bin": "gzip",
+ "mysql_bin": "mysql",
+ "max_db_size": 20,
+ "max_long_query": 3,
+ "max_long_tx": 30,
+ "max_user_conns": null,
+ "socket": null
+ },
+ "queries_since_startup": 32197,
+ "queries_per_second": 3.6333333333333333,
+ "database_status": [
+
+ ],
+ "max_capacity": 50,
+ "available_capacity": 50,
+ "long_queries_killed": 0,
+ "long_transactions_killed": 0,
+ "provision_served": 0,
+ "binding_served": 0,
+ "uptime": "0d:2h:29m:49s",
+ "mem": 48884,
+ "cpu": 0.2
+}
Oops, something went wrong.

0 comments on commit 9fe4ce8

Please sign in to comment.