You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
generate_metric "cvmfs_net_proxy""gauge""Shows all registered proxies for this repository.""repo=\"${fqrn}\",group=\"${my_proxy_group}\",url=\"${proxy}\"" 1
172
+
generate_metric "cvmfs_net_proxy""gauge""Shows all registered proxies for this repository.""repo=\"${fqrn}\",group=\"${my_proxy_group}\",url=\"${proxy}\"" 1"${EPOCHTIME}"
generate_metric 'cvmfs_repo''gauge''Shows the version of CVMFS used by this repository.'"repo=\"${fqrn}\",mountpoint=\"${repomountpoint}\",version=\"${cvmfs_mount_version}\",revision=\"${cvmfs_mount_revision}\"" 1
218
+
generate_metric 'cvmfs_repo''gauge''Shows the version of CVMFS used by this repository.'"repo=\"${fqrn}\",mountpoint=\"${repomountpoint}\",version=\"${cvmfs_mount_version}\",revision=\"${cvmfs_mount_revision}\"" 1"${EPOCHTIME}"
generate_metric 'cvmfs_repo_version''gauge''CVMFS repository version as a numeric value for easier querying.'"repo=\"${fqrn}\"""${cvmfs_numeric_version}"
223
+
generate_metric 'cvmfs_repo_version''gauge''CVMFS repository version as a numeric value for easier querying.'"repo=\"${fqrn}\"""${cvmfs_numeric_version}""${EPOCHTIME}"
generate_metric 'cvmfs_net_rx_total''counter''Shows the overall amount of downloaded bytes since mounting.'"repo=\"${fqrn}\"""${cvmfs_mount_rx}"
231
+
generate_metric 'cvmfs_net_rx_total''counter''Shows the overall amount of downloaded bytes since mounting.'"repo=\"${fqrn}\"""${cvmfs_mount_rx}""${EPOCHTIME}"
generate_metric 'cvmfs_repo_uptime_seconds''counter''Shows the time since the repo was mounted.'"repo=\"${fqrn}\"""${cvmfs_mount_uptime}"
241
-
generate_metric 'cvmfs_repo_mount_epoch_timestamp''counter''Shows the epoch time the repo was mounted.'"repo=\"${fqrn}\"""${cvmfs_mount_epoch_time}"
243
+
generate_metric 'cvmfs_repo_uptime_seconds''counter''Shows the time since the repo was mounted.'"repo=\"${fqrn}\"""${cvmfs_mount_uptime}""${EPOCHTIME}"
244
+
generate_metric 'cvmfs_repo_mount_epoch_timestamp''counter''Shows the epoch time the repo was mounted.'"repo=\"${fqrn}\"""${cvmfs_mount_epoch_time}""${EPOCHTIME}"
generate_metric 'cvmfs_repo_expires_seconds''gauge''Shows the remaining life time of the mounted root file catalog in seconds. -1 if never expires.'"repo=\"${fqrn}\"""${cvmfs_repo_expires}"
254
+
generate_metric 'cvmfs_repo_expires_seconds''gauge''Shows the remaining life time of the mounted root file catalog in seconds. -1 if never expires.'"repo=\"${fqrn}\"""${cvmfs_repo_expires}""${EPOCHTIME}"
generate_metric 'cvmfs_net_ndownload_total''counter''Shows the overall number of downloaded files since mounting.'"repo=\"${fqrn}\"""${cvmfs_mount_ndownload}"
258
+
generate_metric 'cvmfs_net_ndownload_total''counter''Shows the overall number of downloaded files since mounting.'"repo=\"${fqrn}\"""${cvmfs_mount_ndownload}""${EPOCHTIME}"
generate_metric 'cvmfs_sys_nioerr_total''counter''Shows the total number of I/O errors encountered since mounting.'"repo=\"${fqrn}\"""${cvmfs_mount_nioerr}"
262
+
generate_metric 'cvmfs_sys_nioerr_total''counter''Shows the total number of I/O errors encountered since mounting.'"repo=\"${fqrn}\"""${cvmfs_mount_nioerr}""${EPOCHTIME}"
generate_metric 'cvmfs_net_timeout''gauge''Shows the timeout for proxied connections in seconds.'"repo=\"${fqrn}\"""${cvmfs_mount_timeout}"
266
+
generate_metric 'cvmfs_net_timeout''gauge''Shows the timeout for proxied connections in seconds.'"repo=\"${fqrn}\"""${cvmfs_mount_timeout}""${EPOCHTIME}"
generate_metric 'cvmfs_net_timeout_direct''gauge''Shows the timeout for direct connections in seconds.'"repo=\"${fqrn}\"""${cvmfs_mount_timeout_direct}"
270
+
generate_metric 'cvmfs_net_timeout_direct''gauge''Shows the timeout for direct connections in seconds.'"repo=\"${fqrn}\"""${cvmfs_mount_timeout_direct}""${EPOCHTIME}"
generate_metric 'cvmfs_sys_timestamp_last_ioerr''counter''Shows the timestamp of the last ioerror.'"repo=\"${fqrn}\"""${cvmfs_mount_timestamp_last_ioerr}"
274
+
generate_metric 'cvmfs_sys_timestamp_last_ioerr''counter''Shows the timestamp of the last ioerror.'"repo=\"${fqrn}\"""${cvmfs_mount_timestamp_last_ioerr}""${EPOCHTIME}"
generate_metric 'cvmfs_sys_cpu_user_total''counter''CPU time used in userspace by CVMFS mount in seconds.'"repo=\"${fqrn}\"""${cvmfs_user_seconds}"
286
-
generate_metric 'cvmfs_sys_cpu_system_total''counter''CPU time used in the kernel system calls by CVMFS mount in seconds.'"repo=\"${fqrn}\"""${cvmfs_system_seconds}"
288
+
generate_metric 'cvmfs_sys_cpu_user_total''counter''CPU time used in userspace by CVMFS mount in seconds.'"repo=\"${fqrn}\"""${cvmfs_user_seconds}""${EPOCHTIME}"
289
+
generate_metric 'cvmfs_sys_cpu_system_total''counter''CPU time used in the kernel system calls by CVMFS mount in seconds.'"repo=\"${fqrn}\"""${cvmfs_system_seconds}""${EPOCHTIME}"
287
290
288
291
# Add memory usage metric
289
292
if [[ -f"/proc/${repo_pid}/status" ]];then
@@ -292,13 +295,13 @@ get_cvmfs_repo_metrics() {
292
295
if [[ -n"${memory_usage_kb}" ]];then
293
296
local memory_usage_bytes
294
297
memory_usage_bytes=$((memory_usage_kb *1000))
295
-
generate_metric 'cvmfs_sys_memory_usage_bytes''gauge''CVMFS process memory usage in bytes.'"repo=\"${fqrn}\"""${memory_usage_bytes}"
298
+
generate_metric 'cvmfs_sys_memory_usage_bytes''gauge''CVMFS process memory usage in bytes.'"repo=\"${fqrn}\"""${memory_usage_bytes}""${EPOCHTIME}"
generate_metric 'cvmfs_net_active_proxy''gauge''Shows the active proxy in use for this mount.'"repo=\"${fqrn}\",proxy=\"${cvmfs_mount_active_proxy}\"" 1
304
+
generate_metric 'cvmfs_net_active_proxy''gauge''Shows the active proxy in use for this mount.'"repo=\"${fqrn}\",proxy=\"${cvmfs_mount_active_proxy}\"" 1"${EPOCHTIME}"
generate_metric 'cvmfs_sys_maxfd''gauge''Shows the maximum number of file descriptors available to file system clients.'"repo=\"${reponame}\"""${maxfd_value}"
324
+
generate_metric 'cvmfs_sys_maxfd''gauge''Shows the maximum number of file descriptors available to file system clients.'"repo=\"${reponame}\"""${maxfd_value}""${EPOCHTIME}"
322
325
323
326
# Extract version and revision from the cvmfs_repo metric in TMPFILE and generate numeric metrics
generate_metric 'cvmfs_repo_version''gauge''CVMFS repository version as a numeric value for easier querying.'"repo=\"${reponame}\"""${cvmfs_numeric_version}"
343
+
generate_metric 'cvmfs_repo_version''gauge''CVMFS repository version as a numeric value for easier querying.'"repo=\"${reponame}\"""${cvmfs_numeric_version}""${EPOCHTIME}"
0 commit comments