Skip to content

Commit

Permalink
Add /varz missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
frodenas committed Apr 2, 2012
1 parent 9fe4ce8 commit 792543a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
25 changes: 25 additions & 0 deletions _posts/http-varz/0001-01-01-authentication.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
layout: post
category: http-varz
title: "Authentication"
---

In order to access to the /varz endpoints it is mandatory to use the
[basic authentication scheme](http://en.wikipedia.org/wiki/Basic_access_authentication).

The connection details (`host`, `port`, `username` and `password`) can be gathered:
* Publishing a `vcap.component.discover` message
* Using the static values specified at the `status` section of the `cloud_controller.yml` file

For example, when publishing a `vcap.component.discover` message, the
[cloud controller](/cloud-controller/subscribe-vcap-component-discover) will respond with:

<div class="js example">
{% highlight js %}
{% include snippets/cloudcontroller-component-discover.json %}
{% endhighlight %}
</div>

Then you can use the `host` and `credentials` vars to issue a GET request:

`GET http://{user}:{password}@{host}/varz`
8 changes: 8 additions & 0 deletions http-varz.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: category
title: /varz HTTP Endpoint
category_home: http-varz
---

The /varz http endpoint returns runtime metrics gathered by each component, allowing
3rd party monitoring systems to collect and process them.

0 comments on commit 792543a

Please sign in to comment.