Feature #23638
Provide interval_end timestamp to metric plugins
0%
Description
Graphite, for example, takes a timestamp as part of its TCP input which can be used to correlate metrics in time. Currently, the end of the reporting_interval is not passed to metric plugins, so the graphite_metric plugin simply uses the current time. If sendMetric_ was given the end of the interval, backends which can report the time of the metric can have more accurate values.
History
#1 Updated by Eric Flumerfelt over 1 year ago
- Assignee set to Eric Flumerfelt
- Status changed from New to Resolved
- Category set to artdaq-utilities
Implementation on feature/23638_MetricPlugin_sendMetric_time in artdaq-utilities, artdaq-utilities-ganglia-plugin, artdaq-utilities-epics-plugin, and artdaq-utilities-pcp-mmv-plugin repositories.
#2 Updated by Gennadiy Lukhanin about 2 months ago
- Status changed from Resolved to Reviewed
The feature branch feature/23638_MetricPlugin_sendMetric_time was included into the release v3_09_04p1 and tested at the Icarus test-stand. The products area at Icarus does not have the “current” version configured for the epics product, so I plugged the latest known version v3_16_2 of epics into the product_deps file for artdaq_epics_plugin.
I reviewed code and confirmed that timestamps are sent to Grafana with tcpdump.
/sbin/tcpdump -Aqnn -i daq port 2003 17:18:51.683643 IP 192.168.191.48.41582 > 192.168.191.18.2003: tcp 769 E..5w.@.@..Z...0.....n..3Z..c........W..... ...}..Rticarus.icaruspmtwebot02.BoardReader.10.Data_Send_Size_to_Rank_78 480384 1614122331 icarus.icaruspmtwebot02.BoardReader.10.Data_Send_Count_to_Rank_78 509 1614122331 icarus.icaruspmtwebot02.BoardReader.10.Data_Send_Size_to_Rank_79 480384 1614122331 icarus.icaruspmtwebot02.BoardReader.10.Data_Send_Time_to_Rank_79 0.000663 1614122331 icarus.icaruspmtwebot02.BoardReader.10.Data_Send_Rate_to_Rank_79 759042045.036534 1614122331 icarus.icaruspmtwebot02.BoardReader.10.Data_Send_Time_to_Rank_82 0.000396 1614122331 icarus.icaruspmtwebot02.BoardReader.10.Data_Send_Rate_to_Rank_80 886838324.366358 1614122331 icarus.icaruspmtwebot02.BoardReader.10.Data_Send_Time_to_Rank_80 0.000363 1614122331 icarus.icaruspmtwebot02.BoardReader.10.Data_Send_Count_to_Rank_83 508 1614122331 17:18:51.683649 IP 192.168.191.18.2003 > 192.168.191.48.41582: tcp 0 E..4x.@.@..........0...nc...3Z............. ..Rt...} 17:18:51.683712 IP 192.168.191.48.41582 > 192.168.191.18.2003: tcp 681 E...w.@.@......0.....n..3Z..c.............. ...~..Rticarus.icaruspmtwebot02.BoardReader.10.Data_Send_Count_to_Rank_81 508 1614122331 icarus.icaruspmtwebot02.BoardReader.10.Data_Send_Rate_to_Rank_81 898358040.267221 1614122331 icarus.icaruspmtwebot02.BoardReader.10.Data_Send_Time_to_Rank_83 0.000337 1614122331 icarus.icaruspmtwebot02.BoardReader.10.Data_Send_Size_to_Rank_82 320256 1614122331 icarus.icaruspmtwebot02.BoardReader.10.Avg_Frags_Per_Read 0.000859 1614122331 icarus.icaruspmtwebot02.BoardReader.10.Avg_BoardReader_Sync_Wait_Time 0.000000 1614122331 icarus.icaruspmtwebot02.BoardReader.10.Data_Send_Count_to_Rank_79 509 1614122331 icarus.icaruspmtwebot02.BoardReader.10.Avg_Request_Response_Wait_Time 0.199783 1614122331 17:18:51.683717 IP 192.168.191.18.2003 > 192.168.191.48.41582: tcp 0 E..4x.@.@..........0...nc...3Z.~........... ..Rt...~ 17:18:51.683777 IP 192.168.191.48.41582 > 192.168.191.18.2003: tcp 333 E...w.@.@......0.....n..3Z.~c.......L3..... ...~..Rticarus.icaruspmtwebot02.BoardReader.10.Average_Fragment_Size 1281024.000000 1614122331 icarus.icaruspmtwebot02.BoardReader.10.Fragment_Rate 4.999465 1614122331 icarus.icaruspmtwebot02.BoardReader.10.Avg_Output_Wait_Time 0.000209 1614122331 icarus.icaruspmtwebot02.BoardReader.10.Data_Send_Rate_to_Rank_83 951249325.713517 1614122331
#3 Updated by Eric Flumerfelt about 2 months ago
- Target version set to artdaq_utilities v1_05_11
- Status changed from Reviewed to Closed