SlideShare a Scribd company logo
Prometheus in Openstack-helm
Aug 21, 2018
Prometheus
• History
• SoundCloud라는 곳에서 시작
• 2012년 이후 여러회사에서 참여
• 2016에 Cloud Native Computing Foundation에 합류 (k8s에 이은 두번째 공식 프로젝트)
• 주요기능
• 멀티 디맨젼 지원 데이터 모델 (multi-demensional data model)
• 유연한 조회언어 (query language)
• 분산스토리지에 의존성없음
• http 프로토콜을 사용한 시계열데이터 수집
• Severside pull 데이터 수집 및 push gateway를 통한 Spot data지원
• Service Discovery나 Static 모두 사용가능한 구조
• 그래프나 대시보드를 위한 다양한 모드 제공
• 적용대상
• 순수하게 숫자로 구성된 시계열 데이터 저장에 적합
• Reliable 하지만 성숙도가 부족하여 billing 등 사용 부적합
Prometheus Architecture
Exporter
• https://prometheus.io/docs/instrumenting/exporters/
• 내부의 metrics를 prometheus metrics으로 변환하여 노출(export)
• prometheus에서 제공하는 라이브러리 활용가능
• 공식페이지에서 단계별로 exporter들 소개
• official과 단순소개
• sw 자체적으로 expoter를 구현
• Ballerina, Ceph, Collectd, Concourse,
• CRG Roller Derby Scoreboard (direct),
• Docker Daemon, Doorman (direct), Etcd (direct),
• Flink, FreeBSD Kernel, Grafana, Kubernetes (direct),
• Linkerd, mgmt, MidoNet,
• midonet-kubernetes (direct), Minio, Netdata,
• Pretix, Quobyte (direct), RobustIRC, ScyllaDB,
• Skipper, SkyDNS (direct), Telegraf, Traefik,
• Weave Flux
Job&Instance
• Instance: 수집대상
• Job: 동일한 동작을 하는 instance 들에 대한 수집
• 수집시 자동으로 부여되는 labels and time series
• labels
• Job 명칭
• Instace 구분: <host>:<port>
• Honor_labels
• 시간
• up{job=<job-name>, instance=<instance-id>}: 1 (살았니 죽었니)
• scrap_duration_seconds{job=<job-name>, instance=<instance-id>}: 수집에
걸린 시간
• scrap_samples_post_metric_relabeling{job=<job-name>,
instance=<instance-id>}: relabeling 이후 샘플 수
• scrap_samples_scraped{job=<job-name>, instance=<instance-id>}:: 수집된
샘플 수
Service Discovery
• https://prometheus.io/blog/2015/06/01/advanced-service-discovery/
• 동적 타겟 생성
• 지원하는 Service Discovery
• Azure
• Consul
• DNS
• EC2
• OpenStack
• File
• GCE
• Kubernetes
• Marathon
• AirBNB’s Nerve
• Zookeeper Serverset
• Triton
Openstack-helm
• https://docs.openstack.org/openstack-helm/latest/
readme.html#

• The goal of OpenStack-Helm is to provide a collection of
Helm charts that simply, resiliently, and flexibly deploy
OpenStack and related services on Kubernetes

• https://github.com/openstack/openstack-helm

• https://github.com/openstack/openstack-helm-infra
8
II. Helm > What is Helm TBU
https://helm.sh/
Helm은 kubernetes에 어플리케이션을 설치하고 관리하는 툴이다. 마치 운영체제에 어플리케이션을 설치
하고 관리하는 apt, yum, homebrew와 같은 툴의 kubernetes 버전이라 할 수 있다.

