PMDASOCKETS - Online Linux Manual PageSection : 1
Updated : PCP
Source : Performance Co-Pilot

NAMEpmdasockets − sockets statistics PMDA

DESCRIPTIONpmdasockets is a Performance Metrics Domain Agent (PMDA) which exports metric values for current sockets on the local system. This PMDA currently collects its data through the ss(8) utility and requires that the program is installed in order to function. This dependency may change in the future.

INSTALLATIONTo install (enable) the sockets PMDA, do the following as root: # cd $PCP_PMDAS_DIR/sockets # ./InstallTo uninstall (disable), do the following as root: # cd $PCP_PMDAS_DIR/sockets # ./Removepmdasockets is launched by pmcd(1) and should never be executed directly. The Install and Remove scripts notify pmcd(1) when the agent is installed or removed.

FILTER CONFIGURATIONThe string valued metric network.persocket.filter specifies the ss(1) filter to be applied to optionally select socket states, IP addresses and other options that pmdasockets will collect (to populate it's instance domain). By default, this is state connected meaning only sockets in the connected state will be included. This can be changed dynamically by using pmstore(1) to store a new filter string in the network.persocket.filter metric. E.g. # pmstore network.persocket.filter "state all"will change the filter to include sockets in all states. Note that the filter string is not persisted across PMDA restarts or reboots (this may change in the future). For further details of the filter syntax and options, consult ss(8).

LOGGING CONFIGURATIONThe pmlogconf(1) configuration file for pmdasockets is $PCP_VAR_DIR/config/pmlogconf/networking/persocket-linux (where $PCP_VAR_DIR is typically /var/lib/pcp) which specifies to log all metrics below network.persocket in the PCP namespace with a default sampling interval of 60 seconds. The logging interval and metrics to be logged can be changed by editing that file and then restarting the pmlogger service. For details of the syntax, see pmlogconf(1).

METRICSThe metrics and metadata supported by pmdasockets correspond to fields reported by ss -noemitauOH and are also available as help text provided by the PMDA, e.g. to list all metrics, metadata descriptors and help text: # pminfo -fmdtT network.persocketNote that the PMDA must be installed (enabled) for this command to work correctly, see above.

PCP ENVIRONMENTEnvironment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5).

SEE ALSOPCPIntro(1), pmcd(1), pmlogger(1) and ss(8).
0
Johanes Gumabo
Data Size   :   9,649 byte
man-pmdasockets.1Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 185,354
Visitor ID   :     :  
Visitor IP   :   3.147.86.104   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.