chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

How to use/enable predefined canned dashboard templates?

Open zshamrock opened this issue 9 years ago • 12 comments

In the README.md it says: Chronograf's pre-canned dashboards for the supported Telegraf input plugins. Currently, Chronograf offers dashboard templates for the following Telegraf input plugins:

But when I run the Chronograf (I run from Docker if it matters), I only see Kubernetes Dashboard.

How I can enable and use other available pre-canned dashboards in Chronograf?

zshamrock avatar Dec 15 '16 09:12 zshamrock

if you have host reporting to influxdb from telegraf, those dashboards should be available on host listing.

rlex avatar Dec 15 '16 16:12 rlex

@zshamrock, @rlex is correct. Click on Host List and each host should have predefined apps (dashboards).

121watts avatar Dec 15 '16 18:12 121watts

@zshamrock If you aren't running the system and cpu plugins then they won't show up on the hostlist. This isn't well documented. If you run into issues you can post here

jackzampolin avatar Dec 15 '16 18:12 jackzampolin

@zshamrock Thanks for writing in... btw, @jackzampolin has created kubernetes daemon sets and telegraf configurations:

https://github.com/jackzampolin/tick-kube/blob/master/telegraf

Check out his telegraf configuration. In a docker environment you could use everything in it except dns, kubernetes and prometheus/etcd monitoring.

Also, check out his daemonset.yaml... the big thing is mounting /proc, /sys and such into the docker container running telegraf AND set the HOST_PROC and HOST_SYS environment variables.

goller avatar Dec 15 '16 22:12 goller

Hi, guys, there is a medium post published today https://medium.com/picnic-engineering/tick-tock-5f0cc49ac5e1, you might be interested to take a look.

There you can see that I've enabled RabbitMQ and MongoDB plugins, but still in the Host List saw only Kubernetes dashboards.

zshamrock avatar Dec 17 '16 16:12 zshamrock

Hey @zshamrock thanks for the post! It's great to see you using it! So, I think you'll be able to get the rabbitmq and mongo dashboards working with just one change to your configuration.

Add cpu and system to telegraf configuration like this:

[[inputs.cpu]]
  percpu = true
  totalcpu = true
  collect_cpu_time = false

[[inputs.system]]

Now, that should be all you need to do.

However, if you want to collect information about the host that the telegraf docker container is running on then you would modify your docker compose like this:


services:
  telegraf:
    image: telegraf:1.1.2
    container_name: telegraf1.1.2
    # use network_mode: "service:influxdb" to be able to use http://localhost:8086 to connect influxdb output plugin
    # an alternative option would be to specify 
    # networks: 
    #   - influxdb
    # which puts both Telegraf and InfluxDB on the same network, 
    # but does require to update conf/telegraf.conf: set urls of [[output.influxdb]] into http://influxdb:8086          
    network_mode: "service:influxdb"
    volumes:
      - $PWD/conf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
      - /proc:/rootfs/proc
      - /sys:/rootfs/sys
    environment:
      - HOST_PROC=/rootfs/proc
      - HOST_SYS=/rootfs/sys
    depends_on:
      - influxdb

Note: this docker compose would only work on linux.

So, if you have time would you let us know if you like the pre-canned metrics we created for rabbitmq and mongodb?

goller avatar Dec 21 '16 22:12 goller

Hey @goller , I have ran into same issue. Mongodb metrics doesn't show up as a predefined app . nginx metrics show up as a predefined app, influxdb too. I have enabled debug log on chronograf and noticed this in log:

time="X" level=debug msg=query command="show series from /^apache$|^consul_health_checks$|^cpu$|^disk$|^docker$|^elasticsearch_indices$|^haproxy$|^influxdb_database$|^influxdb_httpd$|^influxdb_queryExecutor$|^influxdb_write$|^kubernetes_node$|^kubernetes_pod_container$|^kubernetes_pod_network$|^kubernetes_system_container$|^system$|^mem$|^memcached$|^mysql$|^netstat$|^nginx$|^nsq_channel$|^nsq_server$|^nsq_topic$|^ping$|^postgresql$|^processes$|^redis$|^riak$|^varnish$|^win_cpu$|^win_mem$|^win_net$|^win_system$|^win_websvc$/" component=proxy db=telegraf host="localhost:8086" rp=

I am running Chronograf 1.2.0~n201612220834 (git: 210cd7a358921a6bcde794485521995e0b3650d1)

al3k avatar Dec 30 '16 13:12 al3k

Ahah! Your log shows the issue! Mongo isn't in that list. I'll dig into why.

Thanks for the info!

On Dec 30, 2016, at 6:26 AM, al3k [email protected] wrote:

Hey @goller , I have ran into same issue. Mongodb metrics doesn't show up as a predefined app . nginx metrics show up as a predefined app, influxdb too. I have enabled debug log on chronograf and noticed this in log:

time="X" level=debug msg=query command="show series from /^apache$|^consul_health_checks$|^cpu$|^disk$|^docker$|^elasticsearch_indices$|^haproxy$|^influxdb_database$|^influxdb_httpd$|^influxdb_queryExecutor$|^influxdb_write$|^kubernetes_node$|^kubernetes_pod_container$|^kubernetes_pod_network$|^kubernetes_system_container$|^system$|^mem$|^memcached$|^mysql$|^netstat$|^nginx$|^nsq_channel$|^nsq_server$|^nsq_topic$|^ping$|^postgresql$|^processes$|^redis$|^riak$|^varnish$|^win_cpu$|^win_mem$|^win_net$|^win_system$|^win_websvc$/" component=proxy db=telegraf host="localhost:8086" rp=

I am running Chronograf 1.2.0~n201612220834 (git: 210cd7a)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

goller avatar Dec 30 '16 14:12 goller

Yup, the mongo layout is messed up:

https://github.com/influxdata/chronograf/commit/cee5c85116694a1395b233e201de156cfb92e073

@nhaugo , I'm AFK and on my phone until Jan 3. If you could revert the commit above, that should fix it.

On Dec 30, 2016, at 6:26 AM, al3k [email protected] wrote:

Hey @goller , I have ran into same issue. Mongodb metrics doesn't show up as a predefined app . nginx metrics show up as a predefined app, influxdb too. I have enabled debug log on chronograf and noticed this in log:

time="X" level=debug msg=query command="show series from /^apache$|^consul_health_checks$|^cpu$|^disk$|^docker$|^elasticsearch_indices$|^haproxy$|^influxdb_database$|^influxdb_httpd$|^influxdb_queryExecutor$|^influxdb_write$|^kubernetes_node$|^kubernetes_pod_container$|^kubernetes_pod_network$|^kubernetes_system_container$|^system$|^mem$|^memcached$|^mysql$|^netstat$|^nginx$|^nsq_channel$|^nsq_server$|^nsq_topic$|^ping$|^postgresql$|^processes$|^redis$|^riak$|^varnish$|^win_cpu$|^win_mem$|^win_net$|^win_system$|^win_websvc$/" component=proxy db=telegraf host="localhost:8086" rp=

I am running Chronograf 1.2.0~n201612220834 (git: 210cd7a)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

goller avatar Dec 30 '16 14:12 goller

@goller @nhaugo - Are you going to fix it anytime soon ? I can see that mongo layout is missing from beta4 still ...

al3k avatar Jan 04 '17 12:01 al3k

@al3k Mongo should now be fixed. Our plan is to release beta5 on 7 Jan (if not earlier).

goller avatar Jan 05 '17 05:01 goller

@al3k as @goller said this is fixed and is in the https://github.com/influxdata/chronograf/releases/tag/1.1.0-beta5 release

nhaugo avatar Jan 06 '17 19:01 nhaugo