TECHZEN Zenoss User Community ARCHIVE  

zenhub and zenpython performance graphs

Subject: zenhub and zenpython performance graphs
Author: Jane Curry
Posted: 2017-06-22 07:32

Just found an amazing old post from Chet at http://zenoss-users.zenoss.narkive.com/RdUDufu8/zenhub-worker-how-many-is-too-many . It gives instructions to extend Collector performance graphs to show a graph for the amount of work zenhub has to do. The instructions are for Zenoss 4 and earlier but I have tested it with Zenoss 5.2.1 and it works perfectly well. To see the performance graphs for daemons, navigate to ADVANCED -> Control Center, select localhost in the top part of the window and use the Action icon drop-down at the top  to select View Performance Templates.  You can then follow Chet's instructions to add a zenhub datasource with a workListLength datapoint and a graph to show the data.  To see the graphs, with localhost selected, change the Display dropdown to Graphs.

There are quite a few performance graphs for several daemons but they do NOT include zenpython.  Check the README for the PythonCollector ZenPack - https://www.zenoss.com/product/zenpacks/pythoncollector#zenpython-statistics  to see the datapoints that the daemon provides.  Many of them are the same as other daemons.  Applying Chet's technique, you can add a zenpython datasource and add the datapoints documented in the ZenPack README (ensure you get them exactly correct - case-sensitive).  You will find that some datapoints need editing to change their name from the datapoint name to "zenpython".

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


Subject: RE: zenhub and zenpython performance graphs
Author: Jane Curry
Posted: 2017-08-15 10:20

You can find the type of each datapoint in the ZenPack in service_definition/service.json (with apologies for formatting - cant work out how to include code blocks in the forum):

"MonitoringProfile": {
"MetricConfigs": [
{
"ID": "zenpython",
"Name": "zenpython internal metrics",
"Description": "zenpython internal metrics",
"Metrics": [
{
"ID": "devices",
"Name": "Devices",
"Description": "Number of devices being collected.",
"Counter": false,
"Unit": "Count"
},
{
"ID": "dataPoints",
"Name": "Datapoints",
"Description": "Number of datapoints collected per second.",
"Counter": true,
"Unit": "Datapoints/sec"
},
{
"ID": "eventCount",
"Name": "Event Count",
"Description": "Number of events sent per second.",
"Counter": true,
"Unit": "Events/sec"
}, {
"ID": "discardedEvents",
"Name": "Discarded Events",
"Description": "Number of events discarded per second.",
"Counter": true,
"Unit": "Events/sec"
},
{
"ID": "eventQueueLength",
"Name": "Event Queue Length",
"Description": "The number of events pending to be flushed from a daemon's memory queue.",
"Counter": false,
"Unit": "Events"
},
{
"ID": "taskCount",
"Name": "Task Count",
"Description": "Total number of configured tasks.",
"Counter": false,
"Unit": "Tasks"
},
{
"ID": "runningTasks",
"Name": "Running Tasks",
"Description": "Number of tasks in the running state.",
"Counter": false,
"Unit": "Tasks"
},
{
"ID": "queuedTasks",
"Name": "Queued Tasks",
"Description": "Number of tasks queued waiting to be run.",
"Counter": false,
"Unit": "Tasks"
},
{
"ID": "missedRuns",
"Name": "Missed Runs",
"Description": "Number of tasks that missed their scheduled run time.",
"Counter": true,
"Unit": "Runs"
},
{
"ID": "percentBlocked",
"Name": "Percent Blocked",
"Description": "Percent of the time blocked by plugin code execution.",
"Counter": true,
"Unit": "percent"
}

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


Subject: RE: zenhub and zenpython performance graphs
Author: Jane Curry
Posted: 2017-08-15 11:07

Has anyone done this and tried adding a threshold?  I have configured thresholds on zenperfsnmp.dataPoints and on zenpython.dataPoints.  I see threshold events for the zenperfsnmp one but not for zenpython - and the datapoint values definitely indicate that a threshold should have occurred.

Cheers,
Jane

------------------------------
Jane Curry
Skills 1st United Kingdom
jane.curry@skills-1st.co.uk
------------------------------


< Previous
Impossible to set or reset a password
  Next
Cannot expand localhost in Zenoss GUI -> Control Centre
>