메트릭
Tuist 서버에서 수집한 메트릭을 Prometheus를 통해 가져오고 Grafana와 같은 시각화 도구를 활용하여 사용자 요구에 맞는 커스텀 대시보드를 생성할 수 있습니다. Prometheus 메트릭은 9091 port의 /metrics
endpoint를 통해 제공됩니다. Prometheus의 scrape_interval은 10,000초 미만으로 설정해야 합니다 (기본 값인 15 초로 유지할 것을 권장합니다).
Elixir 메트릭
기본적으로 Elixir 런타임, BEAM, Elixir, 그리고 사용하는 일부 라이브러리의 메트릭이 포함되어 있습니다. 다음은 확인할 수 있는 메트릭의 일부입니다:
We recommend checking those pages to know which metrics are available and how to use them.
Runs 메트릭
Tuist run과 관련된 메트릭 모음입니다.
tuist_runs_total
(카운터)
Tuist Run의 총 실행 횟수.
Tags
Tag | Description |
---|---|
name | build , test 등과 같이 실행된 tuist 명령어의 이름. |
is_ci | CI 또는 개발자의 머신에서 실행되었는 지를 나타내는 불리언 값. |
status | 성공 시 0 , 실패 시 1 |
tuist_runs_duration_milliseconds
(히스토그램)
각 tuist run의 총 소요 시간(milliseconds).
Tags
Tag | Description |
---|---|
name | build , test 등과 같이 실행된 tuist 명령어의 이름. |
is_ci | CI 또는 개발자의 머신에서 실행되었는 지를 나타내는 불리언 값. |
status | 성공 시 0 , 실패 시 1 |
Cache 메트릭
Tuist Cache와 관련된 메트릭 모음입니다.
tuist_cache_events_total
(카운터)
바이너리 캐시 이벤트의 총 개수.
Tags
Tag | Description |
---|---|
event_type | local_hit , remote_hit , miss 중 하나 |
tuist_cache_uploads_total
(카운터)
바이너리 캐시 업로드 개수.
tuist_cache_uploaded_bytes
(합)
바이너리 캐시에 업로드된 바이트 수.
tuist_cache_downloads_total
(카운터)
바이너리 캐시에 다운로드 수.
tuist_cache_downloaded_bytes
(합)
바이너리 캐시로 부터 다운로드된 바이트 수.
Preview 메트릭
프리뷰 기능과 관련된 메트릭 모음입니다.
tuist_previews_uploads_total
(합)
업로드된 프리뷰의 수.
tuist_previews_downloads_total
(합)
다운로드된 프리뷰의 수.
Storage 메트릭
remote storage(예: s3)에 아티팩트를 저장하는 것과 관련된 메트릭 모음.
TIP
이 메트릭은 storage의 작업 성능을 이해하고 잠재적인 병목 현상을 식별하는데 유용합니다.
tuist_storage_get_object_size_size_bytes
(히스토그램)
remote storage에서 가져온 object의 크기(byte)
Tags
Tag | Description |
---|---|
object_key | remote storage에서 object의 조회 키 |
tuist_storage_get_object_size_duration_miliseconds
(히스토그램)
remote storage에서 object의 크기를 가져오는 데 소요된 시간(milliseconds)
Tags
Tag | Description |
---|---|
object_key | remote storage에서 object의 조회 키 |
tuist_storage_get_object_size_count
(카운터)
remote storage에서 object 크기를 가져온 횟수.
Tags
Tag | Description |
---|---|
object_key | remote storage에서 object의 조회 키 |
tuist_storage_delete_all_objects_duration_milliseconds
(히스토그램)
remote storage에서 모든 object를 삭제하는 데 소요된 시간(milliseconds)
Tags
Tag | Description |
---|---|
project_slug | object가 삭제되는 프로젝트의 프로젝트 슬러그(slug) |
tuist_storage_delete_all_objects_count
(카운터)
remote storage에서 프로젝트의 모든 object가 삭제된 횟수
Tags
Tag | Description |
---|---|
project_slug | object가 삭제되는 프로젝트의 프로젝트 슬러그(slug) |
tuist_storage_multipart_start_upload_duration_milliseconds
(히스토그램)
remote storage로 업로드를 시작하는 데 소요된 시간(milliseconds)
Tags
Tag | Description |
---|---|
object_key | remote storage에서 object의 조회 키 |
tuist_storage_multipart_start_upload_duration_count
(카운터)
remote storage로 업로드가 시작된 횟수
Tags
Tag | Description |
---|---|
object_key | remote storage에서 object의 조회 키 |
tuist_storage_get_object_as_string_duration_milliseconds
(히스토그램)
remote storage에서 object를 문자열로 가져오는 데 소요된 시간(milliseconds)
Tags
Tag | Description |
---|---|
object_key | remote storage에서 object의 조회 키 |
tuist_storage_get_object_as_string_count
(횟수)
remote storage에서 객체를 문자열로 가져온 횟수
Tags
Tag | Description |
---|---|
object_key | remote storage에서 object의 조회 키 |
tuist_storage_check_object_existence_duration_milliseconds
(히스토그램)
remote storage에서 object의 존재 여부를 확인하는 데 소요된 시간(milliseconds)
Tags
Tag | Description |
---|---|
object_key | remote storage에서 object의 조회 키 |
tuist_storage_check_object_existence_count
(횟수)
remote storage에서 object의 존재 여부를 확인한 횟수
Tags
Tag | Description |
---|---|
object_key | remote storage에서 object의 조회 키 |
tuist_storage_generate_download_presigned_url_duration_milliseconds
(히스토그램)
remote storage에서 object의 download presigned URL을 생성하는 데 소요된 시간(milliseconds)
Tags
Tag | Description |
---|---|
object_key | remote storage에서 object의 조회 키 |
tuist_storage_generate_download_presigned_url_count
(횟수)
remote storage에서 object의 download presigned URL이 생성된 횟수
Tags
Tag | Description |
---|---|
object_key | remote storage에서 object의 조회 키 |
tuist_storage_multipart_generate_upload_part_presigned_url_duration_milliseconds
(히스토그램)
remote storage에서 object의 part upload presigned URL을 생성하는 데 소요된 시간(milliseconds)
Tags
Tag | Description |
---|---|
object_key | remote storage에서 object의 조회 키 |
part_number | 업로드 중인 object의 part number |
upload_id | multipart upload의 upload ID |
tuist_storage_multipart_generate_upload_part_presigned_url_count
(횟수)
remote storage에서 object의 part upload presigned URL이 생성된 횟수
Tags
Tag | Description |
---|---|
object_key | remote storage에서 object의 조회 키 |
part_number | 업로드 중인 object의 part number |
upload_id | multipart upload의 upload ID |
tuist_storage_multipart_complete_upload_duration_milliseconds
(히스토그램)
remote storage로 업로드를 완료하는 데 소요된 시간(milliseconds)
Tags
Tag | Description |
---|---|
object_key | remote storage에서 object의 조회 키 |
upload_id | multipart upload의 upload ID |
tuist_storage_multipart_complete_upload_count
(횟수)
remote storage로 업로드가 완료된 총 횟수.
Tags
Tag | Description |
---|---|
object_key | remote storage에서 object의 조회 키 |
upload_id | multipart upload의 upload ID |
프로젝트 메트릭
프로젝트와 관련된 메트릭 모음입니다.
tuist_projects_total
(last_value)
프로젝트의 수.
계정 메트릭
계정 (사용자와 조직) 과 관련된 메트릭 모음입니다.
tuist_accounts_organizations_total
(last_value)
조직의 총 수.
tuist_accounts_users_total
(last_value)
사용자의 총 수.
데이터베이스 메트릭
데이터베이스 연결과 관련된 메트릭입니다.
tuist_repo_pool_checkout_queue_length
(last_value)
데이터베이스 연결에 할당되기를 기다리며 큐에 대기 중인 데이터베이스 쿼리 수입니다.
tuist_repo_pool_ready_conn_count
(last_value)
데이터베이스 쿼리에 할당될 준비가 된 데이터베이스 연결 수입니다.
tuist_repo_pool_db_connection_connected
(counter)
데이터베이스에 설정된 연결 수입니다.
tuist_repo_pool_db_connection_disconnected
(counter)
데이터베이스에서 해제된 연결 수입니다.
HTTP metrics
A set of metrics related to Tuist's interactions with other services via HTTP.
tuist_http_request_count
(counter)
The number of outgoing HTTP requests.
tuist_http_request_duration_nanosecond_sum
(sum)
The sum of the duration of the outgoing requests (including the time that they spent waiting to be assigned to a connection).
tuist_http_request_duration_nanosecond_bucket
(distribution)
The distribution of the duration of outgoing requests (including the time that they spent waiting to be assigned to a connection).
tuist_http_queue_count
(counter)
The number of requests that have been retrieved from the pool.
tuist_http_queue_duration_nanoseconds_sum
(sum)
The time it takes to retrieve a connection from the pool.
tuist_http_queue_idle_time_nanoseconds_sum
(sum)
The time a connection has been idle waiting to be retrieved.
tuist_http_queue_duration_nanoseconds_bucket
(distribution)
The time it takes to retrieve a connection from the pool.
tuist_http_queue_idle_time_nanoseconds_bucket
(distribution)
The time a connection has been idle waiting to be retrieved.
tuist_http_connection_count
(counter)
The number of connections that have been established.
tuist_http_connection_duration_nanoseconds_sum
(sum)
The time it takes to establish a connection against a host.
tuist_http_connection_duration_nanoseconds_bucket
(distribution)
The distribution of the time it takes to establish a connection against a host.
tuist_http_send_count
(counter)
The number of requests that have been sent once assigned to a connection from the pool.
tuist_http_send_duration_nanoseconds_sum
(sum)
The time that it takes for requests to complete once assigned to a connection from the pool.
tuist_http_send_duration_nanoseconds_bucket
(distribution)
The distribution of the time that it takes for requests to complete once assigned to a connection from the pool.
tuist_http_receive_count
(counter)
The number of responses that have been received from sent requests.
tuist_http_receive_duration_nanoseconds_sum
(sum)
The time spent receiving responses.
tuist_http_receive_duration_nanoseconds_bucket
(distribution)
The distribution of the time spent receiving responses.
tuist_http_queue_available_connections
(last_value)
The number of connections available in the queue.
tuist_http_queue_in_use_connections
(last_value)
The number of queue connections that are in use.