본문 바로가기

분류 전체보기

(6)
PromQL without 과 by 의 차이점 PromQL 에서는 11개의 집계 연산자(aggregation operator) 와 2개의 선택적 구문 without 과 by 를 제공한다. 집계 연산자는 인스턴트 벡터에서 동작하며 결과물 역시 인스턴스 벡터다. without (label, ..) : 삭제될 레이블을 지정 by (label, ...) : 보존할 레이블을 지정 without 프로메테우스에 수집된 메트릭에 사용 중인 모든 레이블을 알고 있을 수 없다. 일반적으로 메트릭을 집계할 때 대상 레이블은 보존되어야 하므로 without 절을 사용해 삭제할 레이블을 지정해준다. sum (node_filesystem_size_bytes) without(fstype, mountpoint) 위 표현식과 아래 표현식은 동일하다. vector expressio..
PromQL PromQL 이란 프로메테우스 쿼리 언어 QL 로 끝나지만 SQL 계열 언어는 아니다. (SQL 은 시계열 계산에 대한 표현력이 부족하다.) 날짜 예측부터 수학 함수 까지 다양한 함수들이 있다. 레이블 (Label) 레이블은 PromQL 의 핵심 PromQL 을 사용해 임의의 집계를 수행할 수 있을 뿐 아니라, 레이블에 대한 산술 연산을 위해 서로 다른 메트릭과 조인할 수도 있다. PromQL 예시 예시 1) 각 머신의 전체 파일 시스템 크기 계산 시계열 데이터 node_filesystem_free_bytes{device="/dev/sda1", fstype="vfat", instance="localhost:9100", job="node", mountpoint="/boot/efi"} 70300672 nod..
스택오버플로우 해석하기 # 03 명령문 Sentence. There is no such thing as the size of an input stream. Consider a program which never exits, or a socket peer which never stops sending. And you don't need to know to write it to an HttpResponse header. The Content-length is managed automatically for you. 해석 input stream 에는 size 와 같은 것이 없다. 절대 종료되지 않는 프로그램이나 전송을 멈추지 않는 소켓 피어를 생각해봐라. 그리고 당신은 HttpResponse 헤더에 쓰기 위해서 알 필요가 없다. Content-len..
스택오버플로우 해석하기 # 02 ing 분사구문 sentence. Creates a new Netty-backed HttpClient instance on every call, using the configuration set in the builder at the time of the build method call. 해석 buld 메서드 호출시 builder 에 설정된 구성을 사용하여 모든 호출에 새 Netty 에서 만든 HttpClient 인스턴스를 만든다. 설명 이 문장은 build() 메소드를 설명하는 문장입니다. (API doc 한 페이지에서 여러 문법이 나오네요.. ^^) 하나하나 뜯어보도록 하겠습니다. Creates a new Netty-backed HttpClient instance / on every call, / using the ..
스택오버플로우 해석하기 # 01 관계부사의 계속적용법 sentence. Creates a new builder instance, where a builder is capable of generating multiple instances of HttpClient backed by Reactor Netty. 해석 Reactor Netty 가 지원하는 HttpClient 의 여러개의 instance 를 생성할 수 있는 새로운 builder 인스턴스를 생성한다. 설명 이 문장은 NettyAsyncHttpClientBuilder() 생성자를 설명하는 문장입니다. 하나하나 뜯어보도록 하겠습니다. Creates a new builder instance, / where a builder is capable of generating multiple instances of ..
스택오버플로우 해석하기 # 00 주격관계대명사의 생략 sentence. Builder class responsible for creating instances of HttpClient backed by Reactor Netty. 해석 Reactor Netty 가 지원하는 HttpClient 의 인스턴스를 생성을 담당하는 Builder 클래스입니다. 설명 이 문장은 주어+동사로 이루어진 문장은 아니고, 하나의 명사입니다. NettyAsyncHttpClientBuilder 클래스를 설명하는 문장인데요. 하나하나 뜯어보도록 하겠습니다. Builder class / responsible for creating instances of HttpClient / backed by Reactor Netty. 뭔가 문장이 이상한거 같죠? Builder class 가 주어같은..