[BlackBox项目]终于找到了第一个客户了,迈出第一步

        觉得有点不可思议的感觉,竟然卖出去了,就连我这个做的人都不知道到底有没有客户会用,我的搭档竟然找到了客户。还有更不可思议的事情,这个项目是我和我高中老师一起做的,第一个用户竟然是我的初中,世界真实奇怪啊。
        不管怎么样,还是值得庆祝的一件事情,毕竟是自己花了不少心血做出来的东西,看到有人使用还是觉得很高兴,希望他们有好的反馈。
        期待中。。。希望BlackBox有好的前途!

blackbox_exporter 是一个 Prometheus 监控工具,专门用于对黑盒系统进行监控。以下是一个使用 blackbox_exporter 监控 HTTP 服务的示例: 1. 安装 blackbox_exporter: ``` $ wget https://github.com/prometheus/blackbox_exporter/releases/download/v0.18.0/blackbox_exporter-0.18.0.linux-amd64.tar.gz $ tar xvfz blackbox_exporter-0.18.0.linux-amd64.tar.gz $ cd blackbox_exporter-0.18.0.linux-amd64 $ sudo mv blackbox_exporter /usr/local/bin/ ``` 2. 配置 blackbox_exporter: 创建一个配置文件,例如 `blackbox.yml`: ``` modules: http_2xx: prober: http timeout: 5s http: valid_http_versions: ["HTTP/1.1", "HTTP/2"] method: GET no_follow_redirects: false fail_if_ssl: false scrape_configs: - job_name: http metrics_path: /probe params: module: [http_2xx] static_configs: - targets: - http://www.example.com - https://www.example.com relabel_configs: - source_labels: [__address__] target_label: __param_target - source_labels: [__param_target] target_label: instance - target_label: __address__ replacement: localhost:9115 ``` 3. 启动 blackbox_exporter: ``` $ blackbox_exporter --config.file=blackbox.yml ``` 4. 配置 Prometheus: 在 Prometheus 的配置文件中添加如下内容: ``` scrape_configs: - job_name: blackbox metrics_path: /probe params: module: [http_2xx] static_configs: - targets: - http://localhost:9115 relabel_configs: - source_labels: [__address__] target_label: __param_target - source_labels: [__param_module] target_label: __metrics_path__ replacement: /probe ``` 这样,Prometheus 就可以定期从 blackbox_exporter 获取监控
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值