netscaler / netscaler-adc-metrics-exporter

Export metrics from Citrix ADC (NetScaler) to Prometheus
90 stars 32 forks source link

Enhancement: add sslvserver metrics #34

Closed nzjustin closed 4 years ago

nzjustin commented 4 years ago

We found that the statistics for SSL virtual server resources were lacking in the metrics.json file and we would like to be able to collect these.

We have created the following addition for the metrics.json file which allows the collection of these metrics.

    "sslvserver": {
        "counters": [
            ["sslctxtotdecbytes", "citrixadc_sslvserver_decrypt_bytes_total"],
            ["sslctxtotencbytes", "citrixadc_sslvserver_encrypt_bytes_total"],
            ["sslctxtothwdec_bytes", "citrixadc_sslvserver_decrypt_hardware_bytes_total"],
            ["sslctxtothwencbytes", "citrixadc_sslvserver_encrypt_hardware_bytes_total"],
            ["sslctxtotsessionnew", "citrixadc_sslvserver_session_new_total"],
            ["sslctxtotsessionhits", "citrixadc_sslvserver_session_hits_total"],
            ["ssltotclientauthsuccess", "citrixadc_sslvserver_auth_success_total"],
            ["ssltotclientauthfailure", "citrixadc_sslvserver_auth_failure_total"]
        ],
        "gauges": [
            ["vslbhealth", "citrixadc_sslvserver_health"],
            ["actsvcs", "citrixadc_sslvserver_active_services"],
            ["sslclientauthsuccessrate", "citrixadc_sslvserver_auth_success_rate"],
            ["sslclientauthfailurerate", "citrixadc_sslvserver_auth_failure_rate"],
            ["sslctxencbytesrate", "citrixadc_sslvserver_encrypt_bytes_rate"],
            ["sslctxdecbytesrate", "citrixadc_sslvserver_decrypt_bytes_rate"],
            ["sslctxhwencbytesrate", "citrixadc_sslvserver_hw_encrypt_bytes_rate"],
            ["sslctxhwdecbytesrate", "citrixadc_sslvserver_hw_decrypt_bytes_rate"],
            ["sslctxsessionnewrate", "citrixadc_sslvserver_session_new_rate"],
            ["sslctxsessionhitsrate", "citrixadc_sslvserver_session_hits_rate"]
        ],
        "labels": [
            ["vservername", "citrixadc_sslvserver_name"],
            ["type", "citrixadc_sslvserver_type"],
            ["primaryipaddress", "citrixadc_sslvserver_ip"],
            ["state", "citrixadc_sslvserver_state"]
        ]
    }
aroraharsh23 commented 4 years ago

@nzjustin Will review these stats, and if suitable, will include in next release.

aroraharsh23 commented 4 years ago

We have added SSLvserver metrics as per requirement in 1.4.4. Closing this.