NGINX Ingress controller works with both NGINX and NGINX Plus and supports the standard Ingress features - content-based routing and TLS/SSL termination.

Configuring the credentials

Configure the credentials in the directory /opt/opsramp/agent/conf/app.d/creds.yaml

nginx-ingress-controller:
- name: nginx-ingress-controller
  user: <username>
  pwd: <Password>
  encoding-type: plain
  labels:
    key1: val1
    key2: val2
  

Configuring the application

Kubernetes environment

Configure the application in config.yaml

- name: nginx-ingress-controller
  container-checks:
    image-check:
      - nginx-ingress-controller
    port-check:
      - 10254
      - 80
  

Validate

Go to Resources under the Infrastructure tab to check if your resources are onboarded and the metrics are collected.

Metrics

OpsRamp MetricMetric Display NameUnitDescription
nginx_ingress_nginx_connections_currentNginx Connections CurrentConnectionsCurrent number of client connections with state
nginx_ingress_nginx_connections_totalNginx Connections TotalConnections/secondTotal number of connections with state
nginx_ingress_nginx_requests_totalNginx Requests TotalRequests/secondTotal number of client requests
nginx_ingress_nginx_process_countNginx Process CountProcessesNumber of nginx processes
nginx_ingress_nginx_bytes_readNginx Bytes Readbytes/secondNumber of bytes read
nginx_ingress_nginx_bytes_writeNginx Bytes Writebytes/secondNumber of bytes written
nginx_ingress_nginx_cpu_timeNginx Cpu TimesecondsCPU usage
nginx_ingress_nginx_mem_residentNginx Mem ResidentbytesResident memory size
nginx_ingress_nginx_mem_virtualNginx Mem VirtualbytesVirtual memory size
nginx_ingress_controller_reload_successController Reload SuccessCumulative number of Ingress controller reload operations
nginx_ingress_controller_last_reload_successController Last Reload SuccessWhether the last configuration reload attempt was successful
nginx_ingress_controller_upstream_latency_countController Upstream Latency CountCount of upstream service latency per Ingress
nginx_ingress_controller_upstream_latency_sumController Upstream Latency SumsecondsSum of upstream service latency per Ingress
nginx_ingress_controller_upstream_latency_quantileController Upstream Latency QuantilesecondsQuantiles of upstream service latency per Ingress
nginx_ingress_controller_response_durationController Response DurationsecondsAverage sum of response duration per Ingress since last pool
nginx_ingress_controller_requestsController Requestsrequests/secondTotal number of client requests
nginx_ingress_controller_cpu_timeController Cpu TimesecondsCPU usage
nginx_ingress_controller_mem_residentController Mem ResidentbytesResident memory size
nginx_ingress_controller_mem_virtualController Mem VirtualbytesVirtual memory size
nginx_ingress_controller_request_durationController Request DurationmillisecondsAverage sum of request processing time since last pool.