From 8cc71d84ed96281a44daee097a23fca50ab9144d Mon Sep 17 00:00:00 2001 From: Elie BLETON Date: Thu, 4 Sep 2025 17:21:20 +0200 Subject: [PATCH 1/3] add up to date metric list --- gitlab_runner/metadata.csv | 81 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) diff --git a/gitlab_runner/metadata.csv b/gitlab_runner/metadata.csv index fbb98f5ac90d1..2ceec6f1b3131 100644 --- a/gitlab_runner/metadata.csv +++ b/gitlab_runner/metadata.csv @@ -1,4 +1,22 @@ metric_name,metric_type,interval,unit_name,per_unit_name,description,orientation,integration,short_name,curated_metric +gitlab_runner.acceptable_job_queuing_duration_exceeded_total,count,,request,,Counts how often jobs exceed the configured queuing time threshold,0,gitlab_runner,acceptable job queuing duration exceeded total, +gitlab_runner.api_request_duration_seconds_bucket,gauge,,request,second,Latency histogram of API requests made by GitLab Runner,0,gitlab_runner,api request duration time, +gitlab_runner.api_request_duration_seconds_count,gauge,,request,second,Latency histogram of API requests made by GitLab Runner,0,gitlab_runner,api request duration time count, +gitlab_runner.api_request_duration_seconds_sum,gauge,,request,second,Latency histogram of API requests made by GitLab Runner,0,gitlab_runner,api request duration time sum, +gitlab_runner.api_request_statuses_total,count,,request,,"The total number of api requests, partitioned by runner, system_id, endpoint and status.",0,gitlab_runner,api request statuses total, +gitlab_runner.autoscaling_machine_creation_duration_seconds_bucket,gauge,,request,second,Histogram of machine creation time.,0,gitlab_runner,autoscaling machine creation duration time, +gitlab_runner.autoscaling_machine_creation_duration_seconds_count,gauge,,request,second,Histogram of machine creation time.,0,gitlab_runner,autoscaling machine creation duration time count, +gitlab_runner.autoscaling_machine_creation_duration_seconds_sum,gauge,,request,second,Histogram of machine creation time.,0,gitlab_runner,autoscaling machine creation duration time sum, +gitlab_runner.autoscaling_machine_failed_creation_duration_seconds_bucket,gauge,,request,second,Histogram of machine failed creation timings,0,gitlab_runner,autoscaling machine failed creation duration time, +gitlab_runner.autoscaling_machine_failed_creation_duration_seconds_count,gauge,,request,second,Histogram of machine failed creation timings,0,gitlab_runner,autoscaling machine failed creation duration time count, +gitlab_runner.autoscaling_machine_failed_creation_duration_seconds_sum,gauge,,request,second,Histogram of machine failed creation timings,0,gitlab_runner,autoscaling machine failed creation duration time sum, +gitlab_runner.autoscaling_machine_removal_duration_seconds_bucket,gauge,,request,second,Histogram of machine removal time.,0,gitlab_runner,autoscaling machine removal duration time, +gitlab_runner.autoscaling_machine_removal_duration_seconds_count,gauge,,request,second,Histogram of machine removal time.,0,gitlab_runner,autoscaling machine removal duration time count, +gitlab_runner.autoscaling_machine_removal_duration_seconds_sum,gauge,,request,second,Histogram of machine removal time.,0,gitlab_runner,autoscaling machine removal duration time sum, +gitlab_runner.autoscaling_machine_states,gauge,,,,The current number of machines per state in this provider.,0,gitlab_runner,autoscaling machine states, +gitlab_runner.autoscaling_machine_stopping_duration_seconds_bucket,gauge,,request,second,Histogram of machine stopping time.,0,gitlab_runner,autoscaling machine stopping duration time, +gitlab_runner.autoscaling_machine_stopping_duration_seconds_count,gauge,,request,second,Histogram of machine stopping time.,0,gitlab_runner,autoscaling machine stopping duration time count, +gitlab_runner.autoscaling_machine_stopping_duration_seconds_sum,gauge,,request,second,Histogram of machine stopping time.,0,gitlab_runner,autoscaling machine stopping duration time sum, gitlab_runner.ci_docker_machines_provider_machine_creation_duration_seconds_bucket,gauge,,request,second,A histogram of Docker machine creation time. Applies to GitLab Runner < 1.11.0,0,gitlab_runner,docker machine creation time, gitlab_runner.ci_docker_machines_provider_machine_creation_duration_seconds_count,gauge,,request,second,The count of Docker machine creation time. Applies to GitLab Runner < 1.11.0,0,gitlab_runner,count docker machine creation time, gitlab_runner.ci_docker_machines_provider_machine_creation_duration_seconds_sum,gauge,,request,second,The sum of Docker machine creation time. Applies to GitLab Runner < 1.11.0,0,gitlab_runner,sum docker machine creation time, @@ -10,6 +28,39 @@ gitlab_runner.ci_ssh_docker_machines_provider_machine_creation_duration_seconds_ gitlab_runner.ci_ssh_docker_machines_provider_machine_creation_duration_seconds_count,gauge,,request,second,The count of SSH Docker machine creation time. Applies to GitLab Runner < 1.11.0,0,gitlab_runner,count ssh docker machine creation time, gitlab_runner.ci_ssh_docker_machines_provider_machine_creation_duration_seconds_sum,gauge,,request,second,The sum of SSH Docker machine creation time. Applies to GitLab Runner < 1.11.0,0,gitlab_runner,sum ssh docker machine creation time, gitlab_runner.ci_ssh_docker_machines_provider_machine_states,gauge,,request,second,The current number of SSH machines per state in this ssh provider. Applies to GitLab Runner < 1.11.0,0,gitlab_runner,total ssh docker machines per state, +gitlab_runner.concurrent,gauge,,,,The current value of concurrent setting,0,gitlab_runner,concurrent, +gitlab_runner.configuration_loaded_total,count,,request,,Total number of times the configuration file was loaded by Runner process,0,gitlab_runner,configuration loaded total, +gitlab_runner.configuration_loading_error_total,count,,request,,Total number of times the configuration file was not loaded by Runner process due to errors,0,gitlab_runner,configuration loading error total, +gitlab_runner.configuration_saved_total,count,,request,,Total number of times the configuration file was saved by Runner process,0,gitlab_runner,configuration saved total, +gitlab_runner.configuration_saving_error_total,count,,request,,Total number of times the configuration file was not saved by Runner process due to errors,0,gitlab_runner,configuration saving error total, +gitlab_runner.errors_total,count,,request,,The number of caught errors.,0,gitlab_runner,errors total, +gitlab_runner.failed_jobs_total,count,,request,,Total number of failed jobs,0,gitlab_runner,failed jobs total, +gitlab_runner.fleeting_provisioner_instance_creation_time_seconds_bucket,gauge,,request,second,Histogram of instance creation times,0,gitlab_runner,fleeting provisioner instance creation time time, +gitlab_runner.fleeting_provisioner_instance_creation_time_seconds_count,gauge,,request,second,Histogram of instance creation times,0,gitlab_runner,fleeting provisioner instance creation time time count, +gitlab_runner.fleeting_provisioner_instance_creation_time_seconds_sum,gauge,,request,second,Histogram of instance creation times,0,gitlab_runner,fleeting provisioner instance creation time time sum, +gitlab_runner.fleeting_provisioner_instance_deletion_time_seconds_bucket,gauge,,request,second,Histogram of instance deletion times,0,gitlab_runner,fleeting provisioner instance deletion time time, +gitlab_runner.fleeting_provisioner_instance_deletion_time_seconds_count,gauge,,request,second,Histogram of instance deletion times,0,gitlab_runner,fleeting provisioner instance deletion time time count, +gitlab_runner.fleeting_provisioner_instance_deletion_time_seconds_sum,gauge,,request,second,Histogram of instance deletion times,0,gitlab_runner,fleeting provisioner instance deletion time time sum, +gitlab_runner.fleeting_provisioner_instance_is_running_time_seconds_bucket,gauge,,request,second,Histogram of duration for the instance to ender running state,0,gitlab_runner,fleeting provisioner instance is running time time, +gitlab_runner.fleeting_provisioner_instance_is_running_time_seconds_count,gauge,,request,second,Histogram of duration for the instance to ender running state,0,gitlab_runner,fleeting provisioner instance is running time time count, +gitlab_runner.fleeting_provisioner_instance_is_running_time_seconds_sum,gauge,,request,second,Histogram of duration for the instance to ender running state,0,gitlab_runner,fleeting provisioner instance is running time time sum, +gitlab_runner.fleeting_provisioner_instance_life_duration_seconds_bucket,gauge,,request,second,Histogram of instance's life durations,0,gitlab_runner,fleeting provisioner instance life duration time, +gitlab_runner.fleeting_provisioner_instance_life_duration_seconds_count,gauge,,request,second,Histogram of instance's life durations,0,gitlab_runner,fleeting provisioner instance life duration time count, +gitlab_runner.fleeting_provisioner_instance_life_duration_seconds_sum,gauge,,request,second,Histogram of instance's life durations,0,gitlab_runner,fleeting provisioner instance life duration time sum, +gitlab_runner.fleeting_provisioner_instance_operations_total,count,,request,,Counter of total operations performed on instances,0,gitlab_runner,fleeting provisioner instance operations total, +gitlab_runner.fleeting_provisioner_instances,gauge,,,,Current number of instances in different states,0,gitlab_runner,fleeting provisioner instances, +gitlab_runner.fleeting_provisioner_internal_operations_total,count,,request,,Counter of total internal operations handled by provisioner,0,gitlab_runner,fleeting provisioner internal operations total, +gitlab_runner.fleeting_provisioner_max_instances,gauge,,,,Maximum number of instances allowed for fleeting to maintain,0,gitlab_runner,fleeting provisioner max instances, +gitlab_runner.fleeting_provisioner_missed_updates_total,count,,request,,Counter of total times an instance reached the 'missed_update' state,0,gitlab_runner,fleeting provisioner missed updates total, +gitlab_runner.fleeting_taskscaler_desired_instances,gauge,,,,Current number of desired instances (negative means number of instances that should be requested for deletion),0,gitlab_runner,fleeting taskscaler desired instances, +gitlab_runner.fleeting_taskscaler_max_tasks_per_instance,gauge,,,,Maximum number of tasks executed on a single instance,0,gitlab_runner,fleeting taskscaler max tasks per instance, +gitlab_runner.fleeting_taskscaler_max_use_count_per_instance,gauge,,,,Maximum number of times the instance can be used,0,gitlab_runner,fleeting taskscaler max use count per instance, +gitlab_runner.fleeting_taskscaler_scale_operations_total,count,,request,,Total number of tasks scaling operations,0,gitlab_runner,fleeting taskscaler scale operations total, +gitlab_runner.fleeting_taskscaler_task_instance_readiness_time_seconds_bucket,gauge,,request,second,Histogram of task instance readiness times,0,gitlab_runner,fleeting taskscaler task instance readiness time time, +gitlab_runner.fleeting_taskscaler_task_instance_readiness_time_seconds_count,gauge,,request,second,Histogram of task instance readiness times,0,gitlab_runner,fleeting taskscaler task instance readiness time time count, +gitlab_runner.fleeting_taskscaler_task_instance_readiness_time_seconds_sum,gauge,,request,second,Histogram of task instance readiness times,0,gitlab_runner,fleeting taskscaler task instance readiness time time sum, +gitlab_runner.fleeting_taskscaler_task_operations_total,count,,request,,Counter of total operations performed on instances,0,gitlab_runner,fleeting taskscaler task operations total, +gitlab_runner.fleeting_taskscaler_tasks,gauge,,,,Current number of tasks in different states,0,gitlab_runner,fleeting taskscaler tasks, gitlab_runner.gitlab_runner_autoscaling_machine_creation_duration_seconds,gauge,,request,second,A histogram of Docker machine creation time. Applies to GitLab Runner 1.11.0+,0,gitlab_runner,auto docker machine creation time, gitlab_runner.gitlab_runner_autoscaling_machine_states,gauge,,request,second,The current number of machines per state in this provider. Applies to GitLab Runner 1.11.0+,0,gitlab_runner,auto total docker machines per state, gitlab_runner.gitlab_runner_errors_total,count,,request,second,The number of caught errors. Applies to GitLab Runner 1.11.0+,0,gitlab_runner,errors, @@ -19,7 +70,10 @@ gitlab_runner.gitlab_runner_version_info,gauge,,request,,A metric with a constan gitlab_runner.go_gc_duration_seconds,gauge,,request,second,A summary of the GC invocation durations,0,gitlab_runner,gc duration, gitlab_runner.go_gc_duration_seconds_count,gauge,,request,second,The count of the GC invocation durations,0,gitlab_runner,count gc duration, gitlab_runner.go_gc_duration_seconds_sum,gauge,,request,second,The sum of the GC invocation durations,0,gitlab_runner,sum gc duration, +gitlab_runner.go_gc_gogc_percent,gauge,,,,"Heap size target percentage configured by the user, otherwise 100. This value is set by the GOGC environment variable, and the runtime/debug.SetGCPercent function. Sourced from /gc/gogc:percent",0,gitlab_runner,go gc gogc percent, +gitlab_runner.go_gc_gomemlimit_bytes,gauge,,byte,,"Go runtime memory limit configured by the user, otherwise math.MaxInt64. This value is set by the GOMEMLIMIT environment variable, and the runtime/debug.SetMemoryLimit function. Sourced from /gc/gomemlimit:bytes",0,gitlab_runner,go gc gomemlimit bytes, gitlab_runner.go_goroutines,gauge,,request,second,The number of goroutines that currently exist,0,gitlab_runner,goroutines, +gitlab_runner.go_info,gauge,,,,Information about the Go environment.,0,gitlab_runner,go info, gitlab_runner.go_memstats_alloc_bytes,gauge,,byte,,The number of bytes allocated and still in use,0,gitlab_runner,bytes allocated in use, gitlab_runner.go_memstats_alloc_bytes_total,count,,byte,,The total number of bytes allocated,0,gitlab_runner,bytes allocated, gitlab_runner.go_memstats_buck_hash_sys_bytes,gauge,,byte,,The number of bytes used by the profiling bucket hash table,0,gitlab_runner,bytes profiling bucket, @@ -29,6 +83,7 @@ gitlab_runner.go_memstats_heap_alloc_bytes,gauge,,byte,,The number of heap bytes gitlab_runner.go_memstats_heap_idle_bytes,gauge,,byte,,The number of heap bytes waiting to be used,0,gitlab_runner,heap bytes unused, gitlab_runner.go_memstats_heap_inuse_bytes,gauge,,byte,,The number of heap bytes that are in use,0,gitlab_runner,heap bytes in use, gitlab_runner.go_memstats_heap_objects,gauge,,request,,The number of allocated objects,0,gitlab_runner,allocated objects, +gitlab_runner.go_memstats_heap_released_bytes,gauge,,byte,,Number of heap bytes released to OS. Equals to /memory/classes/heap/released:bytes.,0,gitlab_runner,go memstats heap released bytes, gitlab_runner.go_memstats_heap_released_bytes_total,count,,byte,,The total number of heap bytes released to OS,0,gitlab_runner,heap bytes released, gitlab_runner.go_memstats_heap_sys_bytes,gauge,,byte,,The number of heap bytes obtained from system,0,gitlab_runner,heap bytes obtained, gitlab_runner.go_memstats_last_gc_time_seconds,gauge,,request,,The number of seconds since 1970 of last garbage collection,0,gitlab_runner,epoch since last gc, @@ -43,9 +98,35 @@ gitlab_runner.go_memstats_other_sys_bytes,gauge,,byte,,The number of bytes used gitlab_runner.go_memstats_stack_inuse_bytes,gauge,,byte,,The number of bytes in use by the stack allocator,0,gitlab_runner,bytes stack allocator, gitlab_runner.go_memstats_stack_sys_bytes,gauge,,byte,,The number of bytes obtained from system for stack allocator,0,gitlab_runner,bytes stack allocator from sys, gitlab_runner.go_memstats_sys_bytes,gauge,,byte,,The number of bytes obtained by system. Sum of all system allocations,0,gitlab_runner,sum system allocations, +gitlab_runner.go_sched_gomaxprocs_threads,gauge,,,,"The current runtime.GOMAXPROCS setting, or the number of operating system threads that can execute user-level Go code simultaneously. Sourced from /sched/gomaxprocs:threads",0,gitlab_runner,go sched gomaxprocs threads, +gitlab_runner.go_threads,gauge,,,,Number of OS threads created.,0,gitlab_runner,go threads, +gitlab_runner.job_duration_seconds_bucket,gauge,,request,second,Histogram of job durations,0,gitlab_runner,job duration time, +gitlab_runner.job_duration_seconds_count,gauge,,request,second,Histogram of job durations,0,gitlab_runner,job duration time count, +gitlab_runner.job_duration_seconds_sum,gauge,,request,second,Histogram of job durations,0,gitlab_runner,job duration time sum, +gitlab_runner.job_queue_duration_seconds_bucket,gauge,,request,second,A histogram representing job queue duration.,0,gitlab_runner,job queue duration time, +gitlab_runner.job_queue_duration_seconds_count,gauge,,request,second,A histogram representing job queue duration.,0,gitlab_runner,job queue duration time count, +gitlab_runner.job_queue_duration_seconds_sum,gauge,,request,second,A histogram representing job queue duration.,0,gitlab_runner,job queue duration time sum, +gitlab_runner.jobs,gauge,,,,The current number of running builds.,0,gitlab_runner,jobs, +gitlab_runner.jobs_total,count,,request,,Total number of handled jobs,0,gitlab_runner,jobs total, +gitlab_runner.limit,gauge,,,,The current value of concurrent setting,0,gitlab_runner,limit, gitlab_runner.process_cpu_seconds_total,count,,request,second,The total user and system CPU time spent in seconds,0,gitlab_runner,user and system cpu time, gitlab_runner.process_max_fds,gauge,,request,,The maximum number of open file descriptors,0,gitlab_runner,max fds, +gitlab_runner.process_network_receive_bytes_total,count,,byte,,Number of bytes received by the process over the network.,0,gitlab_runner,process network receive bytes total, +gitlab_runner.process_network_transmit_bytes_total,count,,byte,,Number of bytes sent by the process over the network.,0,gitlab_runner,process network transmit bytes total, gitlab_runner.process_open_fds,gauge,,request,,The number of open file descriptors,0,gitlab_runner,open fds, gitlab_runner.process_resident_memory_bytes,gauge,,byte,,The resident memory size in bytes,0,gitlab_runner,rss bytes, gitlab_runner.process_start_time_seconds,gauge,,request,second,The start time of the process since unix epoch in seconds,0,gitlab_runner,epoch time since start, gitlab_runner.process_virtual_memory_bytes,gauge,,byte,,The virtual memory size in bytes,0,gitlab_runner,virtual memory bytes, +gitlab_runner.process_virtual_memory_max_bytes,gauge,,byte,,Maximum amount of virtual memory available in bytes.,0,gitlab_runner,process virtual memory max bytes, +gitlab_runner.request_concurrency,gauge,,,,The current number of concurrent requests for a new job,0,gitlab_runner,request concurrency, +gitlab_runner.request_concurrency_adaptive_limit,gauge,,,,Computed adaptive request concurrency limit,0,gitlab_runner,request concurrency adaptive limit, +gitlab_runner.request_concurrency_exceeded_total,count,,request,,Count of excess requests above the configured request_concurrency limit,0,gitlab_runner,request concurrency exceeded total, +gitlab_runner.request_concurrency_hard_limit,gauge,,,,Configured request_concurrency limit,0,gitlab_runner,request concurrency hard limit, +gitlab_runner.request_concurrency_used_limit,gauge,,,,Used request concurrency limit,0,gitlab_runner,request concurrency used limit, +gitlab_runner.version_info,gauge,,,,A metric with a constant '1' value labeled by different build stats fields.,0,gitlab_runner,version info, +gitlab_runner.worker_feed_failures_total,count,,request,,Total number of times that runner worker feeding have failed,0,gitlab_runner,worker feed failures total, +gitlab_runner.worker_feeds_total,count,,request,,Total number of times that runner worker is fed to the main loop,0,gitlab_runner,worker feeds total, +gitlab_runner.worker_health_check_failures_total,count,,request,,Total number of runner worker health check failures,0,gitlab_runner,worker health check failures total, +gitlab_runner.worker_processing_failures_total,count,,request,,Total number of failures when processing runner worker,0,gitlab_runner,worker processing failures total, +gitlab_runner.worker_slot_operations_total,count,,request,,Total number of runner workers slot operations (starting and stopping slots),0,gitlab_runner,worker slot operations total, +gitlab_runner.worker_slots_number,gauge,,,,Current number of runner worker slots,0,gitlab_runner,worker slots number, From 0a8b83f4abb133e945e46520522acc9b15b6118f Mon Sep 17 00:00:00 2001 From: Elie BLETON Date: Fri, 5 Sep 2025 20:07:09 +0200 Subject: [PATCH 2/3] add exemple metrics to the spec --- gitlab_runner/assets/configuration/spec.yaml | 91 ++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/gitlab_runner/assets/configuration/spec.yaml b/gitlab_runner/assets/configuration/spec.yaml index cac2e9c0c6170..2a15b5b2cc38d 100644 --- a/gitlab_runner/assets/configuration/spec.yaml +++ b/gitlab_runner/assets/configuration/spec.yaml @@ -12,19 +12,83 @@ files: items: type: string example: + - acceptable_job_queuing_duration_exceeded_total + - api_request_duration_seconds_bucket + - api_request_duration_seconds_count + - api_request_duration_seconds_sum + - api_request_statuses_total + - autoscaling_machine_creation_duration_seconds_bucket + - autoscaling_machine_creation_duration_seconds_count + - autoscaling_machine_creation_duration_seconds_sum + - autoscaling_machine_failed_creation_duration_seconds_bucket + - autoscaling_machine_failed_creation_duration_seconds_count + - autoscaling_machine_failed_creation_duration_seconds_sum + - autoscaling_machine_removal_duration_seconds_bucket + - autoscaling_machine_removal_duration_seconds_count + - autoscaling_machine_removal_duration_seconds_sum + - autoscaling_machine_states + - autoscaling_machine_stopping_duration_seconds_bucket + - autoscaling_machine_stopping_duration_seconds_count + - autoscaling_machine_stopping_duration_seconds_sum - ci_docker_machines_provider_machine_creation_duration_seconds + - ci_docker_machines_provider_machine_creation_duration_seconds_bucket + - ci_docker_machines_provider_machine_creation_duration_seconds_count + - ci_docker_machines_provider_machine_creation_duration_seconds_sum - ci_docker_machines_provider_machine_states - ci_runner_builds - ci_runner_errors + - ci_runner_version_info - ci_ssh_docker_machines_provider_machine_creation_duration_seconds + - ci_ssh_docker_machines_provider_machine_creation_duration_seconds_bucket + - ci_ssh_docker_machines_provider_machine_creation_duration_seconds_count + - ci_ssh_docker_machines_provider_machine_creation_duration_seconds_sum - ci_ssh_docker_machines_provider_machine_states + - concurrent + - configuration_loaded_total + - configuration_loading_error_total + - configuration_saved_total + - configuration_saving_error_total + - errors_total + - failed_jobs_total + - fleeting_provisioner_instance_creation_time_seconds_bucket + - fleeting_provisioner_instance_creation_time_seconds_count + - fleeting_provisioner_instance_creation_time_seconds_sum + - fleeting_provisioner_instance_deletion_time_seconds_bucket + - fleeting_provisioner_instance_deletion_time_seconds_count + - fleeting_provisioner_instance_deletion_time_seconds_sum + - fleeting_provisioner_instance_is_running_time_seconds_bucket + - fleeting_provisioner_instance_is_running_time_seconds_count + - fleeting_provisioner_instance_is_running_time_seconds_sum + - fleeting_provisioner_instance_life_duration_seconds_bucket + - fleeting_provisioner_instance_life_duration_seconds_count + - fleeting_provisioner_instance_life_duration_seconds_sum + - fleeting_provisioner_instance_operations_total + - fleeting_provisioner_instances + - fleeting_provisioner_internal_operations_total + - fleeting_provisioner_max_instances + - fleeting_provisioner_missed_updates_total + - fleeting_taskscaler_desired_instances + - fleeting_taskscaler_max_tasks_per_instance + - fleeting_taskscaler_max_use_count_per_instance + - fleeting_taskscaler_scale_operations_total + - fleeting_taskscaler_task_instance_readiness_time_seconds_bucket + - fleeting_taskscaler_task_instance_readiness_time_seconds_count + - fleeting_taskscaler_task_instance_readiness_time_seconds_sum + - fleeting_taskscaler_task_operations_total + - fleeting_taskscaler_tasks - gitlab_runner_autoscaling_machine_creation_duration_seconds - gitlab_runner_autoscaling_machine_states - gitlab_runner_errors_total - gitlab_runner_jobs + - gitlab_runner_jobs_total - gitlab_runner_version_info - go_gc_duration_seconds + - go_gc_duration_seconds_count + - go_gc_duration_seconds_sum + - go_gc_gogc_percent + - go_gc_gomemlimit_bytes - go_goroutines + - go_info - go_memstats_alloc_bytes - go_memstats_alloc_bytes_total - go_memstats_buck_hash_sys_bytes @@ -34,6 +98,7 @@ files: - go_memstats_heap_idle_bytes - go_memstats_heap_inuse_bytes - go_memstats_heap_objects + - go_memstats_heap_released_bytes - go_memstats_heap_released_bytes_total - go_memstats_heap_sys_bytes - go_memstats_last_gc_time_seconds @@ -48,12 +113,38 @@ files: - go_memstats_stack_inuse_bytes - go_memstats_stack_sys_bytes - go_memstats_sys_bytes + - go_sched_gomaxprocs_threads + - go_threads + - job_duration_seconds_bucket + - job_duration_seconds_count + - job_duration_seconds_sum + - job_queue_duration_seconds_bucket + - job_queue_duration_seconds_count + - job_queue_duration_seconds_sum + - jobs + - jobs_total + - limit - process_cpu_seconds_total - process_max_fds + - process_network_receive_bytes_total + - process_network_transmit_bytes_total - process_open_fds - process_resident_memory_bytes - process_start_time_seconds - process_virtual_memory_bytes + - process_virtual_memory_max_bytes + - request_concurrency + - request_concurrency_adaptive_limit + - request_concurrency_exceeded_total + - request_concurrency_hard_limit + - request_concurrency_used_limit + - version_info + - worker_feed_failures_total + - worker_feeds_total + - worker_health_check_failures_total + - worker_processing_failures_total + - worker_slot_operations_total + - worker_slots_number - template: init_config/http - template: init_config/default - template: instances From 01f7982ca84b6cd7cab1aa1be5620aa065d21136 Mon Sep 17 00:00:00 2001 From: Elie BLETON Date: Fri, 5 Sep 2025 20:20:19 +0200 Subject: [PATCH 3/3] regenerate example config file --- .../gitlab_runner/data/conf.yaml.example | 91 +++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/gitlab_runner/datadog_checks/gitlab_runner/data/conf.yaml.example b/gitlab_runner/datadog_checks/gitlab_runner/data/conf.yaml.example index b6cb86149828d..a3b3313277149 100644 --- a/gitlab_runner/datadog_checks/gitlab_runner/data/conf.yaml.example +++ b/gitlab_runner/datadog_checks/gitlab_runner/data/conf.yaml.example @@ -6,19 +6,83 @@ init_config: ## List of metrics to extract from Prometheus. # allowed_metrics: + - acceptable_job_queuing_duration_exceeded_total + - api_request_duration_seconds_bucket + - api_request_duration_seconds_count + - api_request_duration_seconds_sum + - api_request_statuses_total + - autoscaling_machine_creation_duration_seconds_bucket + - autoscaling_machine_creation_duration_seconds_count + - autoscaling_machine_creation_duration_seconds_sum + - autoscaling_machine_failed_creation_duration_seconds_bucket + - autoscaling_machine_failed_creation_duration_seconds_count + - autoscaling_machine_failed_creation_duration_seconds_sum + - autoscaling_machine_removal_duration_seconds_bucket + - autoscaling_machine_removal_duration_seconds_count + - autoscaling_machine_removal_duration_seconds_sum + - autoscaling_machine_states + - autoscaling_machine_stopping_duration_seconds_bucket + - autoscaling_machine_stopping_duration_seconds_count + - autoscaling_machine_stopping_duration_seconds_sum - ci_docker_machines_provider_machine_creation_duration_seconds + - ci_docker_machines_provider_machine_creation_duration_seconds_bucket + - ci_docker_machines_provider_machine_creation_duration_seconds_count + - ci_docker_machines_provider_machine_creation_duration_seconds_sum - ci_docker_machines_provider_machine_states - ci_runner_builds - ci_runner_errors + - ci_runner_version_info - ci_ssh_docker_machines_provider_machine_creation_duration_seconds + - ci_ssh_docker_machines_provider_machine_creation_duration_seconds_bucket + - ci_ssh_docker_machines_provider_machine_creation_duration_seconds_count + - ci_ssh_docker_machines_provider_machine_creation_duration_seconds_sum - ci_ssh_docker_machines_provider_machine_states + - concurrent + - configuration_loaded_total + - configuration_loading_error_total + - configuration_saved_total + - configuration_saving_error_total + - errors_total + - failed_jobs_total + - fleeting_provisioner_instance_creation_time_seconds_bucket + - fleeting_provisioner_instance_creation_time_seconds_count + - fleeting_provisioner_instance_creation_time_seconds_sum + - fleeting_provisioner_instance_deletion_time_seconds_bucket + - fleeting_provisioner_instance_deletion_time_seconds_count + - fleeting_provisioner_instance_deletion_time_seconds_sum + - fleeting_provisioner_instance_is_running_time_seconds_bucket + - fleeting_provisioner_instance_is_running_time_seconds_count + - fleeting_provisioner_instance_is_running_time_seconds_sum + - fleeting_provisioner_instance_life_duration_seconds_bucket + - fleeting_provisioner_instance_life_duration_seconds_count + - fleeting_provisioner_instance_life_duration_seconds_sum + - fleeting_provisioner_instance_operations_total + - fleeting_provisioner_instances + - fleeting_provisioner_internal_operations_total + - fleeting_provisioner_max_instances + - fleeting_provisioner_missed_updates_total + - fleeting_taskscaler_desired_instances + - fleeting_taskscaler_max_tasks_per_instance + - fleeting_taskscaler_max_use_count_per_instance + - fleeting_taskscaler_scale_operations_total + - fleeting_taskscaler_task_instance_readiness_time_seconds_bucket + - fleeting_taskscaler_task_instance_readiness_time_seconds_count + - fleeting_taskscaler_task_instance_readiness_time_seconds_sum + - fleeting_taskscaler_task_operations_total + - fleeting_taskscaler_tasks - gitlab_runner_autoscaling_machine_creation_duration_seconds - gitlab_runner_autoscaling_machine_states - gitlab_runner_errors_total - gitlab_runner_jobs + - gitlab_runner_jobs_total - gitlab_runner_version_info - go_gc_duration_seconds + - go_gc_duration_seconds_count + - go_gc_duration_seconds_sum + - go_gc_gogc_percent + - go_gc_gomemlimit_bytes - go_goroutines + - go_info - go_memstats_alloc_bytes - go_memstats_alloc_bytes_total - go_memstats_buck_hash_sys_bytes @@ -28,6 +92,7 @@ init_config: - go_memstats_heap_idle_bytes - go_memstats_heap_inuse_bytes - go_memstats_heap_objects + - go_memstats_heap_released_bytes - go_memstats_heap_released_bytes_total - go_memstats_heap_sys_bytes - go_memstats_last_gc_time_seconds @@ -42,12 +107,38 @@ init_config: - go_memstats_stack_inuse_bytes - go_memstats_stack_sys_bytes - go_memstats_sys_bytes + - go_sched_gomaxprocs_threads + - go_threads + - job_duration_seconds_bucket + - job_duration_seconds_count + - job_duration_seconds_sum + - job_queue_duration_seconds_bucket + - job_queue_duration_seconds_count + - job_queue_duration_seconds_sum + - jobs + - jobs_total + - limit - process_cpu_seconds_total - process_max_fds + - process_network_receive_bytes_total + - process_network_transmit_bytes_total - process_open_fds - process_resident_memory_bytes - process_start_time_seconds - process_virtual_memory_bytes + - process_virtual_memory_max_bytes + - request_concurrency + - request_concurrency_adaptive_limit + - request_concurrency_exceeded_total + - request_concurrency_hard_limit + - request_concurrency_used_limit + - version_info + - worker_feed_failures_total + - worker_feeds_total + - worker_health_check_failures_total + - worker_processing_failures_total + - worker_slot_operations_total + - worker_slots_number ## @param proxy - mapping - optional ## Set HTTP or HTTPS proxies for all instances. Use the `no_proxy` list