webup commented on issue #4744:
URL: https://github.com/apache/apisix/issues/4744#issuecomment-972557179


   > 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
   > ```
   > 
   > 1. Add port to SVC of apisix-admin
   > 
   > ```
   > - name: apisix-prom
   >   port: 9091
   > ```
   > 
   > 1. Add the configuration of the apisix plugin_attr
   > 
   > ```
   >   plugin_attr:
   >       prometheus:
   >            export_addr:
   >               ip: "0.0.0.0"
   >               port: 9091
   > ```
   
   This works, but seems the plugin configuration made in dashboard could not 
overwrite this `plugin_attr` content. :(


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