신규 설치 error

Prometheus 2024. 4. 18. 15:28

1] cadvisor나  node-exporter에서는   /var/lib/docker/containers/   
   못 가지고 오는점 순수 HW 모니터링만 가능한듯
   (promtail, loki로 해결)

2]  etc 경로 못찾는 점 파일을 디렉토리로 인식

failed parsing config: /etc/loki/local-config.yaml does not exist, set config.file for custom config path
경로 못찾는 문제는   loki  promtail 2.9.2로 업그레이드


3] 데이터가 보여지는 상태에서     그라파나에 연결 가능한줄 이해  
  예전에는 그랬슴  그라파나에서 loki로 바로 3100포트 연결하니 보임
   
 예전 유지보수 하던건   중간에   prometheus가 수집해서 보여주는 형태
   [먼지모를 Agent] -> grok -> 프로메테우스 -> 그라파나      

  지금 신규 서비스는  
   promtail -> loki -> 그라파나 

 

 

 

'Prometheus' 카테고리의 다른 글

Grafana 기초1  (0) 2021.11.10
블로그 이미지

iesay

,

repo 추가 


sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'


wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -


업데이트 

sudo apt update

설치


sudo apt install postgresql -y



root@server:~# psql --version
psql (PostgreSQL) 16.2 (Ubuntu 16.2-1.pgdg20.04+1)

콘솔 접속
sudo -u postgres psql



데이터베이스 생성 
postgres=# CREATE DATABASE guru99;
CREATE DATABASE
postgres=#
postgres=#

권한 부여


postgres=# GRANT ALL PRIVILEGES ON DATABASE guru99 TO tkpark;
GRANT


postgres=# ALTER USER tkpark PASSWORD 'tkpark123';
ALTER ROLE


시클릿 메니저 값 변경됨

psql --host=호스트 --port=5432 --username=dbadmin --dbname=postgres
패스워드 나중에 입력

Password for user dbadmin:
psql (15.6, server 14.10)



postgres=> CREATE USER 계정;
CREATE ROLE



postgres=> GRANT ALL PRIVILEGES ON DATABASE 디비명 TO 계정;
GRANT


postgres=> alter user 계정 with encrypted password '패스워드';
ALTER ROLE




'시스템' 카테고리의 다른 글

AWS DMS Postgresql 마이그레이션  (0) 2024.03.25
AWS 보안성 향상  (0) 2024.02.13
AWS 요금 절약 방법  (0) 2024.02.07
github runner group  (0) 2024.02.02
텔레포트 ec2 연동  (0) 2023.09.05
블로그 이미지

iesay

,

'시스템' 카테고리의 다른 글

ubuntu postgresql 사용법 계정생성  (0) 2024.04.16
AWS 보안성 향상  (0) 2024.02.13
AWS 요금 절약 방법  (0) 2024.02.07
github runner group  (0) 2024.02.02
텔레포트 ec2 연동  (0) 2023.09.05
블로그 이미지

iesay

,