-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for oss prometheus exporter (#346)
* Added OSS Prometheus deployment manifest * Added OSS Prometheus daemonset manifest * Updated comparison document * Updated install document * Helm: Add OSS Prometheus exporter support * Changed prometheus.create note to reflect that nginxplus is no longer required
- Loading branch information
1 parent
a6fad6a
commit 52804b2
Showing
8 changed files
with
148 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: DaemonSet | ||
metadata: | ||
name: nginx-ingress | ||
namespace: nginx-ingress | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: nginx-ingress | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx-ingress | ||
annotations: | ||
prometheus.io/scrape: "true" | ||
prometheus.io/port: "9113" | ||
spec: | ||
serviceAccountName: nginx-ingress | ||
containers: | ||
- image: nginx/nginx-ingress:1.3.0 | ||
name: nginx-ingress | ||
ports: | ||
- name: http | ||
containerPort: 80 | ||
hostPort: 80 | ||
- name: https | ||
containerPort: 443 | ||
hostPort: 443 | ||
env: | ||
- name: POD_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
- name: POD_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.name | ||
args: | ||
- -nginx-configmaps=$(POD_NAMESPACE)/nginx-config | ||
- -default-server-tls-secret=$(POD_NAMESPACE)/default-server-secret | ||
#- -v=3 # Enables extensive logging. Useful for trooublshooting. | ||
#- -report-ingress-status | ||
#- -external-service=nginx-ingress | ||
#- -enable-leader-election | ||
- image: nginx/nginx-prometheus-exporter:0.1.0 | ||
name: nginx-prometheus-exporter | ||
ports: | ||
- name: prometheus | ||
containerPort: 9113 | ||
args: | ||
- -web.listen-address | ||
- :9113 | ||
- -nginx.scrape-uri | ||
- http://127.0.0.1:8080/stub_status | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: nginx-ingress | ||
namespace: nginx-ingress | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: nginx-ingress | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx-ingress | ||
annotations: | ||
prometheus.io/scrape: "true" | ||
prometheus.io/port: "9113" | ||
spec: | ||
serviceAccountName: nginx-ingress | ||
containers: | ||
- image: nginx/nginx-ingress:1.3.0 | ||
name: nginx-ingress | ||
ports: | ||
- name: http | ||
containerPort: 80 | ||
- name: https | ||
containerPort: 443 | ||
env: | ||
- name: POD_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
- name: POD_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.name | ||
args: | ||
- -nginx-configmaps=$(POD_NAMESPACE)/nginx-config | ||
- -default-server-tls-secret=$(POD_NAMESPACE)/default-server-secret | ||
#- -v=3 # Enables extensive logging. Useful for trooublshooting. | ||
#- -report-ingress-status | ||
#- -external-service=nginx-ingress | ||
#- -enable-leader-election | ||
- image: nginx/nginx-prometheus-exporter:0.1.0 | ||
name: nginx-prometheus-exporter | ||
ports: | ||
- name: prometheus | ||
containerPort: 9113 | ||
args: | ||
- -web.listen-address | ||
- :9113 | ||
- nginx.scrape-uri | ||
- http://127.0.0.1:8080/stub_status | ||
|