wjmmjr edited a comment on issue #4744:
URL: https://github.com/apache/apisix/issues/4744#issuecomment-891663470


   It has been solved. This is my way to deal with it:
   1. Add job to the configmap of prometheus-server
   ```
   scrape_configs:
       - job_name: apisix-prom
         metrics_path: '/apisix/prometheus/metrics'   #This is a fixed path and 
cannot be changed
         static_configs:
         - targets:
            - your-svc.your-namespace:9091
   ```
     2. Add port to SVC of apisix-admin
       ```
      - name: apisix-prom
        port: 9091
   ```
      
   3. Add the configuration of the apisix plugin_attr
   
   ```
     plugin_attr:
         prometheus:
              export_addr:
                 ip: "0.0.0.0"
                 port: 9091
   ```
   


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


Reply via email to