Upgrading to 2.0.0¶
2.0.0 adds NiFi 2.x support. It is a major release and it changes defaults that an existing installation depends on. Read this before upgrading.
The TA's configuration screen is also rebuilt from scratch: 1.x had a single hand-written form, 2.0.0 is generated by UCC with grouped tabs (Endpoints, TLS, Advanced). The Inputs page in Apps > NiFi TA Monitoring looks nothing like it used to -- see Pull strategy for what it looks like now. Existing inputs still work as-is; you only see the new form when you open one.
Breaking changes¶
The app looks in one index, not every index¶
The index_nifi macro was index=*, which made every panel and the
datamodel acceleration scan every event index on the instance. It now points
at index=nifi, and the app ships that index. On a distributed
deployment the index has to exist on the indexers too: the app is
installed on the search head, so deploy its indexes.conf to them as well.
If your NiFi data is somewhere else, every dashboard will be empty. Do
not guess where: open Configuration > Collection Health, which reports how many events
the macro can see and which indexes actually hold NiFi data. Then override
the macro in local/macros.conf:
[index_nifi]
definition = index=your_index
TLS certificates are verified¶
Every request the TA made used to accept any certificate presented by NiFi. Over HTTPS that lets anyone able to intercept the connection read the username, the password and the bearer token — and NiFi 2.x serves HTTPS by default.
Verification is now on, including for inputs saved before the option existed. An input pointing at a NiFi with a self-signed certificate will stop connecting. The error says what to do; you have two options:
- point CA bundle path at a bundle that trusts the certificate, or
- clear Verify the TLS certificate, accepting an unverified connection.
nifi:api:site_to_site is no longer collected¶
It was polled on every cycle and no dashboard, datamodel object or saved
search ever read it. If you built something on that sourcetype, it stops
receiving new events; already-indexed data is unaffected. If inputs.conf
still has the old setting, the input logs a warning about it on every poll --
delete the setting to quiet the log.
The new form has no field for it, and saving an input from it does not
remove old fields the form does not know about -- resaving the password
(below) will not clear this one. Delete
the endpoint_site_to_site line by hand from each [nifi://...] stanza in
local/inputs.conf under nifi_TA_monitoring.
Datamodel acceleration ships off -- turn it on¶
Splunkbase does not accept an app that distributes an accelerated datamodel,
so the NIFI model ships with acceleration = false. The dashboards still
return the right numbers, because tstats ... from datamodel=NIFI.* falls
back to a raw search, but they get slower as the index grows.
Turning acceleration on is the single biggest thing you can do for panel latency:
- Go to Settings > Data models.
- Select NIFI, then Edit > Edit Acceleration.
- Tick Accelerate and pick a summary range. The app ships
acceleration.earliest_time = -7d, which is the range the panels were designed around.
The cost is one tsidx summary per bucket in that range. Shorten the range if storage matters more to you than history.
Passwords are stored per input¶
The 1.x add-on stored each NiFi password under the NiFi username, so two inputs with the same user shared one password. The configuration screen now stores it per input, encrypted, when the input is saved.
An input carried over from 1.x keeps working with the password 1.x stored, and logs a warning saying so. Open it on the Inputs page, type the password and save it: from then on it has its own.
1.x leaves files behind that 2.0.0 does not use¶
Installing 2.0.0 over an existing 1.x add-on only overwrites the files the
new package ships -- it does not delete ones the old package shipped that
2.0.0 no longer needs. Two are worth removing by hand from
nifi_TA_monitoring/bin/:
.env-- the NiFi API token 1.x cached here, close to plaintext. 2.0.0 caches the same kind of token instorage/passwordsinstead and never reads this file.dotenv/-- the library 1.x used to read that file.
Neither breaks anything left in place, but they are a stale credential and dead code sitting on disk for no reason.
The flow definition is split by NiFi version¶
flow_definition/ now holds nifi-1.x/ and nifi-2.x/. If you use the
push strategy, import the one matching your NiFi. See
Compatibility.
The XML template moved to nifi-1.x/. NiFi 2.x removed template support.
The dashboards were rebuilt¶
The views are Dashboard Studio now, and several were renamed or merged. Bookmarks to the old names stop working:
| 1.x | 2.0.0 |
|---|---|
home, nifi_overview |
nifi_overview (the landing page) |
nifi_instances_detail |
nifi_instance |
nifi_status_history |
nifi_components |
nifi_bulletin |
nifi_bulletins |
nifi_internal_monitoring |
nifi_collection_health and nifi_cluster |
Status Indicator - Custom Visualization is no longer used; remove it if nothing else needs it.
Searches of your own that read the NIFI datamodel may need a change:
Reporting_Bulletin and Reporting_Task are now children of Bulletins
and Throughput, and the Status_History datasets became
Component_Status. A child is not a root, so
| tstats ... from datamodel=NIFI.Reporting_Bulletin now fails with Invalid
or unaccelerable root object. Query the parent, and name the child if you
need only that path:
| tstats count from datamodel=NIFI.Bulletins where nodename=Bulletins.Reporting_Bulletin
See the Data Reference.
The TA writes the status history as nifi:api:processors_status and
nifi:api:process_groups_status, one event per snapshot. Searches on
nifi:api:*_history keep working for the push path only.
What to do, in order¶
- Find out where your data lives, on the current version. Go to NiFi Monitoring > Configuration > Internal Monitoring, or run:
| tstats count where index=* sourcetype=nifi:* by index
Write down the index. You will need it in step 3.
-
Install both packages as an upgrade, TA first. For each app -- Nifi Monitoring TA, then Nifi Monitoring -- go to Apps > Manage Apps > Install app from file, pick the new
.tar.gz, and tick Upgrade app. Checking this will overwrite the existing version of this app. They must land on the same version number. Then restart Splunk (Settings > Server controls > Restart Splunk): the TA adds REST endpoints (restmap.conf,web.conf), which only take effect after a restart. -
If the index from step 1 is not
nifi, override the macro. Editlocal/macros.confundernifi_monitoring(or use Settings > Advanced search > Search macros):
[index_nifi]
definition = index=your_index
-
Fix TLS on every input that targets an HTTPS NiFi. Go to Apps > NiFi TA Monitoring > Inputs, open the input, expand TLS, and either set CA bundle path to a bundle that trusts NiFi's certificate, or clear Verify the TLS certificate. Save.
-
Delete
endpoint_site_to_sitefromlocal/inputs.conf. The form has no field for it and saving an input does not remove it (see above) -- opennifi_TA_monitoring/local/inputs.confon the search head's filesystem and remove the line from every[nifi://...]stanza by hand. -
Re-save the password on every input that authenticates. Open it, overwrite the password field -- it shows as a mask, typing over it is what actually moves it -- and save. Search
index=_internal nifi_TA_monitoring "1.x add-on"for which inputs still sayInput <name> is using the credential the 1.x add-on stored...: those are the ones still pending. -
Push strategy only. Re-import
flow_definition/nifi-2.x/NiFiMonitoring.json(ornifi-1.x/if this NiFi stays on 1.x) as a new process group, and move what the old flow kept in variables into the new Parameter Context. See Push strategy. -
(Optional) Clean up. Once every input above is running, delete
nifi_TA_monitoring/bin/.envandnifi_TA_monitoring/bin/dotenv/-- 2.0.0 does not use either.
New in this release¶
- NiFi 2.x support, from one input. The TA detects the version and adapts.
- Flow metrics from
/flow/metrics/json, off by default — an idle NiFi emits around 60 samples per poll andALL_COMPONENTSscales that with the flow, so review the volume before enabling it. - Bulletins without a reporting task, by polling the bulletin board.
nifi:log:deprecation, which records the deprecated components an instance still uses. Enable it before planning a move to NiFi 2.x.nifi:log:request, NiFi's HTTP access log.- An inventory panel showing each instance's NiFi version and Java version.
- Eight alerts, shipped disabled: instance without data, repository
filling up, sustained high heap, ERROR bulletin spike, backpressure,
cluster node disconnected, versioned flow sync failure and TA HTTP errors.
They read the same
nifi_threshold_*macros as the panels. - One definition of health per instance (
nifi_health), which knows each input's polling interval: an instance polled every five minutes is no longer reported down. - Components view: which processor, group or connection is the bottleneck, with NiFi's own backpressure prediction.