Glassfish default checks and policies

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 1 minute de lecture
  • Agent Client Collector provides the following default checks and policies for Glassfish monitoring.

    Tableau 1. Glassfish metrics policy
    Type Check Description Usage and usage example Output
    Metric glassfish.metric-jvm-level

    Retrieves the Glassfish server's JVM metrics.

    Requires basic authentication credentials.

    -i, --instance  Glassfish Monitoring Instance Name (required)
    -p, --password  Glassfish password
    -P, --port  Glassfish API port
    --ssl  Enable secure connnection to Glassfish
    -u –username  Glassfish username
    

    Usage example: metric-glassfish-jvm-level.rb {{if .labels.params_port}} -P {{.labels.params_port}} {{end}} -i {{.labels.params_glassfish_server_instance}}

    glassfish.jvm.garbage-collectors.Scavenge.CollectionCount 200 0 1652959788
    Metric glassfish.metric-server-requests

    Provides http-request metrics for all applications deployed on the Glassfish server.

    Requires basic authentication credentials.

    -i, --instance  Glassfish Monitoring Instance Name (required)
    -p, --password  Glassfish password
    -P, --port  Glassfish API port
    --ssl  Enable secure connnection to Glassfish
    -u –username  Glassfish username
    

    Usage example: metric-glassfish-server-requests.rb -i {{.labels.params_glassfish_server_instance}} {{if .labels.params_port}} -P {{.labels.params_port}} {{end}}

    glassfish.http-service.server.request.Count 200 0 1652959788
    Metric glassfish.metric-server-resources

    Provides metrics of the resources deployed on the Glassfish server.

    Requires basic authentication credentials.

    -i, --instance  Glassfish Monitoring Instance Name (required)
    -P, --port  Glassfish API port
    -r --resource_pool  Resource Pool Name
    --ssl  Enable secure connnection to Glassfish
    -u –username  Glassfish username
    -p --password  Glassfish password
    

    Usage example: metric-glassfish-server-resources.rb {{if .labels.params_port}} -P {{.labels.params_port}} {{end}} {{if .labels.params_resource_pool}} -r {{.labels.params_resource_pool}} {{end}} -i {{.labels.params_glassfish_server_instance}}

    glassfish.resources.{{PoolName}}.AverageConnWaitTime 0 1652959936
    Metric glassfish.metric-transaction-service

    Provides metrics for all transactions on applications deployed on the Glassfish server.

    Requires basic authentication credentials.

    -i, --instance  Glassfish Monitoring Instance Name (required)
    -P, --port  Glassfish API port
    --ssl  Enable secure connnection to Glassfish
    -u –username  Glassfish username
    -p --password  Glassfish password
    

    Usage example: metric-glassfish-transaction-service.rb {{if .labels.params_port}} -P {{.labels.params_port}} {{end}} -i {{.labels.params_glassfish_server_instance}}

    glassfish.transaction-service.ActiveCount 0 1652959977
    Metric glassfish.metrics-deployed-apps

    Provides metric output of applications deployed on the Glassfish server.

    Requires basic authentication credentials.

    -a, --apps  Application deployed on Glassfish server (required)
    -i, --instance  Glassfish Monitoring Instance Name (required)
    -P, --port  Glassfish API port
    --ssl  Enable secure connnection to Glassfish
    -u –username  Glassfish username
    -p --password  Glassfish password
    

    Usage example: metric-glassfish-deployed-applications.rb {{if .labels.params_port}} -P {{.labels.params_port}} {{end}} -a {{.labels.params_deployed_apps}} -i {{.labels.params_glassfish_server_instance}}

    glassfish.applications.{{Deployed Application}}.ActivatedSessionsTotal 0 1652959665
    Metric glassfish.metrics-deployment-lifecycle

    Provides lifecycle metrics of the Glassfish server applications.

    Requires basic authentication credentials.

    metric-glassfish-deployment-lifecycle.rb (options)
    -i, --instance  Glassfish Monitoring Instance Name (required)
    -p --password  Glassfish password
    -P, --port  Glassfish API port
    --ssl  Enable secure connnection to Glassfish
    -u –username  Glassfish username
    

    Usage example: metric-glassfish-deployment-lifecycle.rb {{if .labels.params_port}} -P {{.labels.params_port}} {{end}} -i {{.labels.params_glassfish_server_instance}}

    glassfish.deployment.lifecycle.ActiveApplicationsDeployed 2 1653022649