Skip to content

iqoption/exporter-nginx-ingress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Kubernetes NginxIngress Exporter for Prometheus

Before installation

Version 0.9.0 and above of NGINX ingress have built-in support for exporting Prometheus metrics.

How enable?

  1. In nginx-ingress daemonset need added annotation:
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
  labels:
    name: nginx-ingress-lb
  name: nginx-ingress-lb
  namespace: kube-system
spec:
  selector:
    matchLabels:
      name: nginx-ingress-lb
  template:
    metadata:
+      annotations:
+        prometheus.io/port: "10254"
+        prometheus.io/scrape: "true"

and need restart nginx-ingress-lb on each node.

  1. In nginx-ingress configmap need added data:
$ kubectl edit cm/nginx-configuration -n kube-system
apiVersion: v1
+ data:
+  enable-vts-status: "true"
kind: ConfigMap
metadata:
  labels:
    name: ...
  name: ...
  namespace: ...

More information

Installation

$ helm repo add iqoption https://iqoption.github.io/exporter-nginx-ingress
$ helm upgrade --install exporter-nginx-ingress iqoption/exporter-nginx-ingress --tiller-namespace kube-system

Support variables:

namespaceMonitoring: monitoring
insecureSkipVerify: true
service.type: ClusterIP
service.port: 80

More information

Releases

No releases published

Packages

No packages published

Languages