<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>prometheus on Tony Wu&#39;s Blog</title>
    <link>https://tonywu1995.github.io/tags/prometheus/</link>
    <description>Recent content in prometheus on Tony Wu&#39;s Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <lastBuildDate>Sun, 03 Oct 2021 16:25:57 +0800</lastBuildDate><atom:link href="https://tonywu1995.github.io/tags/prometheus/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Node Exporter建立</title>
      <link>https://tonywu1995.github.io/prometheus/node-exporter/</link>
      <pubDate>Sun, 03 Oct 2021 16:25:57 +0800</pubDate>
      
      <guid>https://tonywu1995.github.io/prometheus/node-exporter/</guid>
      <description>前言 node exporter是用來監控Linux vm的一個Prometheus Client 提供: CPU 使用率、硬碟使用率&amp;hellip; metrics 步驟 安裝Node Exporter在Ubuntu20.04 #!/bin/bash version=&amp;#34;${VERSION:-1.2.2}&amp;#34; arch=&amp;#34;${ARCH:-linux-amd64}&amp;#34; bin_dir=&amp;#34;${BIN_DIR:-/usr/local/bin}&amp;#34; wget &amp;#34;https://github.com/prometheus/node_exporter/releases/download/v$version/node_exporter-$version.$arch.tar.gz&amp;#34; \ -O /tmp/node_exporter.tar.gz mkdir -p /tmp/node_exporter cd /tmp || { echo &amp;#34;ERROR! No /tmp found..&amp;#34;; exit 1; } tar xfz /tmp/node_exporter.tar.gz -C /tmp/node_exporter || { echo &amp;#34;ERROR! Extracting the node_exporter tar&amp;#34;; exit 1; } sudo cp &amp;#34;/tmp/node_exporter/node_exporter-$version.$arch/node_exporter&amp;#34; &amp;#34;$bin_dir&amp;#34; chown root:staff &amp;#34;$bin_dir/node_exporter&amp;#34; sudo cat &amp;lt;&amp;lt;EOF &amp;gt; /etc/systemd/system/node_exporter.service [Unit] Description=Node Exporter After=network.target [Service] Type=simple ExecStart=/usr/local/bin/node_exporter [Install] WantedBy=multi-user.</description>
    </item>
    
    <item>
      <title>Spring Boot監控(中)</title>
      <link>https://tonywu1995.github.io/java/spring-boot-monitor-2/</link>
      <pubDate>Sun, 03 Oct 2021 16:25:57 +0800</pubDate>
      
      <guid>https://tonywu1995.github.io/java/spring-boot-monitor-2/</guid>
      <description>步驟 安裝Prometheus/Grafana 設定Prometheus設定向我們spring boot application位置 # my global configglobal:scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.scrape_configs:# The job name is added as a label `job=&amp;lt;job_name&amp;gt;` to any timeseries scraped from this config.- job_name: &amp;#39;My-Spring-Boot-Application&amp;#39;# Override the global default and scrape targets from this job every 5 seconds.</description>
    </item>
    
  </channel>
</rss>
