Renaming of metrics name in the python client
- Changed in:
OpenCTI 6.8
Description of changes
Adaptation of metrics in the client-python to respect prometheus naming best practices:
- Add environment variables
CONNECTOR_METRICS_NAMESPACEandCONNECTOR_METRICS_SUBSYSTEMto be able to customize namespace and subsystem for prometheus metrics. - Renaming metric
bundle_sendin favor ofbundles_sent_total - Renaming metric
record_sendin favor ofrecords_sent_total - Renaming metric
runs_countin favor ofruns_total - Renaming metric
ping_api_countin favor ofping_api_total - Renaming metric
ping_api_errorin favor ofping_api_errors_total - Renaming metric
error_countin favor oferrors_total - Renaming metric
client_error_countin favor ofclient_errors_total
Migrate guide
Potential dashboards (e.g. in Grafana) needs to be upgraded with modified metrics name.