Obtain a counter's value via REST/JMX/etc

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Obtain a counter's value via REST/JMX/etc

Ricky Saltzer
Hey guys -

I just wanted to make sure this capability isn't already in NiFi before I
open a feature request JIRA. This could be useful for building monitoring
around data flows, for example, using nagios to make sure counters are
incrementing where they should be.

--
Ricky Saltzer
http://www.cloudera.com
Reply | Threaded
Open this post in threaded view
|

Re: Obtain a counter's value via REST/JMX/etc

Ricky Saltzer
aha! to close this out...

http://<ip>:8080/nifi-api/controller/counters

Cheers,
Ricky

On Tue, Mar 17, 2015 at 5:28 PM, Ricky Saltzer <[hidden email]> wrote:

> Hey guys -
>
> I just wanted to make sure this capability isn't already in NiFi before I
> open a feature request JIRA. This could be useful for building monitoring
> around data flows, for example, using nagios to make sure counters are
> incrementing where they should be.
>
> --
> Ricky Saltzer
> http://www.cloudera.com
>
>


--
Ricky Saltzer
http://www.cloudera.com
Reply | Threaded
Open this post in threaded view
|

Re: Obtain a counter's value via REST/JMX/etc

Sean Busbey
see also this thread about getting stuff into Ganglia  and possibly
expanding to publish in JMX:

*http://s.apache.org/ScU <http://s.apache.org/ScU>*

On Tue, Mar 17, 2015 at 4:31 PM, Ricky Saltzer <[hidden email]> wrote:

> aha! to close this out...
>
> http://<ip>:8080/nifi-api/controller/counters
>
> Cheers,
> Ricky
>
> On Tue, Mar 17, 2015 at 5:28 PM, Ricky Saltzer <[hidden email]> wrote:
>
> > Hey guys -
> >
> > I just wanted to make sure this capability isn't already in NiFi before I
> > open a feature request JIRA. This could be useful for building monitoring
> > around data flows, for example, using nagios to make sure counters are
> > incrementing where they should be.
> >
> > --
> > Ricky Saltzer
> > http://www.cloudera.com
> >
> >
>
>
> --
> Ricky Saltzer
> http://www.cloudera.com
>



--
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Obtain a counter's value via REST/JMX/etc

Matt Gilman
Ricky,

So everything you see in the UI is available over our REST API. The
counters are available at the URL you specified. We do have some
documentation for our REST API but we have disabled it due to licensing
concerns in the generated output. We have a ticket to replace this with
another option [1]. However, if you've built your NiFi from source, you can
manually enable the 'docs' profile to generate the REST documentation. If
the NiFi instance your running was built with that profile active (mvn
clean install -Pdocs) they will be accessible from the help section. Click
the help link in the upper right and scroll to the Developer section at the
bottom of the navigation pane on the left.

Once we've address NIFI-292 we will be enabling that profile by default.

Matt

[1] https://issues.apache.org/jira/browse/NIFI-292

On Tue, Mar 17, 2015 at 5:40 PM, Sean Busbey <[hidden email]> wrote:

> see also this thread about getting stuff into Ganglia  and possibly
> expanding to publish in JMX:
>
> *http://s.apache.org/ScU <http://s.apache.org/ScU>*
>
> On Tue, Mar 17, 2015 at 4:31 PM, Ricky Saltzer <[hidden email]> wrote:
>
> > aha! to close this out...
> >
> > http://<ip>:8080/nifi-api/controller/counters
> >
> > Cheers,
> > Ricky
> >
> > On Tue, Mar 17, 2015 at 5:28 PM, Ricky Saltzer <[hidden email]>
> wrote:
> >
> > > Hey guys -
> > >
> > > I just wanted to make sure this capability isn't already in NiFi
> before I
> > > open a feature request JIRA. This could be useful for building
> monitoring
> > > around data flows, for example, using nagios to make sure counters are
> > > incrementing where they should be.
> > >
> > > --
> > > Ricky Saltzer
> > > http://www.cloudera.com
> > >
> > >
> >
> >
> > --
> > Ricky Saltzer
> > http://www.cloudera.com
> >
>
>
>
> --
> Sean
>
Reply | Threaded
Open this post in threaded view
|

Re: Obtain a counter's value via REST/JMX/etc

Ricky Saltzer
Great, thanks for the clarification, Matt
On Mar 17, 2015 6:16 PM, "Matt Gilman" <[hidden email]> wrote:

> Ricky,
>
> So everything you see in the UI is available over our REST API. The
> counters are available at the URL you specified. We do have some
> documentation for our REST API but we have disabled it due to licensing
> concerns in the generated output. We have a ticket to replace this with
> another option [1]. However, if you've built your NiFi from source, you can
> manually enable the 'docs' profile to generate the REST documentation. If
> the NiFi instance your running was built with that profile active (mvn
> clean install -Pdocs) they will be accessible from the help section. Click
> the help link in the upper right and scroll to the Developer section at the
> bottom of the navigation pane on the left.
>
> Once we've address NIFI-292 we will be enabling that profile by default.
>
> Matt
>
> [1] https://issues.apache.org/jira/browse/NIFI-292
>
> On Tue, Mar 17, 2015 at 5:40 PM, Sean Busbey <[hidden email]> wrote:
>
> > see also this thread about getting stuff into Ganglia  and possibly
> > expanding to publish in JMX:
> >
> > *http://s.apache.org/ScU <http://s.apache.org/ScU>*
> >
> > On Tue, Mar 17, 2015 at 4:31 PM, Ricky Saltzer <[hidden email]>
> wrote:
> >
> > > aha! to close this out...
> > >
> > > http://<ip>:8080/nifi-api/controller/counters
> > >
> > > Cheers,
> > > Ricky
> > >
> > > On Tue, Mar 17, 2015 at 5:28 PM, Ricky Saltzer <[hidden email]>
> > wrote:
> > >
> > > > Hey guys -
> > > >
> > > > I just wanted to make sure this capability isn't already in NiFi
> > before I
> > > > open a feature request JIRA. This could be useful for building
> > monitoring
> > > > around data flows, for example, using nagios to make sure counters
> are
> > > > incrementing where they should be.
> > > >
> > > > --
> > > > Ricky Saltzer
> > > > http://www.cloudera.com
> > > >
> > > >
> > >
> > >
> > > --
> > > Ricky Saltzer
> > > http://www.cloudera.com
> > >
> >
> >
> >
> > --
> > Sean
> >
>