Skip to content

Commit

Permalink
refactor: switch the orginal package path from com.xiaomi.mone to org…
Browse files Browse the repository at this point in the history
….apache.ozhera apache#457
  • Loading branch information
goodjava committed Sep 13, 2024
1 parent 77d82a9 commit 5a15fad
Show file tree
Hide file tree
Showing 24 changed files with 37 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package com.xiaomi.mone.hera.demo.client.config;

import com.xiaomi.mione.prometheus.starter.all.config.PrometheusConfigure;
import org.apache.ozhera.prometheus.starter.all.config.PrometheusConfigure;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import com.xiaomi.mone.hera.demo.client.api.service.DubboHealthService;
import com.xiaomi.mone.hera.demo.client.grpc.GrpcClientService;
import com.xiaomi.mone.hera.demo.client.util.HttpClientUtil;
import com.xiaomi.youpin.prometheus.all.client.Metrics;
import org.apache.ozhera.prometheus.all.client.Metrics;
import lombok.extern.slf4j.Slf4j;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpUriRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.youpin.prometheus.all.client;
package org.apache.ozhera.prometheus.all.client;

import com.xiaomi.youpin.prometheus.all.client.binder.ClassLoaderMetricsReduced;
import com.xiaomi.youpin.prometheus.all.client.binder.JvmGcMetricsReduced;
import com.xiaomi.youpin.prometheus.all.client.binder.JvmMemoryMetricsReduced;
import com.xiaomi.youpin.prometheus.all.client.binder.JvmThreadMetricsReduced;
import org.apache.ozhera.prometheus.all.client.binder.ClassLoaderMetricsReduced;
import org.apache.ozhera.prometheus.all.client.binder.JvmGcMetricsReduced;
import org.apache.ozhera.prometheus.all.client.binder.JvmMemoryMetricsReduced;
import org.apache.ozhera.prometheus.all.client.binder.JvmThreadMetricsReduced;
import io.micrometer.core.instrument.binder.jvm.ClassLoaderMetrics;
import io.micrometer.core.instrument.binder.jvm.JvmGcMetrics;
import io.micrometer.core.instrument.binder.jvm.JvmMemoryMetrics;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.youpin.prometheus.all.client;
package org.apache.ozhera.prometheus.all.client;
/**
* @author zhangxiaowei6
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.youpin.prometheus.all.client;
package org.apache.ozhera.prometheus.all.client;

import io.micrometer.prometheus.PrometheusConfig;
import io.micrometer.prometheus.PrometheusMeterRegistry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.youpin.prometheus.all.client;
package org.apache.ozhera.prometheus.all.client;

import io.prometheus.client.Counter;
import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.youpin.prometheus.all.client;
package org.apache.ozhera.prometheus.all.client;

import io.prometheus.client.Gauge;
import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.youpin.prometheus.all.client;
package org.apache.ozhera.prometheus.all.client;

import io.prometheus.client.Histogram;
import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.youpin.prometheus.all.client;
package org.apache.ozhera.prometheus.all.client;
/**
* @author zhangxiaowei6
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.youpin.prometheus.all.client;
package org.apache.ozhera.prometheus.all.client;
/**
* @author zhangxiaowei6
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.youpin.prometheus.all.client;
package org.apache.ozhera.prometheus.all.client;
/**
* @author zhangxiaowei6
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.youpin.prometheus.all.client.binder;
package org.apache.ozhera.prometheus.all.client.binder;

import io.micrometer.core.instrument.Gauge;
import io.micrometer.core.instrument.MeterRegistry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.youpin.prometheus.all.client.binder;
package org.apache.ozhera.prometheus.all.client.binder;

import com.sun.management.GarbageCollectionNotificationInfo;
import com.sun.management.GcInfo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.youpin.prometheus.all.client.binder;
package org.apache.ozhera.prometheus.all.client.binder;

import io.micrometer.core.instrument.Gauge;
import io.micrometer.core.instrument.MeterRegistry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.youpin.prometheus.all.client.binder;
package org.apache.ozhera.prometheus.all.client.binder;

import io.micrometer.core.instrument.Gauge;
import io.micrometer.core.instrument.MeterRegistry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.youpin.prometheus.all.client;
package org.apache.ozhera.prometheus.all.client;
import org.junit.Before;
import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.mione.prometheus.starter.all.config;
package org.apache.ozhera.prometheus.starter.all.config;

import com.alibaba.nacos.api.exception.NacosException;
import com.alibaba.nacos.api.naming.pojo.Instance;
import com.alibaba.nacos.client.naming.NacosNamingService;
import com.sun.net.httpserver.HttpServer;
import com.xiaomi.mione.prometheus.starter.all.exporter.HTTPServer;
import com.xiaomi.mione.prometheus.starter.all.service.MilinePrometheusService;
import com.xiaomi.youpin.prometheus.all.client.Metrics;
import com.xiaomi.youpin.prometheus.all.client.Prometheus;
import org.apache.ozhera.prometheus.starter.all.exporter.HTTPServer;
import org.apache.ozhera.prometheus.starter.all.service.MilinePrometheusService;
import org.apache.ozhera.prometheus.all.client.Metrics;
import org.apache.ozhera.prometheus.all.client.Prometheus;
import io.prometheus.client.CollectorRegistry;
import lombok.extern.slf4j.Slf4j;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.mione.prometheus.starter.all.domain;
package org.apache.ozhera.prometheus.starter.all.domain;

/**
* @Description
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.mione.prometheus.starter.all.exporter;
package org.apache.ozhera.prometheus.starter.all.exporter;

import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.mione.prometheus.starter.all.factory;
package org.apache.ozhera.prometheus.starter.all.factory;

import com.xiaomi.mione.prometheus.starter.all.service.MilinePrometheusService;
import com.xiaomi.mione.prometheus.starter.all.service.PrometheusService;
import org.apache.ozhera.prometheus.starter.all.service.MilinePrometheusService;
import org.apache.ozhera.prometheus.starter.all.service.PrometheusService;
import org.apache.commons.lang3.StringUtils;

import com.xiaomi.mione.prometheus.starter.all.domain.Const ;
import org.apache.ozhera.prometheus.starter.all.domain.Const;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.mione.prometheus.starter.all.service;
package org.apache.ozhera.prometheus.starter.all.service;

import org.apache.commons.lang3.StringUtils;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.xiaomi.mione.prometheus.starter.all.service;
package org.apache.ozhera.prometheus.starter.all.service;

public abstract class PrometheusService {

Expand Down
4 changes: 2 additions & 2 deletions readme/custom-tracking/custom-tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ After a successful compilation, push the pom to the company's Maven repository,
Just ensure that the initialization of the `PrometheusConfigure.init()` method is called before any monitoring points.

```java
import com.xiaomi.mione.prometheus.starter.all.config.PrometheusConfigure;
import config.org.apache.ozhera.prometheus.starter.all.PrometheusConfigure;

PrometheusConfigure.init(nacosAddr, serverType);
```
Expand Down Expand Up @@ -70,7 +70,7 @@ Counter: An always-increasing counter. We can use it to record the frequency of
#### 2) Code Example

```java
import com.xiaomi.youpin.prometheus.all.client.Metrics;
import org.apache.ozhera.prometheus.all.client.Metrics;

Metrics.getInstance().newCounter("testCounter","methodName","url").with("ok","/test/ok").add(1, "ok","/test/ok");
```
Expand Down
4 changes: 2 additions & 2 deletions readme/custom-tracking/custom-tracking_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ https://github.com/XiaoMi/ozhera/tree/master/prometheus-starter-all
只要是在进行打点前完成初始化PrometheusConfigure.init()方法的调用即可。

```java
import com.xiaomi.mione.prometheus.starter.all.config.PrometheusConfigure;
import config.org.apache.ozhera.prometheus.starter.all.PrometheusConfigure;

PrometheusConfigure.init(nacosAddr, serverType);
```
Expand Down Expand Up @@ -71,7 +71,7 @@ Counter:只增不减的计数器,我们可以在应用程序中记录某些
#### 2)代码示例

```java
import com.xiaomi.youpin.prometheus.all.client.Metrics;
import org.apache.ozhera.prometheus.all.client.Metrics;

Metrics.getInstance().newCounter("testCounter","methodName","url").with("ok","/test/ok").add(1, "ok","/test/ok");
```
Expand Down

0 comments on commit 5a15fad

Please sign in to comment.