k8s configmap 样本

---
kind: ConfigMap
apiVersion: v1
metadata:
  name: prod-monitor
  namespace: jzyq
data:
  log.txt: |-
    #monitor_type, module_name, module_user, log_pos, time_fmt, monitor_str, monitor_num(monitor_str的数量超过monitor_num就报警)

    1,data_collector_error,lnmobile,/nasdata/logs/data_collector/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,data_receiver_error,lnmobile,/nasdata/logs/data_receiver/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,di_error,lnmobile,/nasdata/logs/di/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,dx_iteminfo_error,lnmobile,/nasdata/logs/dx_iteminfo/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,dx_itemmysql_error,lnmobile,/nasdata/logs/dx_itemmysql/error.log,%Y-%m-%d %H:%M,ERROR,1
    #1,dx_main_error,lnmobile,/nasdata/logs/dx_main/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,dx_tabledata_error,lnmobile,/nasdata/logs/dx_tabledata/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,indexing_error,lnmobile,/nasdata/logs/indexing/error.log,%Y-%m-%d %H:%M,ERROR,1
    #1,rec_action_pipe_error,lnmobile,/nasdata/logs/rec_action_pipe/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,rec_effect_statistic_error,lnmobile,/nasdata/logs/rec_effect_statistic/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,rec_feedback_error,lnmobile,/nasdata/logs/rec_feedback/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,rec_hot_day_error,lnmobile,/nasdata/logs/rec_hot_day/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,rec_hot_hour_error,lnmobile,/nasdata/logs/rec_hot_hour/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,rec_importer_error,lnmobile,/nasdata/logs/rec_importer/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,rec_importer_hour_error,lnmobile,/nasdata/logs/rec_importer_hour/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,rec_item_error,lnmobile,/nasdata/logs/rec_item/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,rec_item_nearline_error,lnmobile,/nasdata/logs/rec_item_nearline/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,rec_item_realtime_sync_error,lnmobile,/nasdata/logs/rec_item_realtime_sync/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,rec_online_warn,lnmobile,/nasdata/logs/rec_online/warn.log,%Y-%m-%d %H:%M,WARN,100
    1,rec_online_error,lnmobile,/nasdata/logs/rec_online/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,rec_tagger_error,lnmobile,/nasdata/logs/rec_tagger/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,rec_user_error,lnmobile,/nasdata/logs/rec_user/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,rec_user_dig_error,lnmobile,/nasdata/logs/rec_user_dig/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,rec_user_nearline_error,lnmobile,/nasdata/logs/rec_user_nearline/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,rec_user_sim_error,lnmobile,/nasdata/logs/rec_user_sim/error.log,%Y-%m-%d %H:%M,ERROR,1
    1,sql_handler_error,lnmobile,/nasdata/logs/sql_handler/error.log,%Y-%m-%d %H:%M,ERROR,1
  redis.txt: |-
    #monitor_type,module_user,db,redis_key,val_num
    #(monitor_type=1时小于设定的值时报警,monitor_type=2时redis_key不存在时报警,monitor_type=3时大于设定的值时报警)
    3,lnmobile,1,USER_NL,100
    3,lnmobile,1,FRESH_ITEM,100
    3,lnmobile,5,USER_DATA,100
    1,lnmobile,3,HOT:100021:ALL,100
    1,lnmobile,3,HOT_HOUR:100021:ALL,100
    1,lnmobile,3,HOT:100021:act,20
    1,lnmobile,3,HOT_HOUR:100021:prod,20

你可能感兴趣的:(k8s configmap 样本)