From d4c9037bb026ed4e56ae0a9af12c2ea32715b583 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 11 Feb 2023 08:57:28 +0000 Subject: [PATCH 1/4] fix: Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-DEBIAN11-DPKG-2847942 - https://snyk.io/vuln/SNYK-DEBIAN11-GZIP-2444256 - https://snyk.io/vuln/SNYK-DEBIAN11-LIBTASN16-3061097 - https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-2807596 - https://snyk.io/vuln/SNYK-DEBIAN11-OPENSSL-2933518 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 676ba12..b38350f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.11.0a7-slim +FROM python:3.12.0a5-slim EXPOSE 9999 From a40561460c314552a1acb31036c1ab9f3a987563 Mon Sep 17 00:00:00 2001 From: Justin Paul Date: Mon, 6 Mar 2023 07:05:10 -0500 Subject: [PATCH 2/4] Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 939f3bb..79f15c4 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,13 @@ In this example, i used API to get Bitcoin price in Dollar and Euro, import it i 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 + git clone https://github.com/recklessop/Zerto_Exporter.git ``` Go to the project directory: ```bash - cd Custom_Prometheus_Node_Exporter-in-Python + cd Zerto_Exporter ``` Build image and start the container: @@ -39,7 +39,8 @@ Add this part at the end of the configuration of your Prometheus (prometheus.yam ``` -## Add Grafana dashboards using imported items +## Forked from -![App Screenshot](https://raw.githubusercontent.com/hmdhszd/Custom_Prometheus_Node_Exporter-in-Python/master/Screenshot%20from%20python%20node%20exporter.png) +Huge shout out to hmdhszd for the framework that started this project. You can find his non-zerto version of a Python Prometheus Exporter (here.)[ +https://github.com/hmdhszd/Custom_Prometheus_Node_Exporter-in-Python] From 9f809a5321ae340647ee02af8ebd8105f9d98607 Mon Sep 17 00:00:00 2001 From: Justin Paul Date: Mon, 6 Mar 2023 07:05:29 -0500 Subject: [PATCH 3/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 79f15c4..fb4e766 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,6 @@ Add this part at the end of the configuration of your Prometheus (prometheus.yam ## Forked from -Huge shout out to hmdhszd for the framework that started this project. You can find his non-zerto version of a Python Prometheus Exporter (here.)[ -https://github.com/hmdhszd/Custom_Prometheus_Node_Exporter-in-Python] +Huge shout out to hmdhszd for the framework that started this project. You can find his non-zerto version of a Python Prometheus Exporter [here.]( +https://github.com/hmdhszd/Custom_Prometheus_Node_Exporter-in-Python) From f528dcff44750223427b20b18fd8d7ff9efc9d99 Mon Sep 17 00:00:00 2001 From: Justin Paul Date: Mon, 6 Mar 2023 07:07:51 -0500 Subject: [PATCH 4/4] Update README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index fb4e766..87ef8a1 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ ## About the app -In one particilar project, i had to import some key/value data to Prometheus. So i have decided to create my custom-built Node Exporter in Python, then dockerize it and share it in my Github account. - -In this example, i used API to get Bitcoin price in Dollar and Euro, import it in the Prometheus and visualize it using Grafana. You can import any data using your own Python scripts. +This Python App will export Zerto API data from the new ZVM appliance in prometheus format. It has several different threads that each scrape different parts of the ZVM API. To visualize the data in Grafana you will need to scrape this app with Prometheus and then create dashboards using Grafana. ## Run Program