Skip to content

Commit

Permalink
Move package name of PrometheusWrapper (apache#22954)
Browse files Browse the repository at this point in the history
* Remove MetricsUtil

* Refactor PrometheusPluginBootService

* Move package name of PrometheusWrapper

* Move package name of PrometheusWrapper
  • Loading branch information
terrymanu authored Dec 18, 2022
1 parent 7a5123c commit 21851ee
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
import io.prometheus.client.Summary;
import org.apache.shardingsphere.agent.metrics.core.MetricsWrapper;
import org.apache.shardingsphere.agent.metrics.core.MetricsWrapperFactory;
import org.apache.shardingsphere.agent.metrics.prometheus.wrapper.type.CounterWrapper;
import org.apache.shardingsphere.agent.metrics.prometheus.wrapper.type.GaugeWrapper;
import org.apache.shardingsphere.agent.metrics.prometheus.wrapper.type.HistogramWrapper;
import org.apache.shardingsphere.agent.metrics.prometheus.wrapper.type.SummaryWrapper;
import org.yaml.snakeyaml.Yaml;

import java.io.InputStream;
Expand All @@ -35,7 +39,7 @@
/**
* Prometheus metrics wrapper factory.
*/
public class PrometheusWrapperFactory implements MetricsWrapperFactory {
public final class PrometheusWrapperFactory implements MetricsWrapperFactory {

private static List<Map<String, Object>> metrics;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.agent.metrics.prometheus.wrapper;
package org.apache.shardingsphere.agent.metrics.prometheus.wrapper.type;

import io.prometheus.client.Counter;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.agent.metrics.prometheus.wrapper;
package org.apache.shardingsphere.agent.metrics.prometheus.wrapper.type;

import io.prometheus.client.Gauge;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.agent.metrics.prometheus.wrapper;
package org.apache.shardingsphere.agent.metrics.prometheus.wrapper.type;

import io.prometheus.client.Histogram;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.agent.metrics.prometheus.wrapper;
package org.apache.shardingsphere.agent.metrics.prometheus.wrapper.type;

import io.prometheus.client.Summary;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.agent.metrics.prometheus.wrapper;
package org.apache.shardingsphere.agent.metrics.prometheus.wrapper.type;

import io.prometheus.client.Counter;
import org.apache.shardingsphere.infra.util.reflect.ReflectiveUtil;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.agent.metrics.prometheus.wrapper;
package org.apache.shardingsphere.agent.metrics.prometheus.wrapper.type;

import io.prometheus.client.Gauge;
import org.apache.shardingsphere.infra.util.reflect.ReflectiveUtil;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.agent.metrics.prometheus.wrapper;
package org.apache.shardingsphere.agent.metrics.prometheus.wrapper.type;

import io.prometheus.client.Histogram;
import org.apache.shardingsphere.infra.util.reflect.ReflectiveUtil;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.shardingsphere.agent.metrics.prometheus.wrapper;
package org.apache.shardingsphere.agent.metrics.prometheus.wrapper.type;

import io.prometheus.client.Summary;
import org.apache.shardingsphere.infra.util.reflect.ReflectiveUtil;
Expand Down

0 comments on commit 21851ee

Please sign in to comment.