chinaboy007 opened a new issue, #148:
URL: https://github.com/apache/rocketmq-exporter/issues/148
日志如下:
kc logs -f rocketmq-exporter-5db66fbbd9-bv8xl -n test
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.7.11)
[2023-09-13 07:28:04.643] INFO Starting RocketMQExporterApplication
v0.0.2-SNAPSHOT using Java 1.8.0_342 on rocketmq-exporter-5db66fbbd9-bv8xl with
PID 1
(/apps/rocketmq-exporter-master/target/rocketmq-exporter-0.0.2-SNAPSHOT-exec.jar
started by root in /apps/rocketmq-exporter-master/target)
[2023-09-13 07:28:04.647] INFO No active profile set, falling back to 1
default profile: "default"
[2023-09-13 07:28:19.549] INFO Tomcat initialized with port(s): 5557 (http)
[2023-09-13 07:28:19.747] INFO Initializing ProtocolHandler
["http-nio-5557"]
[2023-09-13 07:28:19.748] INFO Starting service [Tomcat]
[2023-09-13 07:28:19.748] INFO Starting Servlet engine: [Apache
Tomcat/9.0.74]
[2023-09-13 07:28:20.746] INFO Initializing Spring embedded
WebApplicationContext
[2023-09-13 07:28:20.746] INFO Root WebApplicationContext: initialization
completed in 15303 ms
[2023-09-13 07:28:24.145] INFO setNameSrvAddrByProperty
nameSrvAddr=10.244.111.153:9876
[2023-09-13 07:28:24.148] INFO setRocketmqVersion rocketmqVersion=494
[2023-09-13 07:28:24.148] INFO setWebTelemetryPath webTelemetryPath=/metrics
#反复重启
rocketmq-exporter-5db66fbbd9-bv8xl 1/1 Running
**3** 4m11s
#yaml file
kind: Deployment
metadata:
name: rocketmq-exporter
namespace: test
spec:
replicas: 1
selector:
matchLabels:
app: rocketmq-exporter
template:
metadata:
labels:
app: rocketmq-exporter
spec:
#hostNetwork: true
containers:
- name: rocketmq-exporter
#x86_64镜像
#image: opcache/rabbitmq:rocketmq-exporter
#arm64镜像
#image: aiyowei/rocketmq-exporter
#image: xiongburong/rocketmq-exporter:v1.0
image: chinaboy007/rocketmq-exporter:test1
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 200m
memory: 100Mi
env:
- name: rocketmq.config.namesrvAddr
#value: "rocketmq-prod.ddplatform.svc.cluster.local:9876"
value: "10.244.111.153:9876"
- name: rocketmq.config.webTelemetryPath
value: "/metrics"
- name: server.port
value: "5557"
ports:
- containerPort: 5557
name: metric-port #
---
apiVersion: v1
kind: Service
metadata:
name: rocketmq-exporter
namespace: test
spec:
selector:
app: rocketmq-exporter
type: NodePort
ports:
- name: metric-port
port: 5557
targetPort: 5557
protocol: TCP
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]