Skip to content

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_NAMESPACE and CONNECTOR_METRICS_SUBSYSTEM to be able to customize namespace and subsystem for prometheus metrics.
  • Renaming metric bundle_send in favor of bundles_sent_total
  • Renaming metric record_send in favor of records_sent_total
  • Renaming metric runs_count in favor of runs_total
  • Renaming metric ping_api_count in favor of ping_api_total
  • Renaming metric ping_api_error in favor of ping_api_errors_total
  • Renaming metric error_count in favor of errors_total
  • Renaming metric client_error_count in favor of client_errors_total

Migrate guide

Potential dashboards (e.g. in Grafana) needs to be upgraded with modified metrics name.