webMethods API Gateway Q&A - Monitoring API Gateway using Prometheus

Product/components used and version/fix level:

Versions 10.5 and above
Operating Systems All Operating Systems

Detailed explanation of the problem:

Prometheus metrics are exposed through the [http|https]://host:port/metrics endpoint. For on-prem installations, the endpoint can be invoked without credentials by changing the permissions to Anonymous using:

SAG_IS_METRICS_ENDPOINT_ACL=Anonymous environment variable.

  1. How to set this environment variable for on-prem installations?

  2. How to send Administrator credentials if changing the permissions for the metrics endpoint to anonymous is not allowed?

To set the environment variable:

  1. Shutdown the webMethods Integration Server
  2. Take the backup of <InstallDir>\profiles\IS_<instance>\bin\custom_setenv.sh
  3. Add the following in custom_setenv.sh

export SAG_IS_METRICS_ENDPOINT_ACL=Anonymous

  1. Start the IS by executing \profiles\IS_\bin\startup.sh

To use Admin credentials in the Prometheus YAML file

- job_name: "APIGW"  
    static_configs:  
      - targets: ['hostname:post']  
    metrics_path: "/metrics"  
    basic_auth:  
      username: 'Administrator'  
      password: 'manage'  

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.