Last active
November 29, 2019 08:08
-
-
Save Nurlan199206/a10a1d784a60307646af7188da30505a to your computer and use it in GitHub Desktop.
nginx exporter prometheus - stub status
This file contains hidden or 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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nginx-exporter-deployment | |
namespace: default | |
spec: | |
selector: | |
matchLabels: | |
app: nginx-exporter-server | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: nginx-exporter-server | |
spec: | |
containers: | |
- name: nginx-exporter | |
image: nginx/nginx-prometheus-exporter:0.4.2 | |
args: | |
- "--nginx.scrape-uri=https://mydomain.kz/basic_status" | |
- "--nginx.ssl-verify=false" | |
ports: | |
- containerPort: 9113 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: nginx-exporter-service | |
namespace: default | |
annotations: | |
prometheus.io/scrape: 'true' | |
prometheus.io/port: '9113' | |
prometheus.io/probe: 'true' | |
spec: | |
selector: | |
app: nginx-exporter-server | |
type: ClusterIP | |
ports: | |
- port: 9113 | |
protocol: TCP | |
targetPort: 9113 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment