Add new apache-geode-micrometer2 module.

The apache-geode-micrometer2 module includes integration support for Apache Geode 1.x with Micrometer 2.x.
This commit is contained in:
John Blum
2022-04-06 13:11:20 -07:00
parent 866935c952
commit f5ab7e537c
7 changed files with 261 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
apply plugin: 'io.spring.convention.spring-module'
description = "Integration for Apache Geode and Micrometer 2"
dependencies {
implementation "io.micrometer:micrometer-binders"
}

View File

@@ -0,0 +1,42 @@
/*
* Copyright 2017-present the original author or authors.
*
* 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
*
* https://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.micrometer.core.instrument.binder.jvm;
import io.micrometer.core.instrument.Tag;
/**
* Extension of {@link io.micrometer.binder.jvm.JvmGcMetrics} for adapting and repackaging purposes
* as required by Apache Geode 1.x, which is based on Micrometer 1.x.
*
* @author John Blum
* @see io.micrometer.binder.jvm.JvmGcMetrics
* @since 2.0.0
*/
@SuppressWarnings("unused")
public class JvmGcMetrics extends io.micrometer.binder.jvm.JvmGcMetrics {
/**
* @inheritDoc
*/
public JvmGcMetrics() { }
/**
* @inheritDoc
*/
public JvmGcMetrics(Iterable<Tag> tags) {
super(tags);
}
}

View File

@@ -0,0 +1,42 @@
/*
* Copyright 2017-present the original author or authors.
*
* 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
*
* https://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.micrometer.core.instrument.binder.jvm;
import io.micrometer.core.instrument.Tag;
/**
* Extension of {@link io.micrometer.binder.jvm.JvmMemoryMetrics} for adapting and repackaging purposes
* as required by Apache Geode 1.x, which is based on Micrometer 1.x.
*
* @author John Blum
* @see io.micrometer.binder.jvm.JvmMemoryMetrics
* @since 2.0.0
*/
@SuppressWarnings("unused")
public class JvmMemoryMetrics extends io.micrometer.binder.jvm.JvmMemoryMetrics {
/**
* @inheritDoc
*/
public JvmMemoryMetrics() { }
/**
* @inheritDoc
*/
public JvmMemoryMetrics(Iterable<Tag> tags) {
super(tags);
}
}

View File

@@ -0,0 +1,42 @@
/*
* Copyright 2017-present the original author or authors.
*
* 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
*
* https://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.micrometer.core.instrument.binder.jvm;
import io.micrometer.core.instrument.Tag;
/**
* Extension of {@link io.micrometer.binder.jvm.JvmThreadMetrics} for adapting and repackaging purposes
* as required by Apache Geode 1.x, which is based on Micrometer 1.x.
*
* @author John Blum
* @see io.micrometer.binder.jvm.JvmThreadMetrics
* @since 2.0.0
*/
@SuppressWarnings("unused")
public class JvmThreadMetrics extends io.micrometer.binder.jvm.JvmThreadMetrics {
/**
* @inheritDoc
*/
public JvmThreadMetrics() { }
/**
* @inheritDoc
*/
public JvmThreadMetrics(Iterable<Tag> tags) {
super(tags);
}
}

View File

@@ -0,0 +1,42 @@
/*
* Copyright 2017-present the original author or authors.
*
* 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
*
* https://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.micrometer.core.instrument.binder.system;
import io.micrometer.core.instrument.Tag;
/**
* Extension of {@link io.micrometer.binder.system.FileDescriptorMetrics} for adapting and repackaging purposes
* as required by Apache Geode 1.x, which is based on Micrometer 1.x.
*
* @author John Blum
* @see io.micrometer.binder.system.FileDescriptorMetrics
* @since 2.0.0
*/
@SuppressWarnings("unused")
public class FileDescriptorMetrics extends io.micrometer.binder.system.FileDescriptorMetrics {
/**
* @inheritDoc
*/
public FileDescriptorMetrics() { }
/**
* @inheritDoc
*/
public FileDescriptorMetrics(Iterable<Tag> tags) {
super(tags);
}
}

View File

@@ -0,0 +1,42 @@
/*
* Copyright 2017-present the original author or authors.
*
* 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
*
* https://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.micrometer.core.instrument.binder.system;
import io.micrometer.core.instrument.Tag;
/**
* Extension of {@link io.micrometer.binder.system.FileDescriptorMetrics} for adapting and repackaging purposes
* as required by Apache Geode 1.x, which is based on Micrometer 1.x.
*
* @author John Blum
* @see io.micrometer.binder.system.ProcessorMetrics
* @since 2.0.0
*/
@SuppressWarnings("unused")
public class ProcessorMetrics extends io.micrometer.binder.system.ProcessorMetrics {
/**
* @inheritDoc
*/
public ProcessorMetrics() { }
/**
* @inheritDoc
*/
public ProcessorMetrics(Iterable<Tag> tags) {
super(tags);
}
}

View File

@@ -0,0 +1,42 @@
/*
* Copyright 2017-present the original author or authors.
*
* 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
*
* https://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.micrometer.core.instrument.binder.system;
import io.micrometer.core.instrument.Tag;
/**
* Extension of {@link io.micrometer.binder.system.UptimeMetrics} for adapting and repackaging purposes
* as required by Apache Geode 1.x, which is based on Micrometer 1.x.
*
* @author John Blum
* @see io.micrometer.binder.system.UptimeMetrics
* @since 2.0.0
*/
@SuppressWarnings("unused")
public class UptimeMetrics extends io.micrometer.binder.system.UptimeMetrics {
/**
* @inheritDoc
*/
public UptimeMetrics() { }
/**
* @inheritDoc
*/
public UptimeMetrics(Iterable<Tag> tags) {
super(tags);
}
}