Changeset 724 for branches/0.4/jobmond
- Timestamp:
- 03/22/13 11:50:13 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.4/jobmond/jobmond.py
r707 r724 824 824 global BATCH_API 825 825 826 self.dp.multicastGmetric( ' MONARCH-HEARTBEAT', str( int( int( self.cur_time ) + int( self.timeoffset ) ) ) )827 828 running_jobs 829 queued_jobs 826 self.dp.multicastGmetric( 'zplugin-monarch-heartbeat', str( int( int( self.cur_time ) + int( self.timeoffset ) ) ) ) 827 828 running_jobs = 0 829 queued_jobs = 0 830 830 831 831 # Count how many running/queued jobs we found … … 843 843 # Report running/queued jobs as seperate metric for a nice RRD graph 844 844 # 845 self.dp.multicastGmetric( ' MONARCH-RJ', str( running_jobs ), 'uint32', 'jobs' )846 self.dp.multicastGmetric( ' MONARCH-QJ', str( queued_jobs ), 'uint32', 'jobs' )845 self.dp.multicastGmetric( 'zplugin-monarch-rj', str( running_jobs ), 'uint32', 'jobs' ) 846 self.dp.multicastGmetric( 'zplugin-monarch-qj', str( queued_jobs ), 'uint32', 'jobs' ) 847 847 848 848 # Report down/offline nodes in batch (PBS only ATM) … … 872 872 down_str = 'nodes=%s domain=%s reported=%s' %( string.join( downnodeslist, ';' ), domain, str( int( int( self.cur_time ) + int( self.timeoffset ) ) ) ) 873 873 offl_str = 'nodes=%s domain=%s reported=%s' %( string.join( offlinenodeslist, ';' ), domain, str( int( int( self.cur_time ) + int( self.timeoffset ) ) ) ) 874 self.dp.multicastGmetric( ' MONARCH-DOWN' , down_str )875 self.dp.multicastGmetric( ' MONARCH-OFFLINE', offl_str )874 self.dp.multicastGmetric( 'zplugin-monarch-down' , down_str ) 875 self.dp.multicastGmetric( 'zplugin-monarch-offline', offl_str ) 876 876 877 877 # Now let's spread the knowledge … … 889 889 for val in gmetric_val: 890 890 891 self.dp.multicastGmetric( ' MONARCH-JOB-' + jobid + '-' + str(metric_increment), val )891 self.dp.multicastGmetric( 'zplugin-monarch-job-' + jobid + '-' + str(metric_increment), val ) 892 892 893 893 # Increase follow number if this jobinfo is split up amongst more than 1 gmetric
Note: See TracChangeset
for help on using the changeset viewer.