Add standard exports to the java client.

Don't include memory for now, it is non-trivial to get
cross platform.
On 24 August 2014 10:32, Matt T. Proud <notifications@github.com> wrote:

> In
> utility/hotspot/src/main/java/io/prometheus/client/utility/standardexports/StandardExports.java:
>
> > + * Copyright 2014 Prometheus Team Licensed under the Apache License, Version 2.0
> > + * (the "License"); you may not use this file except in compliance with the
> > + * License. You may obtain a copy of the License at
> > + *
> > + * http://www.apache.org/licenses/LICENSE-2.0
> > + *
> > + * Unless required by applicable law or agreed to in writing, software
> > + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
> > + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
> > + * License for the specific language governing permissions and limitations under
> > + * the License.
> > + */
> > +
> > +package io.prometheus.client.utility.standardexports;
> > +
> > +import com.sun.management.OperatingSystemMXBean;
>
> None of these MX beans are portable.
> Put them in utility/hotspot. StandardExports, should the type exist, be
> portable across JVM runtimes and not rely on vendor-specific features.


The only portable across operating systems way I know of to get these stats
is via the Beans, and as far as I can tell I'm not relying on any
vendor-specific features as I'm following the Java 6 spec.

How do you suggest I get these in and enabled by default?