The F5 load balancer from F5 Networks, Inc. directs traffic away from servers that are overloaded or down to other servers that can handle the load. The F5 load balancer extension collects key performance metrics from an F5 load balancer and presents them in the AppDynamics Metric Browser.
Java 8
to build the extension artifact from source. You can check the java version used in maven using command mvn -v
or mvn --version
. If your maven is using some other java version then please download java 8 for your platform and set JAVA_HOME parameter before starting maven.https://f5-host:f5-port/mgmt/tm/ltm/pool/stats
or via curl.F5Monitor-<version>.zip
from target
directory into the "<MachineAgent_Dir>/monitors" directory.Please place the extension in the "monitors" directory of your Machine Agent installation directory. Do not place the extension in the "extensions" directory of your Machine Agent installation directory.
In the AppDynamics Metric Browser, look for Application Infrastructure Performance|<Tier>|Custom Metrics|F5 Monitor and you should be able to see all the metrics.
Configure the extension by editing the config.yml file in <MACHINE_AGENT_HOME>/monitors/F5Monitor/
.
Configure the "COMPONENT_ID" under which the metrics need to be reported. This can be done by changing the value of <COMPONENT_ID>
in metricPrefix: Server|Component:<COMPONENT_ID>|Custom Metrics|F5 Monitor|.
For example,
metricPrefix: "Server|Component:100|Custom Metrics|F5 Monitor|"
Server Details
servers:
- uri: "https://server1:8443"
name: "Server1"
username: "user"
password: "password"
encryptedPassword: "" # put the password as empty when using encryptedPassword
- uri: "https://server2:443"
name: "server2"
username: "user"
password: ""
encryptedPassword: "y444543gt3="
If encryptedPassword
is used, make sure to update the encryptionKey
in config.yml
. Please read the documentation here to generate encrypted password.
.*
regex. This will report a lot of data. Set the correct filters to make sure that you only collect the data you will need
filter:
pools:
includes: [".*"]
poolMembers:
includes: [".*"]
rules:
includes: [".*"]
...
...
Please refer to the config.yml
for the complete configuration.
Token-based authentication can be used in BIG IP v12+. Please refer to F5 documentation for more details. To enabled token based auth, please modify the config.yml
as shown below.
servers:
- uri: "https://server1:8443"
name: "Server1"
username: "user"
password: "password"
encryptedPassword: ""
authType: "TOKEN"
loginReference: ""
loginReference
from your system administrator. It looks something like https://localhost/mgmt/cm/system/authn/providers/ldap/-id-/login
loginReference
blankThis is applicable only for BIG IP versions 11.6+. To use a non-admin, you have to explicitly grant access to the rest interface. Please follow the steps.
Create a user with guest role from the F5 Admin UI.
Run the following command and get the selfLink
of the guest user(created in step #1) from the response JSON
curl -i -k -u <adminuser>:<pwd> https://f5-ip/mgmt/shared/authz/users
Replace the link
in the --data
argument json with the value of selfLink
from the response of step #2
curl -i -k -u <adminuser>:<pwd> --request PATCH \
--data '{"userReferences":[{"link":"https://localhost/mgmt/shared/authz/users/guestuser"}]}' \
https://f5-ip/mgmt/shared/authz/roles/iControl_REST_API_User
This should give access to the user created in step #1 to invoke the rest api to invoke GET. If the guest role doesn't work, try "manager" role in step#1
You can add/remove metrics of your choice by modifying the provided metrics.xml file. This file consists of all the metrics that will be monitored and sent to the controller. Please look how the metrics have been defined and follow the same convention, when adding new metrics. You do have the ability to chosoe your Rollup types as well as set an alias that you would like to be displayed on the metric browser.
metric
to be monitored with the metric tag as shown below.
<metric attr="nestedStats|entries|activeMemberCnt" alias="Active Members" aggregationType = "AVERAGE" timeRollUpType = "AVERAGE" clusterRollUpType = "COLLECTIVE"/>
For configuring the metrics, the following properties can be used:
Property | Default value | Possible values | Description |
---|---|---|---|
alias | metric name | Any string | The substitute name to be used in the metric browser instead of metric name. |
aggregationType | "AVERAGE" | "AVERAGE", "SUM", "OBSERVATION" | Aggregation qualifier |
timeRollUpType | "AVERAGE" | "AVERAGE", "SUM", "CURRENT" | Time roll-up qualifier |
clusterRollUpType | "INDIVIDUAL" | "INDIVIDUAL", "COLLECTIVE" | Cluster roll-up qualifier |
multiplier | 1 | Any number | Value with which the metric needs to be multiplied. |
convert | null | Any key value map | Set of key value pairs that indicates the value to which the metrics need to be transformed. eg: UP:1, OPEN:1 |
delta | false | true, false | If enabled, gives the delta values of metrics instead of actual values. |
All these metric properties are optional, and the default value shown in the table is applied to the metric (if a property has not been specified) by default.
The metrics will be reported under the tree Application Infrastructure Performance|$TIER|Custom Metrics|F5 Monitor|
Please visit this page to get detailed instructions on password encryption. The steps in this document will guide you through the whole process.
Workbench is an inbuilt feature provided with each extension in order to assist you to fine tune the extension setup before you actually deploy it on the controller. Please review the following document on How to use the Extensions WorkBench.
https://f5-host:f5-port/mgmt/tm/ltm/pool/stats
-Dappdynamics.agent.maxMetrics=5000
if there is a metric limit reached error in the logs. If you dont see the expected metrics, this could be the cause.Always feel free to fork and contribute any changes directly here on GitHub.
Name | Version |
---|---|
Extension Version | 2.5.2 |
Product Tested On | 15.0.0 |
Last Update | 04/02/2021 |
Changes list | ChangeLog |
Note: While extensions are maintained and supported by customers under the open-source licensing model, they interact with agents and Controllers that are subject to AppDynamics’ maintenance and support policy. Some extensions have been tested with AppDynamics 4.5.13+ artifacts, but you are strongly recommended against using versions that are no longer supported.
Owner
Contributors
Categories
Products
AppDynamicsProgramming Languages
JavaLicense
Code Exchange Community
Get help, share code, and collaborate with other developers in the Code Exchange community.View Community