input
stringclasses
1 value
instruction
stringlengths
3
295
output
stringlengths
3
835
Which Kubernetes metric is used to monitor the current memory usage in bytes, including all memory regardless of when it was accessed?
kubernetes_memory_usage
Which Kubernetes metric tracks the current working set of memory in bytes, which is observed by the OOM killer?
kubernetes_memory_working_set
Which Kubernetes metric measures the amount of memory used for caching data from disk?
kubernetes_memory_cache
Which Kubernetes metric tracks the size of Resident Set Size (RSS) in bytes?
kubernetes_memory_rss
Which Kubernetes metric measures the amount of swap space currently used by processes in a specific cgroup?
kubernetes_memory_swap
Which Kubernetes metric indicates the percentage of memory used?
kubernetes_memory_usage_pct
Which Kubernetes metric indicates the percentage of swap space used?
kubernetes_memory_sw_in_use
Which Kubernetes metric measures the amount of bytes received per second?
kubernetes_network_rx_bytes
Which Kubernetes metric measures the number of received packets dropped per second?
kubernetes_network_rx_dropped
Which Kubernetes metric measures the number of received errors per second?
kubernetes_network_rx_errors
Which Kubernetes metric measures the amount of bytes transmitted per second?
kubernetes_network_tx_bytes
Which Kubernetes metric measures the number of transmitted packets dropped per second?
kubernetes_network_tx_dropped
Which Kubernetes metric measures the number of transmission errors per second?
kubernetes_network_tx_errors
Which Kubernetes metric tracks the amount of disk space used by a container?
kubernetes_diskio_io_service_bytes_stats_total
Which Kubernetes metric tracks the remaining lifetime of the certificate used to authenticate a request?
kubernetes_apiserver_certificate_expiration_count
Which Kubernetes metric sums the remaining lifetime of certificates used to authenticate requests?
kubernetes_apiserver_certificate_expiration_sum
Which Kubernetes metric tracks the number of HTTP requests?
kubernetes_rest_client_requests
Which Kubernetes metric counts the request latency in seconds, broken down by verb and URL?
kubernetes_rest_client_latency_count
Which Kubernetes metric sums the request latency in seconds, broken down by verb and URL?
kubernetes_rest_client_latency_sum
Which Kubernetes metric tracks the number of runtime operations?
kubernetes_kubelet_runtime_operations
Which Kubernetes metric tracks the number of errors in runtime operations?
kubernetes_kubelet_runtime_errors
Which Kubernetes metric sums the latency in microseconds of network plugin operations?
kubernetes_kubelet_network_plugin_latency_sum
Which Kubernetes metric counts the network plugin operations by latency?
kubernetes_kubelet_network_plugin_latency_count
Which Kubernetes metric provides the quantiles of network plugin operations by latency?
kubernetes_kubelet_network_plugin_latency_quantile
Which Kubernetes metric indicates the number of available bytes in a specific volume?
kubernetes_kubelet_volume_stats_available_bytes
Which Kubernetes metric indicates the capacity in bytes of a specific volume?
kubernetes_kubelet_volume_stats_capacity_bytes
Which Kubernetes metric indicates the number of used bytes in a specific volume?
kubernetes_kubelet_volume_stats_used_bytes
Which Kubernetes metric indicates the maximum number of inodes in a specific volume?
kubernetes_kubelet_volume_stats_inodes
Which Kubernetes metric indicates the number of free inodes in a specific volume?
kubernetes_kubelet_volume_stats_inodes_free
Which Kubernetes metric indicates the number of used inodes in a specific volume?
kubernetes_kubelet_volume_stats_inodes_used
Which Kubernetes metric tracks the usage of ephemeral storage by a pod?
kubernetes_ephemeral_storage_usage
Which Kubernetes metric measures the number of cores used by the kubelet?
kubernetes_kubelet_cpu_usage
Which Kubernetes metric measures the size of kubelet RSS in bytes?
kubernetes_kubelet_memory_rss
Which Kubernetes metric measures the number of cores used by the runtime?
kubernetes_runtime_cpu_usage
Which Kubernetes metric measures the size of runtime RSS in bytes?
kubernetes_runtime_memory_rss
Which Kubernetes metric tracks the amount of disk space used by a container's logs on the filesystem?
kubernetes_kubelet_container_log_filesystem_used_bytes
Which Kubernetes metric tracks the current phase of a persistent volume claim?
kubernetes_state_persistentvolumeclaim_status
Which Kubernetes metric indicates the storage space requested for a specific persistent volume claim?
kubernetes_state_persistentvolumeclaim_request_storage
Which Kubernetes metric counts the number of persistent volumes, summed by phase and storage class?
kubernetes_state_persistentvolumes_by_phase
Which Kubernetes metric indicates the number of available bytes in a specific volume?
kubernetes_kubelet_volume_stats_available_bytes
Which Kubernetes metric indicates the capacity in bytes of a specific volume?
kubernetes_kubelet_volume_stats_capacity_bytes
Which Kubernetes metric indicates the number of used bytes in a specific volume?
kubernetes_kubelet_volume_stats_used_bytes
Which Kubernetes metric indicates the maximum number of inodes in a specific volume?
kubernetes_kubelet_volume_stats_inodes
Which Kubernetes metric indicates the number of free inodes in a specific volume?
kubernetes_kubelet_volume_stats_inodes_free
Which Kubernetes metric indicates the number of used inodes in a specific volume?
kubernetes_kubelet_volume_stats_inodes_used
Which Kubernetes metric, in association with the condition tag, tracks pods that are ready to serve requests, e.g., condition:true for pods in a ready state.
kubernetes_state_pod_ready
Report the Kubernetes metric used to track the scheduling status of a pod with its tags.
kubernetes_state_pod_scheduled
Which Kubernetes metric is used to report pods that the Kube scheduler cannot schedule on any node?
kubernetes_state_pod_unschedulable
Sum by phase to obtain the count of pods in a given phase, and use namespace to break it down by namespace.
kubernetes_state_pod_status_phase
Which Kubernetes metric is used to track the number of running pods in a cluster?
kubernetes_pods_running
Which Kubernetes metric is used to track the number of expired pods in a cluster?
kubernetes_pods_expired
Which Kubernetes metric tracks the current phase of a persistent volume claim?
kubernetes_state_persistentvolumeclaim_status
Which Kubernetes metric indicates the storage space requested for a specific persistent volume claim?
kubernetes_state_persistentvolumeclaim_request_storage
Which Kubernetes metric is used to track the number of replicasets?
kubernetes_state_replicaset_count
Which Kubernetes metric is used to track the number of replicas per ReplicaSet?
kubernetes_state_replicaset_replicas
Which Kubernetes metric is used to track the number of fully labeled replicas per ReplicaSet?
kubernetes_state_replicaset_fully_labeled_replicas
Which Kubernetes metric is used to track the number of ready replicas per ReplicaSet?
kubernetes_state_replicaset_replicas_ready
Which Kubernetes metric is used to track the number of desired pods for a ReplicaSet?
kubernetes_state_replicaset_replicas_desired
Which Kubernetes metric, when summed by namespace and type, provides the count of active services?
kubernetes_state_service_count
Which Kubernetes metric is used to track the number of replicas per StatefulSet?
kubernetes_state_statefulset_replicas
Which Kubernetes metric is used to track the number of desired replicas per StatefulSet?
kubernetes_state_statefulset_replicas_desired
Which Kubernetes metric is used to track the number of current replicas per StatefulSet?
kubernetes_state_statefulset_replicas_current
Which Kubernetes metric is used to track the number of ready replicas per StatefulSet?
kubernetes_state_statefulset_replicas_ready
Which Kubernetes metric is used to track the number of updated replicas per StatefulSet?
kubernetes_state_statefulset_replicas_updated
kafka topic partition count
kafka_topic_partition_count
kafka topic partition leader count by broker_id by each topic for job='my-job'
count_values by (topic) ('broker_id',kafka_topic_partition_leader{job='my-job'})
counts the occurrences of each unique broker_id across different topics. The metric you are working with is named kafka_topic_partition_leader and it includes a label for the job named 'my-job'.
count_values by (topic) ('broker_id',kafka_topic_partition_leader{job='my-job'})
counts the occurrences of each unique broker_id across different topics. The metric you are working with is named my_very_good_metric and it includes a label for the job named 'my-job'.
count_values by (topic) ('broker_id',my_very_good_metric{job='my-job'})
counts the occurrences of each unique broker_id across different topics. The metric you are working with is named my_very_good_metric and it includes a label for the job named 'my-job'.
count_values by (topic) ('broker_id',my_very_good_metric{job='my-job'})
각 고유 broker_id의 λ°œμƒ 횟수λ₯Ό ν† ν”½λ³„λ‘œ κ³„μ‚°ν•©λ‹ˆλ‹€. μž‘μ—…ν•˜κ³  μžˆλŠ” λ©”νŠΈλ¦­μ˜ 이름은 'my_very_good_metric'이며, 'my-job'μ΄λΌλŠ” job에 ν•œμ •ν•˜μ—¬ κ²°κ³Όλ₯Ό λ„μΆœν•©λ‹ˆλ‹€.
count_values by (topic) ('broker_id',my_very_good_metric{job='my-job'})
각각의 고유 broker_idκ°€ topicλ³„λ‘œ λͺ‡ 번 λ“±μž₯ν•˜λŠ”μ§€ κ³„μ‚°ν•˜λ €κ³  ν•©λ‹ˆλ‹€. μ‚¬μš© 쀑인 λ©”νŠΈλ¦­μ˜ 이름은 'my_very_good_metric'이며, 'my-job'μ΄λΌλŠ” job에 λŒ€ν•œ 결과만 ν•„μš”ν•©λ‹ˆλ‹€.
count_values by (topic) ('broker_id',my_very_good_metric{job='my-job'})
job='yours' λ ˆμ΄λΈ”μ΄ μžˆλŠ” μΈμŠ€ν„΄μŠ€μ— λŒ€ν•΄ my_very_good_metric 의 값을 broker_id 둜 λ ˆμ΄λΈ”μ„ μ •μ˜ν•˜μ—¬ κ°’μ˜ λ°œμƒ 횟수λ₯Ό topic λ³„λ‘œ κ³„μ‚°ν•©λ‹ˆλ‹€.
count_values by (topic) ('broker_id',my_very_good_metric{job='yours'})
job='yours' λ ˆμ΄λΈ”μ΄ μžˆλŠ” μΈμŠ€ν„΄μŠ€μ— λŒ€ν•΄ my_very_good_metric 의 κ°’μ˜ λ ˆμ΄λΈ”μ„ broker_id 둜 μ •μ˜ν•˜μ—¬ 각 κ°’μ˜ 개수λ₯Ό topic λ³„λ‘œ κ³„μ‚°ν•©λ‹ˆλ‹€.
count_values by (topic) ('broker_id',my_very_good_metric{job='yours'})
my_very_very_good_metric 의 κ°’μ˜ λ ˆμ΄λΈ”μ„ abc 둜 μ •μ˜ν•˜μ—¬ 각 κ°’μ˜ 개수λ₯Ό topic λ³„λ‘œ κ³„μ‚°ν•©λ‹ˆλ‹€. job='yours' λ ˆμ΄λΈ”μ΄ μžˆλŠ” μΈμŠ€ν„΄μŠ€μ— λŒ€ν•΄μ„œλ§Œ κ³„μ‚°ν•©λ‹ˆλ‹€.
count_values by (topic) ('abc',my_very_very_good_metric{job='yours'})
kafka_topic_partitions 의 개수λ₯Ό job='ajob'에 λŒ€ν•œ κ²½μš°μ— ν•œμ •ν•΄μ„œ κ³„μ‚°ν•©λ‹ˆλ‹€.
kafka_topic_partitions{job='ajob'}
kafka_topic_partitions 의 개수λ₯Ό job='ajob' λ ˆμ΄λΈ”μ΄ μžˆλŠ” λͺ¨λ“  μΈμŠ€ν„΄μŠ€μ— λŒ€ν•΄ κ³„μ‚°ν•©λ‹ˆλ‹€.
kafka_topic_partitions{job='ajob'}
http_requests_total을 method 둜 group by ν•˜μ—¬ ν•©μ‚°ν•΄ 보여쀀닀
sum(http_requests_total) by (method)
http_requests_total을 method 둜 group by ν•˜μ—¬ ν•©μ‚°ν•΄ 보여쀀닀
sum by (method) (http_requests_total)
http_requests_total을 method λ³„λ‘œ ν•©ν•˜μ—¬ 보여쀀닀
sum by (method) (http_requests_total)
host λ ˆμ΄λΈ”λ‘œ κ·Έλ£Ήν™”λœ μ§€λ‚œ 5λΆ„ λ™μ•ˆ request_count λ©”νŠΈλ¦­μ˜ λ³€κ²½ λΉ„μœ¨μ„ κ΅¬ν•œλ‹€.
rate(request_count[5m]) by (host)
host λ ˆμ΄λΈ” λ‹¨μœ„λ‘œ μ§€λ‚œ 10λΆ„κ°„ request_count λ©”νŠΈλ¦­μ˜ λ³€κ²½ λΉ„μœ¨
rate(request_count[10m]) by (host)
app=api λ ˆμ΄λΈ”μ΄ μžˆλŠ” λͺ¨λ“  μΈμŠ€ν„΄μŠ€μ— λŒ€ν•΄ μ§€λ‚œ 1μ‹œκ°„ λ™μ•ˆμ˜ 평균 cpu_utilization
avg(cpu_utilization{app='api'}[1h])
app='api' λ ˆμ΄λΈ”μ΄ μžˆλŠ” λͺ¨λ“  μΈμŠ€ν„΄μŠ€μ— λŒ€ν•΄ μ§€λ‚œ 1μ‹œκ°„ λ™μ•ˆμ˜ cpu_utilization κ°’μ˜ 평균
avg(cpu_utilization{app='api'}[1h])
app='api' λ ˆμ΄λΈ”μ΄ μžˆλŠ” λͺ¨λ“  μΈμŠ€ν„΄μŠ€μ— λŒ€ν•΄ μ§€λ‚œ 2μ‹œκ°„ λ™μ•ˆμ˜ service_metric κ°’μ˜ 평균
avg(service_metric{app='api'}[2h])
app='api' λ ˆμ΄λΈ”μ΄ μžˆλŠ” μΈμŠ€ν„΄μŠ€μ— λŒ€ν•΄μ„œλ§Œ μ§€λ‚œ 2μ‹œκ°„ λ™μ•ˆμ˜ service_metric의 평균을 κ΅¬ν•©λ‹ˆλ‹€.
avg(service_metric{app='api'}[2h])