forked from badtuxx/giropops-senhas
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adicionar documentação sobre monitoramento com Zabbix e Grafana
- Loading branch information
1 parent
000a332
commit 8e311d4
Showing
6 changed files
with
1,494 additions
and
62 deletions.
There are no files selected for viewing
File renamed without changes.
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,23 @@ | ||
# Configurando o Redis como fonte de dados no Grafana | ||
|
||
1. Acesse o Grafana através do serviço exposto no Kubernetes. | ||
2. Faça login como administrador. | ||
3. Navegue até "Configuration" > "Data Sources". | ||
4. Clique em "Add data source". | ||
5. Procure e selecione "Redis". | ||
6. Preencha os campos conforme abaixo: | ||
- **Name**: Redis | ||
- **Type**: Standalone | ||
- **URL**: `redis-service.giropops-senhas.svc.cluster.local:6379` # DNS interno do Redis no Kubernetes | ||
7. Clique em "Save & Test". | ||
|
||
Agora o Grafana está configurado para acessar o Redis como fonte de dados. É esperado que apareça a seguinte mensagem: "Data Source is working as expected." Possibilitando a criação de dashboards com dados do Redis. | ||
|
||
## Criando uma dasboard com dados do Redis | ||
|
||
1. Navegue até "Dashboards" > "New". | ||
2. Clique em "New dashboard". | ||
3. Importe a dashboard do Redis através do arquivo `redis-dashboard.json` disponível no repositório. | ||
4. Os dados começarão a ser exibidos na dashboard. | ||
5. Clique em "Save dashboard" para salvar a dashboard. | ||
6. Acesse a minha dashboard do Redis através do link: [Redis Dashboard](https://grafana.nataliagranato.xyz/public-dashboards/853f8db7e3984dd58011fc4cdd12d439). |
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 @@ | ||
# Monitorando nossa aplicação com Zabbix |
This file was deleted.
Oops, something went wrong.
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,26 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolume | ||
metadata: | ||
name: grafana-pv | ||
namespace: monitoring | ||
spec: | ||
capacity: | ||
storage: 5Gi | ||
accessModes: | ||
- ReadWriteOnce | ||
storageClassName: oci | ||
hostPath: | ||
path: /data/grafana | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: grafana-storage | ||
namespace: monitoring | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
storageClassName: oci | ||
resources: | ||
requests: | ||
storage: 5Gi |
Oops, something went wrong.