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.

Supported metrics

OpsRamp MetricMetric Display NameUnit
nginx_ingress_nginx_connections_current

Current number of client connections with state
Nginx Connections CurrentConnections
nginx_ingress_nginx_connections_total

Total number of connections with state
Nginx Connections TotalConnections/second
nginx_ingress_nginx_requests_total

Total number of client requests
Nginx Requests TotalRequests/second
nginx_ingress_nginx_process_count

Number of nginx processes
Nginx Process CountProcesses
nginx_ingress_nginx_bytes_read

Number of bytes read
Nginx Bytes Readbytes/second
nginx_ingress_nginx_bytes_write

Number of bytes written
Nginx Bytes Writebytes/second
nginx_ingress_nginx_cpu_time

CPU usage
Nginx Cpu Timeseconds
nginx_ingress_nginx_mem_resident

Resident memory size
Nginx Mem Residentbytes
nginx_ingress_nginx_mem_virtual

Virtual memory size
Nginx Mem Virtualbytes
nginx_ingress_controller_reload_success

Cumulative number of Ingress controller reload operations
Controller Reload Success
nginx_ingress_controller_last_reload_success

Whether the last configuration reload attempt was successful
Controller Last Reload Success
nginx_ingress_controller_upstream_latency_count

Count of upstream service latency per Ingress
Controller Upstream Latency Count
nginx_ingress_controller_upstream_latency_sum

Sum of upstream service latency per Ingress
Controller Upstream Latency Sumseconds
nginx_ingress_controller_upstream_latency_quantile

Quantiles of upstream service latency per Ingress
Controller Upstream Latency Quantileseconds
nginx_ingress_controller_response_duration

Average sum of response duration per Ingress since last pool
Controller Response Durationseconds
nginx_ingress_controller_requests

Total number of client requests
Controller Requestsrequests/second
nginx_ingress_controller_cpu_time

CPU usage
Controller Cpu Timeseconds
nginx_ingress_controller_mem_resident

Resident memory size
Controller Mem Residentbytes
nginx_ingress_controller_mem_virtual

Virtual memory size
Controller Mem Virtualbytes
nginx_ingress_controller_request_duration

Average sum of request processing time since last pool.
Controller Request Durationmilliseconds