-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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` |
This file contains 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
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. |