Le check KyotoTycoon de l’Agent surveille les opérations get, set et delete et vous permet de mesurer le délai de réplication.
Le check KyotoTycoon est inclus avec le package de l’Agent Datadog : vous n’avez donc rien d’autre à installer sur vos serveurs Kyoto Tycoon.
Modifiez le fichier kyototycoon.d/conf.yaml
dans le dossier conf.d/
à la racine du répertoire de configuration de votre Agent . Consultez le fichier d’exemple kyototycoon.d/conf.yaml pour découvrir toutes les options de configuration disponibles :
init_config :
instances :
## @param report_url - string - required
## The report URL should be a URL to the Kyoto Tycoon "report" RPC endpoint.
#
- report_url : http://localhost:1978/rpc/report
Copy
Redémarrez l’Agent .
La collecte de logs est désactivée par défaut dans l’Agent Datadog. Vous devez l’activer dans datadog.yaml
:
Ajoutez ce bloc de configuration à votre fichier kyototycoon.d/conf.yaml
pour commencer à recueillir vos logs Kyoto Tycoon :
logs :
- type : file
path : /var/data/ktserver.log
source : kyototycoon
Copy
Modifiez la valeur du paramètre path
en fonction de votre environnement. Consultez le fichier d’exemple kyototycoon.d/conf.yaml pour découvrir toutes les options de configuration disponibles.
Redémarrez l’Agent .
Lancez la sous-commande status
de l’Agent et cherchez kyototycoon
dans la section Checks.
kyototycoon.connections_per_s (rate)Total number of connectionsShown as connection kyototycoon.ops.get.hits_per_s (rate)Rate of get hitsShown as hit kyototycoon.ops.get.misses_per_s (rate)Rate of get missesShown as hit kyototycoon.ops.get.total_per_s (rate)Rate of total get hitsShown as hit kyototycoon.ops.set.hits_per_s (rate)Rate of set hitsShown as hit kyototycoon.ops.set.total_per_s (rate)Rate of total set hitsShown as hit kyototycoon.opts.del.hits_per_s (rate)Rate of deleted hitsShown as hit kyototycoon.opts.del.misses_per_s (rate)Rate of deleted missesShown as miss kyototycoon.opts.del.total_per_s (rate)Rate of total deleted hitsShown as hit kyototycoon.opts.set.misses_per_s (rate)Rate of set missesShown as miss kyototycoon.records (gauge)Total amount of recordsShown as record kyototycoon.replication.delay (gauge)Replication delayShown as millisecond kyototycoon.size (gauge)Current size of the kyoto tycoon DB kyototycoon.threads (gauge)Total number of threadsShown as thread
Le check Kyoto Tycoon n’inclut aucun événement.
kyototycoon.can_connect Renvoie CRITICAL
si l’Agent n’est pas capable de se connecter a l’instance KyotoTycoon qu’il monitor. Sinon renvoie OK
.Statuses: ok, critical
Besoin d’aide ? Contactez l’assistance Datadog .