PrometheusReportingTask authorisation?

2022-11-22 Thread Garland, Michael R
Hi,

I've noticed that whilst the PrometheusReportingTask can be configured for 
client authentication, there is no means to authorise connections to the 
/metrics endpoint.  Given the /metrics endpoint can expose processor group and 
processor names, which could be sensitive in nature, should exposing endpoints 
like this also be authorised, for example by using the global access policies 
functionality?

This strikes me as being something that is maybe niche, but nevertheless 
without authorisation, could undermine the security aspects of NiFi by 
providing access to information to say an insider threat (valid client 
certificate, but not authorised).

Would be interested to know other's thoughts on this?

Michael


RE: NiFi component status history not showing more than a days worth of data

2022-11-16 Thread Garland, Michael R
Further investigation has shown that for the Node Status History, in order to 
get it working, I have had to disconnect 4 out of 6 nodes from the cluster in 
order to get any node level status history to be displayed without occurring a 
parse error.  This seems to suggest the QuestDB implementation in NiFi cannot 
scale well for multi-clustered deployments with many processors.  The total 
size of the QuestDB files on each node is 377MB, which is after approx. 2 days 
of NiFi running.
The issue around component level status history only showing a maximum of 24hrs 
worth of history still remains.
Can a bug be raised on this?

On 2022/11/14 16:24:04 "Garland, Michael R" wrote:
> Hi,
>
> We're trying to make use of the 'EmbeddedQuestDbStatusHistoryRepository' 
> implementation of the Status History Repository within NiFi 1.17.0, but 
> cannot seem to get this feature working as what is described within the NiFi 
> admin guide.

>
> What we are seeing is that the component Status History viewer within NiFi 
> only ever displays 1 days' worth of data, regardless of the configuration of 
> the  'nifi.status.repository.questdb.persist.component.days' value (leaving 
> the default value of 3)

>
> A second point, clicking on the 'Node Status History' button from the 
> hamburger symbol doesn't load any information on a 6 node cluster that has 
> been running for a few days and has ~600MB worth of QuestDB data on each node 
> (with the 'nifi.status.repository.questdb.persist.node.days' value left at 
> its default of 14 days).  After approx. 75 seconds, NiFi displays a parse 
> error, with no information in the logs that would explain the cause.  Has 
> anyone seen this behaviour?

>
> Many thanks,
>
> Michael
>


NiFi component status history not showing more than a days worth of data

2022-11-14 Thread Garland, Michael R
Hi,

We're trying to make use of the 'EmbeddedQuestDbStatusHistoryRepository' 
implementation of the Status History Repository within NiFi 1.17.0, but cannot 
seem to get this feature working as what is described within the NiFi admin 
guide.

What we are seeing is that the component Status History viewer within NiFi only 
ever displays 1 days' worth of data, regardless of the configuration of the  
'nifi.status.repository.questdb.persist.component.days' value (leaving the 
default value of 3)

A second point, clicking on the 'Node Status History' button from the hamburger 
symbol doesn't load any information on a 6 node cluster that has been running 
for a few days and has ~600MB worth of QuestDB data on each node (with the 
'nifi.status.repository.questdb.persist.node.days' value left at its default of 
14 days).  After approx. 75 seconds, NiFi displays a parse error, with no 
information in the logs that would explain the cause.  Has anyone seen this 
behaviour?

Many thanks,

Michael