This repository has been archived by the owner on Sep 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added documentation and extended readme
- Loading branch information
Matthias Jörg
committed
Jan 12, 2019
1 parent
ccd4e94
commit 97c7c8c
Showing
11 changed files
with
63 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
FROM maven:3.5.3-jdk-8-slim | ||
FROM apache/nifi:1.8.0 | ||
|
||
COPY ./nifi-prometheus-nar /app/nifi-prometheus-nar | ||
COPY ./nifi-prometheus-reporting-task /app/nifi-prometheus-reporting-task | ||
COPY pom.xml /app | ||
WORKDIR /app | ||
ADD https://github.com/mkjoerg/nifi-prometheus-reporter/releases/download/1.8.0/nifi-prometheus-nar-1.8.0.nar ${NIFI_BASE_DIR}/nifi-current/lib | ||
|
||
USER root | ||
|
||
# Setup NiFi user and create necessary directories | ||
RUN chown -R nifi:nifi ${NIFI_BASE_DIR}/nifi-current/lib | ||
|
||
USER nifi | ||
|
||
RUN ls -l | ||
RUN mvn clean install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Configuration | ||
|
||
Open your Nifi under http://localhost:8080/nifi and go to the menu in the upper right: | ||
![Controller Settings](./img/00-controller-settings.png) | ||
|
||
Go to Controller Settings and add a new reporting task: | ||
![Add Reporting Task](./img/01-add-reporting-task.png) | ||
|
||
After the task is added, it has to be configured: | ||
![Configure Reporting Task](./img/02-configure-reporting-task.png) | ||
|
||
The following settings can be edited: (See the help texts for more details) | ||
![Settings Reporting Task](./img/03-settings-reporting-task.png) | ||
|
||
After the reporting task is configured, run it: | ||
![Run Reporting Task](./img/04-run-reporting-task.png) | ||
|
||
If everything went well, the prometheus pushgateway (localhost:9091) should now provide your metrics: | ||
![Check Pushgateway](./img/05-pushgateway-view.png) | ||
|
||
After this the metrics can be scraped by prometheus and then visualized in Grafana. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters