fi-GarO / Grafana

0 stars 0 forks source link

Grafana

Grafana config

/data/infra/grafana/develop/grafana.db

Návrh řešení

Todo

Dotazy:

docker service inspect ... manual sudo docker service inspect monitoring_dev_core_grafana | grep 3000 config - ops.monitoring - core sudo docker service ls | grep grafana

ENV variables - https://grafana.com/docs/grafana/latest/setup-grafana/configure-security/configure-authentication/grafana/#anonymous-authentication z docker-compose.staging.yml

Organization /org/users

Per prostředí.json -> develop.json

docker desktop

docker run -d --name=grafana-latest -p 3000:3000 grafana/grafana:9.2.4

API

https://grafana.com/docs/grafana/latest/developers/http_api/

Get users

curl http://admin:admin@localhost:3000/api/users

Create new user

POST /api/admin/users -d @file.json

Default config

list all running services

systemctl --state=active

Get Team by name - Not found = "totalCount": 0

curl http://admin:admin@localhost:3000/api/teams/search?query=MyTestTeam | jq .

Get user id by email

curl http://admin:admin@localhost:3000/api/users?query=jiri.turyna@jablotron.cz

Get all folders

curl http://admin:admin@localhost:3000/api/folders | jq .

Get folder by uid

curl http://admin:admin@localhost:3000/api/folders/JR11MPDVz | jq .

Get folder permissions

curl http://admin:admin@localhost:3000/api/folders/JR11MPDVz/permissions | jq .

Add team

Add user to team

curl -d '{"userId":2}' -X POST http://admin:admin@localhost:3000/api/teams/3/members

Probírat task i s ostatními členy týmu

Pomodoro technika

Vytvořit subtasky na jednotlivé kroky

Vytvořit git projekt v ops.tools

Step by Step

Parametry

Funkce