Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mconf/mconf-nginx-exporter
https://github.com/mconf/mconf-nginx-exporter
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mconf/mconf-nginx-exporter
- Owner: mconf
- Created: 2020-07-15T21:23:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-20T16:14:11.000Z (over 4 years ago)
- Last Synced: 2024-04-12T16:08:46.536Z (9 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Como instalar (v0.2)
O exporter precisa de acesso à API do kubernetes para puxar os IPS
dos pods do nginx-controller. Para isso é preciso criar um `clusterrolebinding`
no clusterrole view rodando o seguinte comando.```bash
kubectl create clusterrolebinding default-view --clusterrole=view --serviceaccount=default:default
```Assim o exporter terá visão e a partir das variáveis de ambiente passadas (`NGINX_EXPORTER_POD_NAME` e
`NGINX_EXPORTER_NAMESPACE`) irá reconhecer os IPS automaticamente a cada acesso ao `/metrics`.