Notification Service

Enable Notification Services to monitor events

Overview

You can enable Notification Services to monitor events occurring on objects in a bucket. DC/OS Minio supports the following targets to publish bucket events:

  1. AMQP
  2. Apache Kafka
  3. Elasticsearch
  4. MySQL
  5. MQTT
  6. NATS
  7. PostgreSQL
  8. Redis
  9. Webhook

Use client tools like mc to set and listen for event notifications using the event sub-command.

Notification Services

AMQP

Prerequisites

  • Install RabbitMQ from here.

Configure

To enable the AMQP notification service, provide the following configurations through the DC/OS web interface:

AMQP

Figure 1. - AMQP Edit Configuration page

Buckets can be configured to generate event through client tools like mc. For example, the mc event add command will add an event to a bucket named images through the minio client named myminio when you add or delete objects with the suffix .jpg.

mc event add myminio/images arn:Minio:sqs::1:amqp --suffix .jpg

Kafka

Prerequisite

Configure

To enable the Kafka notification service, provide the following configurations through the DC/OS web interface.

Kafka

Figure 4. - Kafka Edit Configuration page

Buckets can be configured to generate events through client tools like mc. For example, the mc event add command will add an event to a bucket named images through the minio client named myminio when you add or delete objects with the suffix .jpg.

mc event add  myminio/images arn:Minio:sqs::1:kafka --suffix .jpg

Elasticsearch

Prequisites

Configure

This notification target supports two formats: namespace and access.

To enable the Elasticsearch notification service, provide the following configurations through the DC/OS web interface.

Elasticsearch

Figure 5. - Elasticsearch Edit Configuration page

Buckets can be configured to generate event through client tools like mc. For example, the mc event add command will add an event to a bucket named images through the minio client named myminio when you add or delete objects with the suffix .jpg.

mc event add  myminio/images arn:Minio:sqs::1:elasticsearch --suffix .jpg

MQTT

Prerequisites

Configure

To enable the MQTT notification service, provide the following configurations through the DC/OS web interface.

MQTT

Figure 7. - MQTT Edit Configuration page

Buckets can be configured to generate event through client tools like mc. For example, the mc event add command will add an event to a bucket named images through the minio client named myminio when you add or delete objects with the suffix .jpg.

mc event add  myminio/images arn:Minio:sqs::1:mqtt --suffix .jpg

Additional event listing

Additional event can be listed using the following command:

mc event list myminio/images

For more information visit the Minio Bucket Notification Guide.

MySQL

Prerequisite

Configure

This notification target supports two formats: namespace and access.

To enable the MySQL notification service, provide the following configurations through the DC/OS web interface.

Mysql

Figure 7. - Webhook Edit Configuration page

Buckets can be configured to generate event through client tools like mc. For example, the mc event add command will add an event to a bucket named images through the minio client named myminio when you add or delete objects with the suffix .jpg.

mc event add myminio/images arn:Minio:sqs::1:postgresql --suffix .jpg

NATS

Prerequisites

Configure

To enable the NATS notification service, provide the following configurations through the DC/OS web interface.

NATS

Figure 8. - NATS Edit Configuration page (top)

NATS1

Figure 9. - NATS Edit Configuration page (bottom)

Buckets can be configured to generate event through client tools like mc. For example, the mc event add command will add an event to a bucket named images through the minio client named myminio when you add or delete objects with the suffix .jpg.

mc event add  myminio/images arn:Minio:sqs::1:nats --suffix .jpg

PostgreSQL

Prequisite:

This notification target supports two formats: namespace and access.

Configure

To enable the PostgreSQL notification service, provide the following configurations through the DC/OS web interface.

PostgreSQL

Figure 3. - PostgreSQL Edit Configuration page

Buckets can be configured to generate event through client tools like mc. For example, the mc event add command will add an event to a bucket named images through the minio client named myminio when you add or delete objects with the suffix .jpg.

mc event add myminio/images arn:Minio:sqs::1:postgresql --suffix .jpg

Redis

Prerequisite

Configure

This notification target supports two formats: namespace and access.

To enable the Redis notification service, provide the following configurations through the DC/OS web interface:

Redis

Figure 2. - Redis Edit Configuration page

Buckets can be configured to generate event through client tools like mc. For example, the mc event add command will add an event to a bucket named images through the minio client named myminio when you add or delete objects with the suffix .jpg.

mc event add  myminio/images arn:Minio:sqs::1:redis --suffix .jpg

Webhook

Webhooks are a way to receive information when it happens, rather than continually polling for that data.

Prerequisite

Configure

To enable the Webhook notification service, provide the following configurations through the DC/OS web interface.

Webhook

Figure 6. - Webhook Edit Configuration page

Buckets can be configured to generate event through client tools like mc. For example, the mc event add command will add an event to a bucket named images through the minio client named myminio when you add or delete objects with the suffix .jpg.

mc event add myminio/images arn:Minio:sqs::1:webhook --events put --suffix .jpg