This commit is contained in:
Tushar D 2021-03-04 02:46:55 -08:00
Родитель 1831ba3d41
Коммит 2ccecdd9b2
2 изменённых файлов: 10 добавлений и 10 удалений

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 1.4 MiB

После

Ширина:  |  Высота:  |  Размер: 1.4 MiB

Просмотреть файл

@ -1,4 +1,4 @@
# MiFi : A Monitoring Tool for Apache NiFi
# MonitoFi : A Monitoring Tool for Apache NiFi
One Place for monitoring Health and Performance of your Apache NiFi Cluster!
@ -21,17 +21,17 @@
Both Options Support Sending Timely Alerts/Notifications to Microsoft Teams or Email via Grafana whenever anomalies in cluster or execution of flow are detected.
### On Prem :
MiFi uses InfluxDB for storing the monitoring data locally and uses Grafana to plot various charts & queries in Dashboards & Send Timely Alerts incase anomalies in cluster or execution of flow are detected. These queries can be easily configured based on your needs.
MonitoFi uses InfluxDB for storing the monitoring data locally and uses Grafana to plot various charts & queries in Dashboards & Send Timely Alerts incase anomalies in cluster or execution of flow are detected. These queries can be easily configured based on your needs.
### Azure Application Insights:
Using a Simple Instrumentation Key Received when creating an Application Insights Resource in Azure, all the MiFi monitoring data can be pushed to Azure. This data can be viewed using Grafana by importing included AIDashboard. Queries for data in Application Insights are written using Kusto Query Language and are easy to modify.
Using a Simple Instrumentation Key Received when creating an Application Insights Resource in Azure, all the MonitoFi monitoring data can be pushed to Azure. This data can be viewed using Grafana by importing included AIDashboard. Queries for data in Application Insights are written using Kusto Query Language and are easy to modify.
Visit https://github.com/tushardhadiwal/docker-influxdb-grafana for Grafana And InfludDB Support.\
Visit https://github.com/microsoft/MiFi for MiFi Source Code.
Visit https://github.com/microsoft/MiFi for MonitoFi Source Code.
## Architecture
![](./Docs/MiFiArchitectureDiagram.png)
![](./Docs/MonitoFiArchitectureDiagram.png)
#### Quick Start
@ -39,7 +39,7 @@ Run following commands on machine which has access to NiFi cluster:
```sh
git clone git@github.com:microsoft/MiFi.git
```
Fully Automated Script will take care of running InfluxDB & Grafana container , configuring datasources in grafana, importing pre included dashboards in grafana, Adding notification channels if needed, Running MiFi container against your cluster. Please set variables at the top of the script to desired state.
Fully Automated Script will take care of running InfluxDB & Grafana container , configuring datasources in grafana, importing pre included dashboards in grafana, Adding notification channels if needed, Running MonitoFi container against your cluster. Please set variables at the top of the script to desired state.
```sh
./deploy.sh
```
@ -54,7 +54,7 @@ Password: root
To run NiFi Monitor along with InfluxDb & Grafana:
Run this container for getting a preconfigured InfluxDB and Grafana Instance that MiFi can push data to.
Run this container for getting a preconfigured InfluxDB and Grafana Instance that MonitoFi can push data to.
```sh
docker run -d \
@ -80,7 +80,7 @@ Password: root
Pleae Refer to deploy.sh script for adding various datasources and configurations related to grafana with curl commands.
Run this command to run MiFi against your NiFi Cluster :
Run this command to run MonitoFi against your NiFi Cluster :
```sh
docker run \
@ -94,14 +94,14 @@ docker run \
dtushar/mifi:1.0
```
If your NiFi Cluster is SECURE and supports login via certificate then please add the following to the above command, this will mount the certificate into MiFi Container:
If your NiFi Cluster is SECURE and supports login via certificate then please add the following to the above command, this will mount the certificate into MonitoFi Container:
```sh
-e SECURE=True \
-v $(pwd)/keystore.pkcs12:/opt/nifimonitor/cert.pkcs12 \
-e CERT_PASS="PasswordForCertificate" \
```
* To run MiFi along with InfluxDb & Grafana & Push Monitoring Data to Application Insights, Please create a Application Insights Resource, and provide the Instrumentation Key while running the container.
* To run MonitoFi along with InfluxDb & Grafana & Push Monitoring Data to Application Insights, Please create a Application Insights Resource, and provide the Instrumentation Key while running the container.
* An Azure Log Analytics Dashboard can be created using similar KQL Queries and Using Grafana can be skipped if desired. Add the following lines to above command:
```sh