Changeset 1050


Ignore:
Timestamp:
09/10/14 15:02:12 (10 years ago)
Author:
sdipsl
Message:

send instrumentation information out

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh

    r1049 r1050  
    745745  fi 
    746746 
    747   echo "==>act:${actionType}|sz:${entitySizeMo}|ms:${diff_ms}|fx(ko):${flux_Ko_s}|fx(mo):${flux_Mo_s}|nm:${name}|dirSource:${dirSource}|dirOut:${dirOut}" 
     747  instrumentationContent=$( echo "\"act\":\"${actionType}\",\"sz\":\"${entitySizeMo}\",\"ms\":\"${diff_ms}\",\"fx(ko)\":\"${flux_Ko_s}\",\"fx(mo)\":\"${flux_Mo_s}\",\"nm\":\"${name}\",\"dirSource\":\"${dirSource}\",\"dirOut\":\"${dirOut}\"" ) 
     748 
     749  #echo "==>act:${actionType}|sz:${entitySizeMo}|ms:${diff_ms}|fx(ko):${flux_Ko_s}|fx(mo):${flux_Mo_s}|nm:${name}|dirSource:${dirSource}|dirOut:${dirOut}" 
     750 
     751  echo ${instrumentationContent} 
     752 
     753  # Inform the rabbitMQ queue 
     754  if [ X${ActivateBigBro} = Xtrue ] ; then 
     755    # RabbitMQ message body 
     756    Body=$( echo "{${instrumentationContent},\"uuid\":\"$(uuidgen)\",\"timestamp\":\"$( date +"%Y-%m-%d-%T-%N" )\"}" ) 
     757    # Fill the rabbitMQ queue 
     758    IGCM_debug_sendAMQP 
     759  fi 
    748760} 
    749761 
Note: See TracChangeset for help on using the changeset viewer.