Helm can do the following:
• Create new charts(kubernetes packages) from scratch
• Package charts into chart archive (tgz) files
• Interact with chart repositories where charts are stored
• Install and uninstall charts into an existing Kubernetes cluster
• Manage the release cycle of charts that have been installed with Helm
For Helm, there are three important concepts:
1. The chart is a bundle of information necessary to create an instance of a Kubernetes
application.
2. The config contains configuration information that can be merged into a packaged chart
to create a releasable object.
3. A release is a running instance of a chart, combined with a specific config.
What is helm?
The package manager for Kubernetes
Helm helps you manage Kubernetes applications - Helm
Charts helps you define, install, and upgrade even the most
complex Kubernetes application.
Charts are easy to create, version, share, and publish - so
start using Helm and stop the copy-and-paste madness.
Prometheus charts
• Openstack-helm에서 필요한 기반 소프트웨어들: Openstack-helm-infra
• https://github.com/openstack/openstack-helm-infra
• 제공하는 helm-chart
• Prometheus
• Prometheus-alertmanager
• Exporters
• Prometheus-kube-state-metrics
• Prometheus-node-exporter
• Prometheus-openstack-exporter
• Prometheus-process-exporter
• Embedded exporters
• ceph-client, memcached, mariadb, ingress, rabbitmq, calico, fluent-
logging, elasticsearch
Prometheus charts
• 이점
• Helm Chart를 통한 간편한 배포
• Prometheus서버에 exporter들을 등록
• grafana의 데이터 소스로 prometheus를 지정
• grafana내 기본 dashboard 제공
• Ceph관련 3종: Cluster, OSD, Pools
• ElasticSearch
• Kubernetes관련 2종: Capacity Planning, Status
• Nginx: 모든 서비스에서 발생하는 nginx 감시
• Node
• OpenStack관련 2종: 

Metrics, Service
• RabbitMQ
Just git clone & install
• Openstack-helm 관련 공식 repo는 없음 -> 소스를 통한 설치

• git clone https://github.com/openstack/openstack-helm-
infra

• cd openstack-helm-infra

• make helm-toolkit; mkdir prometheus/charts; cp helm-
toolkit.*.tz prometheus/charts

