본문 바로가기
728x90
반응형

개발49

org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'text/plain;charset=UTF-8' not supported 1.문제 코드 ObjectMapper objectMapper = new ObjectMapper(); String url = "http://주소.com"; // 2. set url of request HttpPost post = new HttpPost(url); // 3. set body if(body != null){ StringEntity entity = new StringEntity(objectMapper.writeValueAsString(body)); post.setEntity(entity); } // set headers as json Map headers = new HashMap(); // set headers headers.forEach((key, value)->{ log.info("heade.. 2021. 4. 22.
Kubernetes(쿠버네티스) vs minkube(미니쿠브) 쿠버네티스는 Docker container를 묶음(cluster)을 관리하고, 성능을 조율하고(orchestrate), 업무량을 조율하기 위해 스케쥴링을 다루는 일을 하는 오픈 소스 시스템입니다. 미니쿠브는 다음과 같은 역할을 합니다. - 로컬에서 쿠버네티스를 다루기 - 로드 밸런싱 - 다중 클러스터 Kubernetes vs minikube | What are the differences? (stackshare.io) Kubernetes vs minikube | What are the differences? Kubernetes - Manage a cluster of Linux containers as a single system to accelerate Dev and simplify Ops. miniku.. 2021. 4. 20.
프로메테우스, 그라파나 windows에서 로컬 개발하기 - Docker 1. 자바 서버 build.gradle .. dependencies { implementation 'org.springframework.boot:spring-boot-starter-actuator' implementation 'io.micrometer:micrometer-registry-prometheus' ... } application.yaml server: port: 8000 management: endpoints: web: exposure: include: health, info, prometheus 2. 설정 yml 파일 configs/alertmanager.yml global: resolve_timeout: 1m slack_api_url: 'https://hooks.slack.com/servi.. 2021. 4. 19.
프로메테우스 관련 시작 Configure Prometheus and Grafana in Dockers | by Ravindu Sirimanna | Aeturnum | Medium 2021. 4. 16.
728x90