monasca / monasca-docker

Docker files and setup for Monasca
Apache License 2.0
24 stars 47 forks source link

Monasca-monitoring not working #474

Closed zhangjianweibj closed 5 years ago

zhangjianweibj commented 5 years ago

hello, as the document describe ,added mysql environment tag,but agent pods no mysql.yml file in /etc/monasca/conf.d .why?

image

env as follows: image

and agent pods env image

very thanks.

matrixik commented 5 years ago

Hello, Could you provide some more information for example how did you run agent-collector container? What command and if you restarted it after changing configuration? Templating all configuration files happen at the container start. I can't reproduce it locally. When I run default containers with default configuration in this repository I have all proper files:

/etc/monasca/agent/conf.d # ls
cadvisor_host.yaml   cpu.yaml             disk.yaml            http_check.yaml      kafka_consumer.yaml  load.yaml            memory.yaml          mysql.yaml           process.yaml         zk.yaml
matrixik commented 5 years ago

Also looks like you are using quite old version of this container. The newest one is master-20180914-130916.

You can check last tested versions in: https://github.com/monasca/monasca-docker/blob/master/.env

zhangjianweibj commented 5 years ago

@matrixik very thanks.i install agent by kubernetes deployment.yaml file as follows. image image image image image image

zhangjianweibj commented 5 years ago

and agent version is monasca/agent-collector:master-20180112-162543.agent confid.d directory has prometheus.yml kubernetes.yml but no mysql.yml.

matrixik commented 5 years ago

This old version will not work because MONASCA_MONITORING was added later in this commit: https://github.com/monasca/monasca-docker/commit/44216fe6ebd51905dbbd58af335233f21a06ee08

zhangjianweibj commented 5 years ago

@matrixik very thanks.but i want to know how to config ,then my service mysql & redis can be monitored?

matrixik commented 5 years ago

You need to use monasca/agent-collector container in newer version.

zhangjianweibj commented 5 years ago

@matrixik ok,very thanks.