- https://www.freeformatter.com/html-escape.html
블로그 글 쓸때 markdown 안에서 html을 쓰면 레이아웃이 망가지는 상황이 발생.
이를 해결 하기 위해 code block안에 항목을 넣을 때 html escape를 해서 진행
특정 서버의 redis에 있는 값으로 계산되는 항목을 지속적으로 모니터링 해야 하는 상황이 있어서, 어떻게 할까 하다가, 이전에 구축해놓은 프로메테우스-그래파나 서버에서 metiric을 땡겨가는 것이 더 좋을 것 같아서 검색해 보았다. 파이썬 프로메테우스 클라이언트가 존재 하더라! [https://github.com/prometheus/client_python](https://github.com/prometheus/client_python) ```jsx pip install prometheus_client ``` ```jsx from prometheus_client import start_http_server, Summary import random import time import redis from prometheus_client import Gauge # Create a metric to track time spent and requests made. REQUEST_TIME = Summary('request_processing_seconds', 'Time spent processing request') # Decorate function with metric. client_count = Gauge('client_count', 'number of client that connected to server') client_bandwidth = Gauge('client_bandwidth', 'assigned bandwidth of server with current clients') @REQUEST_TIME.time() def process_request(): """A dummy function that takes some time.""" client_count.set(4.2) # TODO...
일단 이전 글들이 너무 오래된 주제이다보니, 일단 숨김 처리 함. 이전 주제들에 묶여서 블로그에 새 글을 쓰기도 꺼려지는 것도 한원인이었음. 여기에 새 글을 안써온 이유중에 하나는 mark down 같은게 쓰기 어려운 것도 한 원인 이었음. blogger 에서 markdown을 쓸수 있게 해주는 방법을 발견함 [https://github.com/cs905s/md-in-blogger](https://github.com/cs905s/md-in-blogger) 뭔가 조금씩 쓰다보면 나에게 도움이 되지 않을까?
댓글
댓글 쓰기