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 Metric | Metric Display Name | Unit | 
|---|---|---|
| nginx_ingress_nginx_connections_current Current number of client connections with state | Nginx Connections Current | Connections | 
| nginx_ingress_nginx_connections_total Total number of connections with state | Nginx Connections Total | Connections/second | 
| nginx_ingress_nginx_requests_total Total number of client requests | Nginx Requests Total | Requests/second | 
| nginx_ingress_nginx_process_count Number of nginx processes | Nginx Process Count | Processes | 
| nginx_ingress_nginx_bytes_read Number of bytes read | Nginx Bytes Read | bytes/second | 
| nginx_ingress_nginx_bytes_write Number of bytes written | Nginx Bytes Write | bytes/second | 
| nginx_ingress_nginx_cpu_time CPU usage | Nginx Cpu Time | seconds | 
| nginx_ingress_nginx_mem_resident Resident memory size | Nginx Mem Resident | bytes | 
| nginx_ingress_nginx_mem_virtual Virtual memory size | Nginx Mem Virtual | bytes | 
| 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 Sum | seconds | 
| nginx_ingress_controller_upstream_latency_quantile Quantiles of upstream service latency per Ingress | Controller Upstream Latency Quantile | seconds | 
| nginx_ingress_controller_response_duration Average sum of response duration per Ingress since last pool | Controller Response Duration | seconds | 
| nginx_ingress_controller_requests Total number of client requests | Controller Requests | requests/second | 
| nginx_ingress_controller_cpu_time CPU usage | Controller Cpu Time | seconds | 
| nginx_ingress_controller_mem_resident Resident memory size | Controller Mem Resident | bytes | 
| nginx_ingress_controller_mem_virtual Virtual memory size | Controller Mem Virtual | bytes | 
| nginx_ingress_controller_request_duration Average sum of request processing time since last pool. | Controller Request Duration | milliseconds |