文档首页/ SAP/ 最佳实践/ SAP监控最佳实践/ 常见问题/ 如何修改SAP监控指标的采集周期
更新时间:2023-04-28 GMT+08:00
分享

如何修改SAP监控指标的采集周期

  1. 登录安装监控Agent的节点。
  2. 执行以下命令,打开监控指标文件“metrics.ini”

    vim /usr/local/sapmon/config/metrics.ini

    [interval]
    # unit is minute 1,5,15
    database_version = 1
    service_quantity = 1
    database_ha_active = 1
    sr_active = 1
    threads = 1
    recent_data_backup = 5
    recent_savepoint = 1
    column_tables_used_memory = 15
    schema_used_memory = 15
    disk_data_files = 1
    disk_usage = 1
    service_memory = 1
    host_memory = 1
    sql_service = 1
    sql_top_time = 1
    sql_top_mem = 1
    connections_total = 1
    table_cs_top_mem = 15
    system_replication = 1
    system_replication_takeover = 1
    alerts = 1
    
    
    # FOR APPLICATION
    logged_in_users = 1
    application_version = 1
    instance_quantity = 1
    application_ha_active = 1
    abap_short_dumps = 1
    abap_short_dumps_5m = 5
    jobs = 1
    lock_entries_usage = 1
    extended_memory_utilization = 1
    heap_memory_utilization = 1
    work_processes = 1
    update_records = 1
    rfc_ping = 1
    failed_idocs = 1
    dialog_response_time = 1
    dialog_db_request_time = 1
    j2ee_running_process = 1
    j2ee_thread = 1
    j2ee_session = 1
    j2ee_websession = 1
    j2ee_ejbsession = 1
    j2ee_vm_heap_size = 1
  3. 按“i”,修改监控指标组的采集周期。

    示例如下:

    database_ha_active = 5

    同一个指标组的采集周期是统一控制的,采集周期的单位为分钟,采集周期可选值为1、5、15分钟。

  4. 按“Esc”,然后执行“:wq!”命令保存并退出。

相关文档