标签:invalid atom mkdir key comm dead 依赖 删除 -o
网上已经有了关于sql server prometheus 的exporter(同时也是官方推荐的)但是时间很长了,同时好多依赖没有更新了
同时测试发现了一个bug,所以fork了一个版本的
https://github.com/rongfengliang/prometheus-mssql-exporter
const mssql_deadlocks = Number.parseFloat(rows[0][0].value);
RequestError {message: "Invalid column name ‘io_stall_queued_write_ms‘.", code: "EREQUEST", number: 207, state: 1, class: 16, …}
FROM node:12.16.1-alpine
LABEL EMAIL="dalongrong"
RUN yarn config set registry https://registry.npm.taobao.org
# Create a directory where our app will be placed
RUN mkdir -p /usr/src/app
?
# Change directory so that our commands run inside this new directory
WORKDIR /usr/src/app
?
# Copy dependency definitions
COPY package.json *.js /usr/src/app/
?
# Install dependecies
RUN yarn --production
?
# Expose the port the app runs in
EXPOSE 4000
?
# Serve the app
CMD ["node", "index.js"]
docker run -e SERVER=192.168.56.101 -e ENCRYPT=false -e USERNAME=SA -e PASSWORD=qkD4x3yy -e DEBUG=app -p 4000:4000 --name prometheus-mssql-exporter dalongrong/prometheus-mssql-exporter
sql server 与myql ,pg, redis,相比暂时还没有比较完备的metrics 说明,所以后期计划参考行业的一些最佳实践,添加其他的一些metrics
同时也会参考who_is_active的提供的一些监控方案,将类似的metrics 暴露处理,同时pmm也是一个值得参考的业界成熟方案
https://github.com/awaragi/prometheus-mssql-exporter
https://github.com/zhengwen09/database-profiler
https://github.com/tediousjs/tedious
https://github.com/siimon/prom-client
https://github.com/rongfengliang/prometheus-mssql-exporter
标签:invalid atom mkdir key comm dead 依赖 删除 -o
原文地址:https://www.cnblogs.com/rongfengliang/p/12767914.html