Commit 6f96edd59d

6f96edd59d40eac36049006ae997d1fe68b02168

parent: e3769f6a91

Unsigned

cmc <hello@cleberg.net> · 2024-09-20 19:01 UTC

fix broken src block and src titles in latest post

Layout: unified · split

content/blog/2024-09-19-prometheus-grafana-cloud.org → content/blog/2024-09-20-prometheus-grafana-cloud.org renamed +7 −7
@@ -66,7 +66,7 @@ containers that will work together to send metrics to Grafana.
6666
6767Let's start by creating a working directory.
6868
69#+begin_src shell
69#+begin_src sh
7070mkdir ~/prometheus && \
7171cd ~/prometheus && \
7272nano compose.yml
@@ -135,7 +135,7 @@ services:
135135 - monitoring
136136#+end_src
137137
138#+begin_src shell
138#+begin_src sh
139139sudo docker compose up -d
140140#+end_src
141141
@@ -146,7 +146,7 @@ local firewall with =sudo ufw allow 8080=.
146146
147147Next, let's create a =prometheus.yml= configuration file.
148148
149,#+begin_src sh
149#+begin_src sh
150150nano prometheus.yml
151151#+end_src
152152
@@ -186,7 +186,7 @@ need to modify the Nginx configuration on the host.
186186More specifically, we need to create a path for the =stub_status= to be returned
187187when we query port 8080 on our localhost.
188188
189#+begin_src shell
189#+begin_src sh
190190sudo nano /etc/nginx/conf.d/default.conf
191191#+end_src
192192
@@ -201,7 +201,7 @@ server {
201201}
202202#+end_src
203203
204#+begin_src shell
204#+begin_src sh
205205sudo systemctl restart nginx.service
206206#+end_src
207207
@@ -213,7 +213,7 @@ areas to check and see if any obvious errors exist.
213213Nginx: Curl the stub_status from the Nginx web server on the host machine to see
214214if Nginx and stub_status are working properly.
215215
216#+begin_src shell
216#+begin_src sh
217217curl http://127.0.0.1:8080/stub_status
218218
219219# EXPECTED RESULTS:
@@ -251,7 +251,7 @@ go_gc_duration_seconds{quantile="0.5"} 4.8531e-05
251251
252252Node-Exporter: Curl the exporter node machine metrics.
253253
254#+begin_src shell
254#+begin_src sh
255255# Curl the exported Node metrics
256256curl 192.168.64.3:9100/metrics
257257