35 lines
1.4 KiB
Markdown
35 lines
1.4 KiB
Markdown
|
|
# OpenCensus Monitored Resources Util
|
||
|
|
[![Build Status][travis-image]][travis-url]
|
||
|
|
[![Windows Build Status][appveyor-image]][appveyor-url]
|
||
|
|
[![Maven Central][maven-image]][maven-url]
|
||
|
|
|
||
|
|
The *OpenCensus Monitored Resource Util for Java* is a collection of utilities for auto detecting
|
||
|
|
monitored resource when exporting stats, based on the environment where the application is running.
|
||
|
|
|
||
|
|
## Quickstart
|
||
|
|
|
||
|
|
### Add the dependencies to your project
|
||
|
|
|
||
|
|
For Maven add to your `pom.xml`:
|
||
|
|
```xml
|
||
|
|
<dependencies>
|
||
|
|
<dependency>
|
||
|
|
<groupId>io.opencensus</groupId>
|
||
|
|
<artifactId>opencensus-contrib-monitored-resource-util</artifactId>
|
||
|
|
<version>0.16.1</version>
|
||
|
|
</dependency>
|
||
|
|
</dependencies>
|
||
|
|
```
|
||
|
|
|
||
|
|
For Gradle add to your dependencies:
|
||
|
|
```gradle
|
||
|
|
compile 'io.opencensus:opencensus-contrib-monitored-resource-util:0.16.1'
|
||
|
|
```
|
||
|
|
|
||
|
|
[travis-image]: https://travis-ci.org/census-instrumentation/opencensus-java.svg?branch=master
|
||
|
|
[travis-url]: https://travis-ci.org/census-instrumentation/opencensus-java
|
||
|
|
[appveyor-image]: https://ci.appveyor.com/api/projects/status/hxthmpkxar4jq4be/branch/master?svg=true
|
||
|
|
[appveyor-url]: https://ci.appveyor.com/project/opencensusjavateam/opencensus-java/branch/master
|
||
|
|
[maven-image]: https://maven-badges.herokuapp.com/maven-central/io.opencensus/opencensus-contrib-monitoredresource-util/badge.svg
|
||
|
|
[maven-url]: https://maven-badges.herokuapp.com/maven-central/io.opencensus/opencensus-contrib-monitoredresource-util
|