| Scroll Ignore | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
Initialisation du module
Lors de son initialisation, le module affiche dans le log les valeurs configurées pour ses paramètres définis dans le fichier de configuration :
- module_name
- host
- port
- realm_store_only
- broker_module_graphite_perfdata_store_warning_threshold
- broker_module_graphite_perfdata_store_error_threshold
| Code Block | ||
|---|---|---|
| ||
[YYYY-MM-DD HH:MM:SS] INFO : [ broker-master ] [ Graphite-Perfdata ] [ worker:0 ] [ INITIALISATION ] loading configuration parameters
[YYYY-MM-DD HH:MM:SS] INFO : [ broker-master ] [ Graphite-Perfdata ] [ worker:0 ] [ INITIALISATION ] module_name ------------------------------------------- : [Graphite-Perfdata]
[YYYY-MM-DD HH:MM:SS] INFO : [ broker-master ] [ Graphite-Perfdata ] [ worker:0 ] [ INITIALISATION ] host -------------------------------------------------- : [localhost]
[YYYY-MM-DD HH:MM:SS] INFO : [ broker-master ] [ Graphite-Perfdata ] [ worker:0 ] [ INITIALISATION ] port -------------------------------------------------- : [2003]
[YYYY-MM-DD HH:MM:SS] INFO : [ broker-master ] [ Graphite-Perfdata ] [ worker:0 ] [ INITIALISATION ] realm_store_only -------------------------------------- : [ALL]
[YYYY-MM-DD HH:MM:SS] INFO : [ broker-master ] [ Graphite-Perfdata ] [ worker:0 ] [ INITIALISATION ] broker_module_graphite_perfdata_store_warning_threshold : [0]
[YYYY-MM-DD HH:MM:SS] INFO : [ broker-master ] [ Graphite-Perfdata ] [ worker:0 ] [ INITIALISATION ] broker_module_graphite_perfdata_store_error_threshold - : [1]
|
Les erreurs lors de l'interprétation des paramètres
- broker_module_graphite_perfdata_store_warning_threshold
- broker_module_graphite_perfdata_store_error_threshold
sont enregistrées dans le log et mentionnées dans le check Alive.
Le module s'initialise alors avec la valeur par défaut activé
| Code Block | ||
|---|---|---|
| ||
[YYYY-MM-DD HH:MM:SS] ERROR : [ broker-master ] [ Graphite-Perfdata ] [ worker:0 ] [ INITIALISATION ] graphite_store_error_threshold has incorrect value [a], resetting to default value [1] |
Nouvelle configuration / Migration des uuids
Quand on a une nouvelle configuration, le module graphite donne à graphite/apache les informations sur la nouvelle configuration, pour qu'il:
- migre les métriques de noms -> uuid si besoin
- mette à jour le fichier de cache /opt/graphite/storage/whisper/.cacheinvalidation
- qui sera lu dans le cas de requêtes Grafana
Erreurs du côté apache/graphite
En cas d'erreurs du côté d'apache/graphite, le module graphite va lever les erreurs dans son log.
Note: quand on parle à un carbon-relay, ce dernier doit renvoyer les informations de nouvelle configuration à ses serveurs derrières. En cas d'erreurs, on aura également les erreurs de ces serveurs.
| Code Block | ||
|---|---|---|
| ||
[YYYY-MM-DD HH:MM:SS] ERROR : [ broker-master ] [ Graphite-Perfdata ] [ worker:0 ] **************************************************************************************************************************************************************** [YYYY-MM-DD HH:MM:SS] ERROR : [ broker-master ] [ CRITICAL ERROR::Graphite-Perfdata ] [ worker:0 ] CRITICAL ERROR:: There was 1 errors during the new configuration / metrics migration. Last error(s): [YYYY-MM-DD HH:MM:SS] ERROR : [ broker-master ] [ Graphite-Perfdata ] [ worker:0 ] - [ NEW CONFIGURATION / MIGRATION ] [ RELAY ] Error during the new configuration / uuid migration of the relay 192.168.0.27: <urlopen error [Errno 113] No route to host> [YYYY-MM-DD HH:MM:SS] ERROR : [ broker-master ] [ Graphite-Perfdata ] [ worker:0 ] **************************************************************************************************************************************************************** |
Listing des serveurs où la nouvelle configuration a bien été prise en compte
Dans le cas où ça s'est bien passé, on va avoir une ligne de log suivante:
| Code Block | ||
|---|---|---|
| ||
[YYYY-MM-DD HH:MM:SS] INFO : [ broker-master ] [graphite Graphite-Perfdata ] [ worker:0 ] [ NEW CONFIGURATION / MIGRATION ] The graphite server "tpl-centos7" is now aware about the new configuration. |