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:
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:
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
- Install Apache Kafka.
Configure
To enable the Kafka notification service, provide the following configurations through the DC/OS web interface.
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
- Install Elasticsearch server.
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.
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
- Install an MQTT Broker.
Configure
To enable the MQTT notification service, provide the following configurations through the DC/OS web interface.
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
- Install MySQL.
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.
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
- Install NATS.
Configure
To enable the NATS notification service, provide the following configurations through the DC/OS web interface.
Figure 8. - NATS Edit Configuration page (top)
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:
- Install PostgreSQL database server.
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.
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
- Install Redis server.
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:
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
- Install Webhooks.
Configure
To enable the Webhook notification service, provide the following configurations through the DC/OS web interface.
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