Skip to Content
Prometheus: Up & Running, 2nd Edition
book

Prometheus: Up & Running, 2nd Edition

by Julien Pivotto, Brian Brazil
May 2025
Beginner to intermediate
418 pages
6h 18m
Korean
O'Reilly Media, Inc.
Content preview from Prometheus: Up & Running, 2nd Edition

10장. 일반적인 내보내기

이 작품은 AI를 사용하여 번역되었습니다. 여러분의 피드백과 의견을 환영합니다: translation-feedback@oreilly.com

7장에서 이미 노드 익스포터에 대해 살펴보았지만, 말 그대로 수백 가지의 다른 익스포터를 사용할 수 있습니다.

여기서는 계속 늘어나는 수많은 내보내기를 모두 살펴보는 대신 내보내기를 사용할 때 발생할 수 있는 몇 가지 유형의 예를 보여드리겠습니다. 이를 통해 자신의 환경에서 내보내기를 사용할 수 있도록 준비할 수 있습니다.

가장 간단하게는, 노드 내보내기에서 이미 보았듯이 내보내기는 사용자가 구성할 필요 없이 바로 작동합니다. 일반적으로 내보내기에 스크랩할 애플리케이션 인스턴스를 알려주기 위해 최소한의 구성만 수행하면 됩니다. 하지만 일부 내보내기는 작업하는 데이터가 매우 일반적이기 때문에 광범위한 구성이 필요합니다.

일반적으로 내보내기가 필요한 모든 애플리케이션 인스턴스에 대해 하나의 내보내기를 갖게 됩니다. 이는 모든 애플리케이션이 직접 계측을 하고 Prometheus가 이를 발견하여 직접 스크래핑하도록 하는 것이 의도된 사용 방식이기 때문입니다. 이것이 가능하지 않은 경우, 내보내기가 사용되며 가능한 한 이 아키텍처를 유지하려고 합니다. 내보내기가 내보내는 애플리케이션 인스턴스 바로 옆에 있으면 성장에 따라 관리하기가 더 쉬워지고 장애 도메인을 일관되게 유지할 수 있습니다. 일부 내보내기는 이 가이드라인을 위반하여 여러 인스턴스를 스크래핑하는 기능을 제공하지만, 여전히 의도한 방식으로 배포하고"metric_relabel_configs "에 표시된 기술을 사용하여 불필요한 레이블을 제거할 수 있습니다.

영사

이미 "Consul"에서 Consul을 설치하여 실행하고 있습니다 . 계속 실행 중이라고 가정하고예제 10-1의 명령어를 사용하여 Consul 내보내기를 다운로드하여 실행할 수 있습니다. Consul은 일반적으로 8500 포트에서 실행되므로 Consul Exporter는 기본적으로 이 포트를 사용하므로 별도의 구성을 할 필요가 없습니다.

예 10-1. 컨설턴트 내보내기 다운로드 및 실행
hostname $ wget https://github.com/prometheus/consul_exporter/releases/
    download/v0.3.0/consul_exporter-0.8.0.linux-amd64.tar.gz
hostname $ tar -xzf consul_exporter-0.8.0.linux-amd64.tar.gz
hostname $ cd consul_exporter-0.8.0.linux-amd64/
hostname $ ./consul_exporter msg="Starting consul_exporter" version="(version=0.8.0, branch=HEAD, revision=176aef0f2d437e9fd1cb3a9e29dc4730de717e05)" build_context="(go=go1.17.6, user=root@566e953b1722, date=20220210-16:54:21)" ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Prometheus: Up & Running, 2nd Edition

Prometheus: Up & Running, 2nd Edition

Julien Pivotto, Brian Brazil
Mastering Prometheus

Mastering Prometheus

William Hegedus
Argo CD: Up and Running

Argo CD: Up and Running

Andrew Block, Christian Hernandez
Kubernetes: Up and Running, 3rd Edition

Kubernetes: Up and Running, 3rd Edition

Brendan Burns, Joe Beda, Kelsey Hightower, Lachlan Evenson

Publisher Resources

ISBN: 9798341654181