From 7a52e7910811a9ffc2e6ed09759bfd440e1f416e Mon Sep 17 00:00:00 2001 From: Hamid Hosseinzadeh <80152356+hmdhszd@users.noreply.github.com> Date: Thu, 27 Jan 2022 11:29:01 +0330 Subject: [PATCH] Update README.md --- README.md | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 46532eb..7d1442b 100644 --- a/README.md +++ b/README.md @@ -1 +1,39 @@ -# Custom_Prometheus_Node_Exporter-in-Python \ No newline at end of file + +## Run Program + +Login to the server where you want to run this exporter and clone the project: + +```bash + git clone https://github.com/hmdhszd/Custom_Prometheus_Node_Exporter-in-Python.git +``` + +Go to the project directory: + +```bash + cd Custom_Prometheus_Node_Exporter-in-Python +``` + +Build image and start the container: + +```bash + docker-compose up -d --build --force-recreate +``` + + + +## Add the exporter to Prometheus + +Add this part at the end of the configuration of your Prometheus (prometheus.yaml): + +```bash + - job_name: python-exporter + metrics_path: /metrics.txt + static_configs: + - targets: [':9999'] +``` + + +## Add Grafana dashboards using imported items + +![App Screenshot](https://raw.githubusercontent.com/hmdhszd/Custom_Prometheus_Node_Exporter-in-Python/master/Screenshot%20from%20python%20node%20exporter.png) +