• helm install prometheus …
TACO-scripts
• https://github.com/sktelecom-oslab/taco-scripts
• SKT에서 개발하고 있는 OpenStack 패키지인 TACO의 오픈소스버전
• Hands-on 진행
• OpenStack Days 2017, OpenInfra Days 2018
• OpenStack Summit in Vancouver 2018
• OS만 설치된 서버에 간단하게 Kubernetes cluster와 OpenStack와 제반 소프트웨어를 배포
하는 방법 제공
• 4 core / 8 GB / 200 GB 이상의 BM 또는 VM 준비
• 010~040 스크립트를 차례로 실행
• 스크립트별 수행내역
• 010-init-env.sh: 초기환경설정
• 020-install-k8s.sh: kubernetes cluster 구축 및 초기정보 입력
• 030-install-armada.sh: 배포를 위한 armada(Airship) 구축
• 040-deploy-openstack.sh: OpenStack 컴포넌트 구축
• 041-deploy-mon.sh: Prometheus 구축
Demo
TACO-scripts
• 구축되는 내역
• prometheus서버: 3대 ha구성
• node-exporter
• grafana
• HOST_IP:30009
• admin/password
TACO-scripts
• 더 많은 컴포넌트 설치를 위한 수정방법
• cd ~/apps/armada-manifests/
• vi taco-mon-manifest.yaml
• 최하단의 주석부분 주석(#)삭제
• armada apply taco-mon-manifest.yaml
• 이를 통해 설치되는 내역
• Kubernetes exporter
• Openstack exporter
• Alert manager: 알람에 대한 노티피케이션 설정
Configuration
• 변경포인트
• conf.prometheus.command_lin
e_flags
• 저장 주기 설정
• API를 통한 관리 설정
• conf.prometheus.scrap_configs
• Prometheus 설정파일 전체
• Scrape 대상 및 주기 등
• helm을 통한 구축시
• valueoverride를 통해 재지정
• armada를 통한 구축시
• manifest 파일에서 해당부분 수정
및 apply
• Manifest 파일은 여러 helm chart
를 포함하고 있으므로 depth가 다름
• data.values.conf…
결론
• Prometheus는 kubernetes 모니터링을 위한 최적 솔루션

• OpenStack-helm 프로젝트에서는 kubernetes 감시를 포함한
Prometheus의 주요 부분에 대한 helm chart를 제공

• osh에서 제공된 helm chart를 통해 구성하면 개별 sw가 유기적
으로 결합된 형태의 결과까지 받을 수 있음

• osh기반 prometheus를 간단하게 환경을 구축하고 테스트 해볼수
있는 TACO-scripts가 존재
그리고, 사람뽑아요
• http://careers.sktelecom.com/recruit_user/taleo/index.jsp
Grafana Screen Shot
Grafana Screen Shot
Grafana Screen Shot
Grafana Screen Shot
Grafana Screen Shot
Grafana Screen Shot
Grafana Screen Shot
Grafana Screen Shot
Grafana Screen Shot
Grafana Screen Shot
Grafana Screen Shot
Grafana Screen Shot
Grafana Screen Shot

More Related Content

What's hot (20)

PDF
AWS EMR Cost optimization
SANG WON PARK
 
PDF
Change Data Streaming Patterns for Microservices With Debezium
confluent
 
PDF
Amazon Aurora Deep Dive (김기완) - AWS DB Day
Amazon Web Services Korea
 
PDF
[NDC18] 야생의 땅 듀랑고의 데이터 엔지니어링 이야기: 로그 시스템 구축 경험 공유 (2부)
Hyojun Jeon
 
PDF
있는 그대로 저장하고, 바로 분석 가능한, 새로운 관점의 데이터 애널리틱 플랫폼 - 정세웅 애널리틱 스페셜리스트, AWS
Amazon Web Services Korea
 
PDF
Couchdb + Membase = Couchbase
iammutex
 
PDF
Hadoopの概念と基本的知識
Ken SASAKI
 
PDF
데브시스터즈 데이터 레이크 구축 이야기 : Data Lake architecture case study (박주홍 데이터 분석 및 인프라 팀...
Amazon Web Services Korea
 
PDF
Redpanda and ClickHouse
Altinity Ltd
 
PDF
마이크로서비스를 위한 AWS 아키텍처 패턴 및 모범 사례 - AWS Summit Seoul 2017
Amazon Web Services Korea
 
PDF
쿠키런 1년, 서버개발 분투기
Brian Hong
 
PDF
HAProxy TCP 모드에서 내부 서버로 Source IP 전달 방법
Young D
 
PDF
AWS Black Belt Tech シリーズ 2015 - AWS Data Pipeline
Amazon Web Services Japan
 
PDF
OSMC 2021 | Introduction into OpenSearch
NETWAYS
 
PDF
Best Practices for ETL with Apache NiFi on Kubernetes - Albert Lewandowski, G...
GetInData
 
PDF
Kinesis + Elasticsearchでつくるさいきょうのログ分析基盤
Amazon Web Services Japan
 
PDF
Apache tinkerpopとグラフデータベースの世界
Yuki Morishita
 
PDF
AWS와 부하테스트의 절묘한 만남 :: 김무현 솔루션즈 아키텍트 :: Gaming on AWS 2016
Amazon Web Services Korea
 
PDF
데이터 분석가를 위한 신규 분석 서비스 - 김기영, AWS 분석 솔루션즈 아키텍트 / 변규현, 당근마켓 소프트웨어 엔지니어 :: AWS r...
Amazon Web Services Korea
 
PDF
AWS Aurora 100% 활용하기
I Goo Lee
 
AWS EMR Cost optimization
SANG WON PARK
 
Change Data Streaming Patterns for Microservices With Debezium
confluent
 
Amazon Aurora Deep Dive (김기완) - AWS DB Day
Amazon Web Services Korea
 
[NDC18] 야생의 땅 듀랑고의 데이터 엔지니어링 이야기: 로그 시스템 구축 경험 공유 (2부)
Hyojun Jeon
 
있는 그대로 저장하고, 바로 분석 가능한, 새로운 관점의 데이터 애널리틱 플랫폼 - 정세웅 애널리틱 스페셜리스트, AWS
Amazon Web Services Korea
 
Couchdb + Membase = Couchbase
iammutex
 
Hadoopの概念と基本的知識
Ken SASAKI
 
데브시스터즈 데이터 레이크 구축 이야기 : Data Lake architecture case study (박주홍 데이터 분석 및 인프라 팀...
Amazon Web Services Korea
 
Redpanda and ClickHouse
Altinity Ltd
 
마이크로서비스를 위한 AWS 아키텍처 패턴 및 모범 사례 - AWS Summit Seoul 2017
Amazon Web Services Korea
 
쿠키런 1년, 서버개발 분투기
Brian Hong
 
HAProxy TCP 모드에서 내부 서버로 Source IP 전달 방법
Young D
 
AWS Black Belt Tech シリーズ 2015 - AWS Data Pipeline
Amazon Web Services Japan
 
OSMC 2021 | Introduction into OpenSearch
NETWAYS
 
Best Practices for ETL with Apache NiFi on Kubernetes - Albert Lewandowski, G...
GetInData
 
Kinesis + Elasticsearchでつくるさいきょうのログ分析基盤
Amazon Web Services Japan
 
Apache tinkerpopとグラフデータベースの世界
Yuki Morishita
 
AWS와 부하테스트의 절묘한 만남 :: 김무현 솔루션즈 아키텍트 :: Gaming on AWS 2016
Amazon Web Services Korea
 
데이터 분석가를 위한 신규 분석 서비스 - 김기영, AWS 분석 솔루션즈 아키텍트 / 변규현, 당근마켓 소프트웨어 엔지니어 :: AWS r...
Amazon Web Services Korea
 
AWS Aurora 100% 활용하기
I Goo Lee
 

Similar to Prometheus in openstack-helm (20)

PDF
[OpenStack] 공개 소프트웨어 오픈스택 입문 & 파헤치기
Ian Choi
 
PDF
Toward kubernetes native data center
어형 이
 
PDF
[OpenInfra Days Korea 2018] K8s workshop: with containers & K8s on OpenStack ...
OpenStack Korea Community
 
PDF
세션3_데보션테크데이_gitopsinfra_v1.1.pdf
Jaesuk Ahn
 
PDF
세션2_데보션테크데이_Decapod_v1.2.pdf
Jaesuk Ahn
 
PDF
[오픈테크넷서밋2022] 국내 PaaS(Kubernetes) Best Practice 및 DevOps 환경 구축 사례.pdf
Open Source Consulting
 
PDF
[오픈소스컨설팅]오픈스택에 대하여
Ji-Woong Choi
 
PDF
[OpenInfra Days Korea 2018] (Track 1) TACO (SKT All Container OpenStack): Clo...
OpenStack Korea Community
 
PDF
SKT Openinfra days 2018 Presentation
Jaesuk Ahn
 
PDF
[오픈소스컨설팅] Cloud Big Tech 2024_오픈소스로 맞이하는 클라우드
Open Source Consulting
 
PDF
제2회 난공불락 오픈소스 인프라 세미나 Kubernetes
Tommy Lee
 
PDF
Open infradays 2019_msa_k8s
Hyoungjun Kim
 
PDF
Open stack summit_barcelona_보고서
Yongyoon Shin
 
PDF
[OpenInfra Days Korea 2018] (Track 1) 커뮤니티 오픈스택 패키징 도입 전략 및 구현사례 발표
OpenStack Korea Community
 
PDF
오픈스택 기반 클라우드 서비스 구축 방안 및 사례
SONG INSEOB
 
PDF
Pivotal 101세미나 발표자료 (PAS,PKS)
VMware Tanzu Korea
 
PDF
[오픈소스컨설팅]쿠버네티스를 활용한 개발환경 구축
Ji-Woong Choi
 
PDF
[OpenStack Day in Korea] 15분만에 구축하는 오픈스택 기반 크라우드 솔루션: HP CloudSystem
Sungjin Kang
 
PDF
Ship it! ⛴️ AKS에 스프링 앱 배포하기 at Microsoft x GitHub Roadshow 2023
Ian Choi
 
PDF
Nexclipper_1905_summary_kor
Jinyong Kim
 
[OpenStack] 공개 소프트웨어 오픈스택 입문 & 파헤치기
Ian Choi
 
Toward kubernetes native data center
어형 이
 
[OpenInfra Days Korea 2018] K8s workshop: with containers & K8s on OpenStack ...
OpenStack Korea Community
 
세션3_데보션테크데이_gitopsinfra_v1.1.pdf
Jaesuk Ahn
 
세션2_데보션테크데이_Decapod_v1.2.pdf
Jaesuk Ahn
 
[오픈테크넷서밋2022] 국내 PaaS(Kubernetes) Best Practice 및 DevOps 환경 구축 사례.pdf
Open Source Consulting
 
[오픈소스컨설팅]오픈스택에 대하여
Ji-Woong Choi
 
[OpenInfra Days Korea 2018] (Track 1) TACO (SKT All Container OpenStack): Clo...
OpenStack Korea Community
 
SKT Openinfra days 2018 Presentation
Jaesuk Ahn
 
[오픈소스컨설팅] Cloud Big Tech 2024_오픈소스로 맞이하는 클라우드
Open Source Consulting
 
제2회 난공불락 오픈소스 인프라 세미나 Kubernetes
Tommy Lee
 
Open infradays 2019_msa_k8s
Hyoungjun Kim
 
Open stack summit_barcelona_보고서
Yongyoon Shin
 
[OpenInfra Days Korea 2018] (Track 1) 커뮤니티 오픈스택 패키징 도입 전략 및 구현사례 발표
OpenStack Korea Community
 
오픈스택 기반 클라우드 서비스 구축 방안 및 사례
SONG INSEOB
 
Pivotal 101세미나 발표자료 (PAS,PKS)
VMware Tanzu Korea
 
[오픈소스컨설팅]쿠버네티스를 활용한 개발환경 구축
Ji-Woong Choi
 
[OpenStack Day in Korea] 15분만에 구축하는 오픈스택 기반 크라우드 솔루션: HP CloudSystem
Sungjin Kang
 
Ship it! ⛴️ AKS에 스프링 앱 배포하기 at Microsoft x GitHub Roadshow 2023
Ian Choi
 
Nexclipper_1905_summary_kor
Jinyong Kim
 
Ad

Prometheus in openstack-helm

  • 2. Prometheus • History • SoundCloud라는 곳에서 시작 • 2012년 이후 여러회사에서 참여 • 2016에 Cloud Native Computing Foundation에 합류 (k8s에 이은 두번째 공식 프로젝트) • 주요기능 • 멀티 디맨젼 지원 데이터 모델 (multi-demensional data model) • 유연한 조회언어 (query language) • 분산스토리지에 의존성없음 • http 프로토콜을 사용한 시계열데이터 수집 • Severside pull 데이터 수집 및 push gateway를 통한 Spot data지원 • Service Discovery나 Static 모두 사용가능한 구조 • 그래프나 대시보드를 위한 다양한 모드 제공 • 적용대상 • 순수하게 숫자로 구성된 시계열 데이터 저장에 적합 • Reliable 하지만 성숙도가 부족하여 billing 등 사용 부적합
  • 4. Exporter • https://prometheus.io/docs/instrumenting/exporters/ • 내부의 metrics를 prometheus metrics으로 변환하여 노출(export) • prometheus에서 제공하는 라이브러리 활용가능 • 공식페이지에서 단계별로 exporter들 소개 • official과 단순소개 • sw 자체적으로 expoter를 구현 • Ballerina, Ceph, Collectd, Concourse, • CRG Roller Derby Scoreboard (direct), • Docker Daemon, Doorman (direct), Etcd (direct), • Flink, FreeBSD Kernel, Grafana, Kubernetes (direct), • Linkerd, mgmt, MidoNet, • midonet-kubernetes (direct), Minio, Netdata, • Pretix, Quobyte (direct), RobustIRC, ScyllaDB, • Skipper, SkyDNS (direct), Telegraf, Traefik, • Weave Flux
  • 5. Job&Instance • Instance: 수집대상 • Job: 동일한 동작을 하는 instance 들에 대한 수집 • 수집시 자동으로 부여되는 labels and time series • labels • Job 명칭 • Instace 구분: <host>:<port> • Honor_labels • 시간 • up{job=<job-name>, instance=<instance-id>}: 1 (살았니 죽었니) • scrap_duration_seconds{job=<job-name>, instance=<instance-id>}: 수집에 걸린 시간 • scrap_samples_post_metric_relabeling{job=<job-name>, instance=<instance-id>}: relabeling 이후 샘플 수 • scrap_samples_scraped{job=<job-name>, instance=<instance-id>}:: 수집된 샘플 수
  • 6. Service Discovery • https://prometheus.io/blog/2015/06/01/advanced-service-discovery/ • 동적 타겟 생성 • 지원하는 Service Discovery • Azure • Consul • DNS • EC2 • OpenStack • File • GCE • Kubernetes • Marathon • AirBNB’s Nerve • Zookeeper Serverset • Triton
  • 7. Openstack-helm • https://docs.openstack.org/openstack-helm/latest/ readme.html# • The goal of OpenStack-Helm is to provide a collection of Helm charts that simply, resiliently, and flexibly deploy OpenStack and related services on Kubernetes • https://github.com/openstack/openstack-helm • https://github.com/openstack/openstack-helm-infra
  • 8. 8 II. Helm > What is Helm TBU https://helm.sh/ Helm은 kubernetes에 어플리케이션을 설치하고 관리하는 툴이다. 마치 운영체제에 어플리케이션을 설치 하고 관리하는 apt, yum, homebrew와 같은 툴의 kubernetes 버전이라 할 수 있다. Helm can do the following: • Create new charts(kubernetes packages) from scratch • Package charts into chart archive (tgz) files • Interact with chart repositories where charts are stored • Install and uninstall charts into an existing Kubernetes cluster • Manage the release cycle of charts that have been installed with Helm For Helm, there are three important concepts: 1. The chart is a bundle of information necessary to create an instance of a Kubernetes application. 2. The config contains configuration information that can be merged into a packaged chart to create a releasable object. 3. A release is a running instance of a chart, combined with a specific config.
  • 9. What is helm? The package manager for Kubernetes Helm helps you manage Kubernetes applications - Helm Charts helps you define, install, and upgrade even the most complex Kubernetes application. Charts are easy to create, version, share, and publish - so start using Helm and stop the copy-and-paste madness.
  • 10. Prometheus charts • Openstack-helm에서 필요한 기반 소프트웨어들: Openstack-helm-infra • https://github.com/openstack/openstack-helm-infra • 제공하는 helm-chart • Prometheus • Prometheus-alertmanager • Exporters • Prometheus-kube-state-metrics • Prometheus-node-exporter • Prometheus-openstack-exporter • Prometheus-process-exporter • Embedded exporters • ceph-client, memcached, mariadb, ingress, rabbitmq, calico, fluent- logging, elasticsearch
  • 11. Prometheus charts • 이점 • Helm Chart를 통한 간편한 배포 • Prometheus서버에 exporter들을 등록 • grafana의 데이터 소스로 prometheus를 지정 • grafana내 기본 dashboard 제공 • Ceph관련 3종: Cluster, OSD, Pools • ElasticSearch • Kubernetes관련 2종: Capacity Planning, Status • Nginx: 모든 서비스에서 발생하는 nginx 감시 • Node • OpenStack관련 2종: 
 Metrics, Service • RabbitMQ
  • 12. Just git clone & install • Openstack-helm 관련 공식 repo는 없음 -> 소스를 통한 설치 • git clone https://github.com/openstack/openstack-helm- infra • cd openstack-helm-infra • make helm-toolkit; mkdir prometheus/charts; cp helm- toolkit.*.tz prometheus/charts • helm install prometheus …
  • 13. TACO-scripts • https://github.com/sktelecom-oslab/taco-scripts • SKT에서 개발하고 있는 OpenStack 패키지인 TACO의 오픈소스버전 • Hands-on 진행 • OpenStack Days 2017, OpenInfra Days 2018 • OpenStack Summit in Vancouver 2018 • OS만 설치된 서버에 간단하게 Kubernetes cluster와 OpenStack와 제반 소프트웨어를 배포 하는 방법 제공 • 4 core / 8 GB / 200 GB 이상의 BM 또는 VM 준비 • 010~040 스크립트를 차례로 실행 • 스크립트별 수행내역 • 010-init-env.sh: 초기환경설정 • 020-install-k8s.sh: kubernetes cluster 구축 및 초기정보 입력 • 030-install-armada.sh: 배포를 위한 armada(Airship) 구축 • 040-deploy-openstack.sh: OpenStack 컴포넌트 구축 • 041-deploy-mon.sh: Prometheus 구축
  • 14. Demo
  • 15. TACO-scripts • 구축되는 내역 • prometheus서버: 3대 ha구성 • node-exporter • grafana • HOST_IP:30009 • admin/password
  • 16. TACO-scripts • 더 많은 컴포넌트 설치를 위한 수정방법 • cd ~/apps/armada-manifests/ • vi taco-mon-manifest.yaml • 최하단의 주석부분 주석(#)삭제 • armada apply taco-mon-manifest.yaml • 이를 통해 설치되는 내역 • Kubernetes exporter • Openstack exporter • Alert manager: 알람에 대한 노티피케이션 설정
  • 17. Configuration • 변경포인트 • conf.prometheus.command_lin e_flags • 저장 주기 설정 • API를 통한 관리 설정 • conf.prometheus.scrap_configs • Prometheus 설정파일 전체 • Scrape 대상 및 주기 등 • helm을 통한 구축시 • valueoverride를 통해 재지정 • armada를 통한 구축시 • manifest 파일에서 해당부분 수정 및 apply • Manifest 파일은 여러 helm chart 를 포함하고 있으므로 depth가 다름 • data.values.conf…
  • 18. 결론 • Prometheus는 kubernetes 모니터링을 위한 최적 솔루션 • OpenStack-helm 프로젝트에서는 kubernetes 감시를 포함한 Prometheus의 주요 부분에 대한 helm chart를 제공 • osh에서 제공된 helm chart를 통해 구성하면 개별 sw가 유기적 으로 결합된 형태의 결과까지 받을 수 있음 • osh기반 prometheus를 간단하게 환경을 구축하고 테스트 해볼수 있는 TACO-scripts가 존재