Bonjour,
puis je ajouter des annotations grafana par API ?
http://docs.grafana.org/http_api/annotations/
Belle journée,
Chris.
Support API Grafana Annotations
Sujets apparentés
- Ssh_init: Host does not exist
10276
13.11.2017 01:40
- Code d’erreur : DLG_FLAGS_SEC_CERT_CN_INVALID ?
10222
14.08.2018 09:32
- Err_too_many_redirects
7386
12.11.2017 15:36
- Trop de redirections suite au HTTPS
6744
14.12.2016 14:30
- Certificat Let's encrypt
6211
21.08.2017 17:44
- Impossible d'activer le certificat SSL pour HTTPS
5746
07.01.2021 02:44
- LetsEncrypt et erreur DNS A / AAAA
5683
16.04.2019 15:34
- Net::err_cert_common_name_invalid
5584
29.05.2017 08:20
- Prise en charge du protocole MQTT
5223
06.04.2017 13:57
- SSL Cloudflare chez OVH
5180
28.04.2017 09:51
Bonjour @ChrisN,
L'API de Grafana n'est pas bloquée, vous le pouvez.
http://docs.grafana.org/http_api/annotations/#create-annotation
Cordialement,
```text Merci ca marche du tonnerre !
petit tuto memo pour moi et pour les autres
1/ créer dans l'interface grafana un access api : APi Key
2/ notez le token que vous retourne l'exemple un truc du genre
curl -H "Authorization: Bearer eyJrIjdodslkfdslkdlmJDKFJKFSJk dsfjkdjsfk jdskljfdkdfsTZ9"
3/ noter le id du dashboard dans lequel vous voulez poser une annotation dans mon cas 508
4/ exemple d'envoi d'annotation avec curl
curl -XPOST "https://grafana.metrics.ovh.net/api/annotations" -H "Authorization: Bearer eyJrIjdodslkfdslkdlmJDKFJKFSJk dsfjkdjsfk jdskljfdkdfsTZ9" -H 'Content-Type: application/json' -d'
{
"dashboardId":508,
"text":"example de message"
}
'
et voila normalement l'annotation s'affiche sur votre dashboard !!!!
\o/ Houba \o/ ```