Accelerator96 opened a new issue, #6202:
URL: https://github.com/apache/incubator-seata/issues/6202

   使用官方的镜像没办法开启metrics
   
   创建configmap 并开启metrics
   `
   server:
     port: 7091
   
   spring:
     application:
       name: seata-server
   
   logging:
     config: classpath:logback-spring.xml
     file:
       path: /logs/seata
     extend:
       logstash-appender:
         destination: 127.0.0.1:4560
       kafka-appender:
         bootstrap-servers: 127.0.0.1:9092
         topic: logback_to_logstash
   
   console:
     user:
       username: seata
       password: seata
   seata:
     metrics:
       enabled: true
       registry-type: compact
       exporter-list: prometheus
       exporter-prometheus-port: 9898
     config:
       # support: nacos, consul, apollo, zk, etcd3
       type: file
     registry:
       # support: nacos, eureka, redis, zk, consul, etcd3, sofa
       type: file
   #  server:
   #    service-port: 8091 #If not configured, the default is ' + 1000'
     security:
       secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
       tokenValidityInMilliseconds: 1800000
       ignore:
         urls: 
/,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.jpeg,/**/*.ico,/api/v1/auth/login
   `
   
   然后将这个config map挂载进/seata-server/resources/application.yml下面
   
   `
       spec:
         volumes:
           - name: seata-config
             configMap:
               name: seata-cm
               defaultMode: 420
         containers:
           - name: seata
             image: seataio/seata-server:1.7.1
             resources:
               limits:
                 cpu: '1'
                 memory: 1Gi
               requests:
                 cpu: 500m
                 memory: 512Mi
             volumeMounts:
               - name: seata-config
                 mountPath: /seata-server/resources/application.yml
                 subPath: application.yml
   `
   
   但是启动之后metrics 接口还是不能访问
   
   请问各位大佬这个需要怎么开启呢?


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to