Skip to content
This repository was archived by the owner on Jul 7, 2022. It is now read-only.

Commit ca0b285

Browse files
committed
add cli commands
1 parent ba54fa7 commit ca0b285

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ scrape_configs:
9898

9999
In the above configuration file we have mentioned the scrape_interval i.e how frequently you want prometheus to scrape the metrics. We have added scrape_configs which has a name and target to scrape the metrics from. Prometheus by default listens on port 9090. So I have added it.
100100

101+
> prometheus --config.file=prometheus.yml
102+
101103
<p align="center">
102104
<img width="580" height="400" src="https://github.com/yolossn/Prometheus-Basics/blob/master/images/prometheus1.gif">
103105
</p>
@@ -129,6 +131,9 @@ scrape_configs:
129131
static_configs:
130132
- targets: ["localhost:9100"]
131133
```
134+
135+
> prometheus --config.file=node_exporter.yml
136+
132137
<p align="center">
133138
<img width="580" height="400" src="https://github.com/yolossn/Prometheus-Basics/blob/master/images/prometheus2.gif">
134139
</p>
@@ -377,6 +382,8 @@ scrape_configs:
377382
- targets: ["localhost:8090"]
378383
```
379384

385+
> prometheus --config.file=simple_server.yml
386+
380387
<p align="center">
381388
<img width="580" height="400" src="https://github.com/yolossn/Prometheus-Basics/blob/master/images/prometheus3.gif">
382389
</p>

0 commit comments

Comments
 (0)