Problem description:
When using Prometheus get Loxilb's monitoring metric, the request will be recorded in the log, which increases the log volume and is actually useless;
Example log:
2024-10-24 17:33:02 api: Prometheus GET API called. url : /netlox/v1/metrics
2024-10-24 17:33:12 api: Prometheus GET API called. url : /netlox/v1/metrics
2024-10-24 17:33:22 api: Prometheus GET API called. url : /netlox/v1/metrics
2024-10-24 17:33:32 api: Prometheus GET API called. url : /netlox/v1/metrics
2024-10-24 17:33:42 api: Prometheus GET API called. url : /netlox/v1/metrics
2024-10-24 17:33:52 api: Prometheus GET API called. url : /netlox/v1/metrics
2024-10-24 17:34:02 api: Prometheus GET API called. url : /netlox/v1/metrics
2024-10-24 17:34:12 api: Prometheus GET API called. url : /netlox/v1/metrics
2024-10-24 17:34:22 api: Prometheus GET API called. url : /netlox/v1/metrics
2024-10-24 17:34:32 api: Prometheus GET API called. url : /netlox/v1/metrics
2024-10-24 17:34:42 api: Prometheus GET API called. url : /netlox/v1/metrics
2024-10-24 17:34:52 api: Prometheus GET API called. url : /netlox/v1/metrics
2024-10-24 17:35:02 api: Prometheus GET API called. url : /netlox/v1/metrics
Suggestions:
can use a filter option to filter the request log for the API URL;
can even ignore the log of the metric request directly;
Problem description: When using Prometheus get Loxilb's monitoring metric, the request will be recorded in the log, which increases the log volume and is actually useless; Example log:
Suggestions: