bekkerstacks / logging-tigf

Monitoring & Logging with Telegraf, InfluxDB, Grafana and FluentD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

logging-tigf

Monitoring & Logging with Telegraf, InfluxDB, Grafana and FluentD

Pre-Requirements

Usage:

Set your domain and deploy the stack:

$ export DOMAIN=mydomain.com
$ docker stack deploy -c docker-compose.yml tig

Logging your Application:

Logs will be pushed to fluentd, which will then push to influxdb.

  • driver: pushing to fluentd
  • option: fluentd-address: 172.18.0.1:24224 (defaults to localhost)
  • option: tag: {type=docker.stack_name=tig.service_name=webapp}
  • option: fluentd-async-connect: "true"

To push your logs to influxdb, set this configuration to your compose:

    logging:
      driver: fluentd
      options:
        tag: docker.tig.webapp
        fluentd-async-connect: "true"

Documentation:

Endpoints:

Example Dashboards:

Screenshots

Add the InfluxDB Logs Datasource:

image

Add the InfluxDB Metrics Datasource:

image

View the logs:

image

View the Metrics:

image

Other Outputs

About

Monitoring & Logging with Telegraf, InfluxDB, Grafana and FluentD


Languages

Language:Dockerfile 100.0%