Implementing Prometheus Exporter for Fluentbit

Background Fluent-bit is a great tool for logging and monitoring, many teams are using it to collect metrics and logs. Prometheus is also a popular tool for metrics analysis, but if you want to output Fluent-bit data to Prometheus, the only way is to use the node-exporter input plugin, which has fixed metrics and data format. In our case, we want to export specific input data into Prometheus, therefore we have to implement our Prometheus exporter in a customized Fluent-bit output plugin.


本文内容摘录自 Technical Writing (谷歌技术文档写作指南)的第一部分。 本文适用于想要提高技术文档写作、技术领域日常沟通能力的读者,对于一些商务的、非文学性质


把那部手机丢进海里,让它陷入深处,没人能寻到。 看完《分手的决心》,我决心水一篇。今天跟大家一起分析分析电影里的细节。 影片开头的支线情节 电影的

3 Ways To Access Host System In Docker Container

When we are using Docker, we always access the host system by mounting the host folders as a volume. But sometimes we can not do that due to deployment reasons or security limits. There are three workaround ways to access the host system. 1. Mount docker.socks into container docker.socks is a Unix socket that Docker Engine API listens on. You can mount /var/run/docker.socks file to your container and call Docker Engine API through this socket.


早起又随性写点东西。 最近朋友圈被转载很多的一篇文章,来自 GQ 实验室对重轻老师的采访。里面有一段关于品味的叙述: ……审美的底层逻辑是能感受到那些

Notion As A Dashboard

I have built a Chrome extension 无用主意 during the last month. The backend service implemented by Flask is using Notion as a dashboard. Notion API If you want your service to connect to Notion, you have to create a Notion integration on this page. Afterward, you have to share a specific Notion page to the integration you just created. Now, you can call Notion API to visit

Building A File Parser

Last week, after reading this article - How to Write a Lexer in Go, I found that it is not so difficult to design a configuration file parser by this article’s mind-set. Then I tried to write a fluent-bit configuration parser, finally got this Fluent-Bit configuration parser for Golang. In this article, I want to introduce how to parse Fluent-bit configuration .conf file, and the thinking behind it. Fluent-bit configuration format and schema 1 2 3 4 5 6 [FIRST_SECTION] Key1 some value Key2 another value [SECOND_SECTION] KeyN 3.