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.
How to set this environment variable for on-prem installations?
How to send Administrator credentials if changing the permissions for the metrics endpoint to anonymous is not allowed?
To set the environment variable:
Shutdown the webMethods Integration Server
Take the backup of <InstallDir>\profiles\IS_<instance>\bin\custom_setenv.sh
Add the following in custom_setenv.sh
export SAG_IS_METRICS_ENDPOINT_ACL=Anonymous
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'
system
(system)
Closed
April 28, 2024, 9:23am
3
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.