Skip to content

Commit bc5b43a

Browse files
committed
feat(queues): add queues doc
1 parent e2ddc4d commit bc5b43a

18 files changed

+1400
-0
lines changed

menu/navigation.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4147,7 +4147,11 @@
41474147
"items": [
41484148
{
41494149
"label": "Overview",
4150+
<<<<<<< HEAD
41504151
"slug": "../nats"
4152+
=======
4153+
"slug": "../queues"
4154+
>>>>>>> 9860710e2 (feat(queues): add queues doc)
41514155
},
41524156
{
41534157
"label": "Concepts",
@@ -4164,11 +4168,15 @@
41644168
{
41654169
"items": [
41664170
{
4171+
<<<<<<< HEAD
41674172
"label": "Create a NATS account",
41684173
"slug": "create-account"
41694174
},
41704175
{
41714176
"label": "Create NATS credentials",
4177+
=======
4178+
"label": "Create credentials",
4179+
>>>>>>> 9860710e2 (feat(queues): add queues doc)
41724180
"slug": "create-credentials"
41734181
},
41744182
{
@@ -4180,8 +4188,13 @@
41804188
"slug": "monitor-nats-cockpit"
41814189
},
41824190
{
4191+
<<<<<<< HEAD
41834192
"label": "Delete a NATS account",
41844193
"slug": "delete-account"
4194+
=======
4195+
"label": "Monitor Queues with Cockpit",
4196+
"slug": "monitor-queues-cockpit"
4197+
>>>>>>> 9860710e2 (feat(queues): add queues doc)
41854198
}
41864199
],
41874200
"label": "How to",
@@ -4190,12 +4203,29 @@
41904203
{
41914204
"items": [
41924205
{
4206+
<<<<<<< HEAD
41934207
"label": "NATS API Reference",
41944208
"slug": "https://www.scaleway.com/en/developers/api/messaging-and-queuing/nats-api/"
41954209
},
41964210
{
41974211
"label": "Using the NATS CLI",
41984212
"slug": "nats-cli"
4213+
=======
4214+
"label": "Queues API Reference",
4215+
"slug": "https://www.scaleway.com/en/developers/api/messaging-and-queuing/sqs-api/"
4216+
},
4217+
{
4218+
"label": "Connecting Queues to the AWS-CLI",
4219+
"slug": "connect-aws-cli"
4220+
},
4221+
{
4222+
"label": "Using Queues with the AWS-CLI",
4223+
"slug": "queues-aws-cli"
4224+
},
4225+
{
4226+
"label": "Using Go, Python or Node.js with Queues",
4227+
"slug": "python-node-queues"
4228+
>>>>>>> 9860710e2 (feat(queues): add queues doc)
41994229
}
42004230
],
42014231
"label": "API/CLI",
@@ -4204,8 +4234,17 @@
42044234
{
42054235
"items": [
42064236
{
4237+
<<<<<<< HEAD
42074238
"label": "NATS overview",
42084239
"slug": "nats-overview"
4240+
=======
4241+
"label": "Queues overview",
4242+
"slug": "queues-overview"
4243+
},
4244+
{
4245+
"label": "Queues - supported actions",
4246+
"slug": "queues-support"
4247+
>>>>>>> 9860710e2 (feat(queues): add queues doc)
42094248
},
42104249
{
42114250
"label": "Limitations",
@@ -4216,8 +4255,13 @@
42164255
"slug": "reference-content"
42174256
}
42184257
],
4258+
<<<<<<< HEAD
42194259
"label": "NATS",
42204260
"slug": "nats"
4261+
=======
4262+
"label": "Queues",
4263+
"slug": "queues"
4264+
>>>>>>> 9860710e2 (feat(queues): add queues doc)
42214265
},
42224266
{
42234267
"items": [
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
meta:
3+
title: How to monitor Queues with Scaleway Cockpit
4+
description: Monitor your Queues services with Scaleway Cockpit. This guide helps you track performance to manage your messaging services efficiently.
5+
content:
6+
h1: How to monitor Queues with Scaleway Cockpit
7+
paragraph: Monitor your Queues services with Scaleway Cockpit. This guide helps you track performance to manage your messaging services efficiently.
8+
tags: messaging queuing queues cockpit metrics observability
9+
categories:
10+
- serverless
11+
dates:
12+
validation: 2025-04-03
13+
posted: 2025-04-03
14+
---
15+
16+
You can view metrics for your Queues services via [Scaleway Cockpit](/cockpit/quickstart/). This allows you to monitor your queues and messages at a glance. There are two steps to complete to view your metrics for the first time with Cockpit:
17+
18+
1. Generate your Grafana credentials
19+
2. Access the product's metrics dashboard
20+
21+
These steps are described below.
22+
23+
<Macro id="requirements" />
24+
25+
- A Scaleway account logged into the [console](https://console.scaleway.com)
26+
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
27+
28+
## How to generate Grafana credentials
29+
30+
To view your metrics with Cockpit, you will use a Grafana dashboard which is accessible from the Scaleway console. First, you must create a user and their associated credentials (a username and password) for Grafana. This can be done directly from the Scaleway console, [by following this procedure](/cockpit/how-to/retrieve-grafana-credentials/).
31+
32+
## How to access your Queues dashboard and view your metrics
33+
34+
1. Click **Queues** in the **Serverless** section of the Scaleway console side menu.
35+
36+
2. Click the **Metrics** tab.
37+
38+
3. Click **Open Grafana metrics dashboard**.
39+
40+
4. Enter your Grafana username and password to log in.
41+
42+
You are directed to the Queues dashboard, where you can view all your metrics.
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
---
2+
meta:
3+
title: Connecting Scaleway Queues to the AWS-CLI
4+
description: This page explains how to connect Scaleway Queues to the AWS-CLI
5+
content:
6+
h1: Connecting Scaleway Queues to the AWS-CLI
7+
paragraph: This page explains how to connect Scaleway Queues to the AWS-CLI
8+
tags: messaging queues sqs aws-cli cli aws sdk python boto
9+
categories:
10+
- serverless
11+
dates:
12+
validation: 2025-04-02
13+
posted: 2025-04-02
14+
---
15+
16+
The AWS-CLI is an open-source tool built on top of the AWS SDK for Python (Boto) that provides commands for interacting with AWS services. With minimal configuration, you can start using the AWS-CLI with Scaleway Queues. This allows you to create, list and manage your queues, send messages and much more, all from your command line.
17+
18+
This guide shows you how to install the AWS-CLI and configure it to connect to Scaleway Queues.
19+
20+
<Macro id="requirements" />
21+
22+
- A Scaleway account logged into the [console](https://console.scaleway.com)
23+
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
24+
- Valid [credentials](/queues/how-to/create-credentials/) for Scaleway Queues
25+
<Message type="note">
26+
This page assumes you will use the AWS-CLI v1.
27+
</Message>
28+
29+
## How to install the AWS-CLI
30+
31+
To interact with Scaleway Queues, both `aws-cli` and `awscli-plugin-endpoint` need to be installed. The `awscli-plugin-endpoint` is a useful plugin to help people more easily access third-party providers such as Scaleway.
32+
33+
Install both `aws-cli` and `awscli-plugin` using `pip`.
34+
35+
```
36+
pip3 install awscli
37+
pip3 install awscli-plugin-endpoint
38+
```
39+
40+
## How to configure the AWS-CLI
41+
42+
Now you have installed the AWS-CLI, you need to configure it for use with Scaleway Queues.
43+
44+
1. Create a file named `~/.aws/config` by running the following command:
45+
```
46+
aws configure set plugins.endpoint awscli_plugin_endpoint
47+
```
48+
49+
<Message type="tip">
50+
With the most recent versions of awscli (1.29.0 or 2.13.0), the use of a plugin is not necessary. If you are using one of those versions and wish to skip this step, you can do so. Note that this will also affect your configuration file in the next step.
51+
</Message>
52+
53+
2. Open the `~/.aws/config` file you just created in a text editor and edit it as follows (the Queues (SQS) endpoint URL can be found in the console on the **Settings** page of the Queues product)
54+
```
55+
[plugins]
56+
endpoint = awscli_plugin_endpoint
57+
[profile sns]
58+
region = fr-par
59+
[profile sqs]
60+
region = fr-par
61+
sqs =
62+
endpoint_url = https://sqs.mnq.fr-par.scaleway.com
63+
```
64+
65+
Optionally, you can also configure additional profiles by adding new blocks under `[sqs]`. For example, you can add a profile for `[sns]` if you are also using Scaleway Topics and Events, or another profile, `[profile aws]`, to connect to the AWS SQS/SNS service if you want:
66+
67+
```
68+
[plugins]
69+
endpoint = awscli_plugin_endpoint
70+
[profile sns]
71+
region = fr-par
72+
sns =
73+
endpoint_url = https://sns.mnq.fr-par.scaleway.com
74+
[profile sqs]
75+
region = fr-par
76+
sqs =
77+
endpoint_url = https://sqs.mnq.fr-par.scaleway.com
78+
[profile aws]
79+
region=eu-west-3
80+
output=json
81+
```
82+
83+
<Message type="important">
84+
If you are using the AWS-CLI v2, you must include the path to the plugin in your configuration file. Add `cli_legacy_plugin_path = <path-to-plugin>` to the `[plugins]` section, replacing `<path-to-plugin>` with the corresponding path.
85+
</Message>
86+
87+
<Message type="tip">
88+
If you are using aws 1.29.0 or 2.13.0 without the plugin, your configuration file should be as follows:
89+
```
90+
[profile sqs]
91+
region = fr-par
92+
endpoint_url = https://sqs.mnq.fr-par.scaleway.com
93+
```
94+
</Message>
95+
96+
97+
3. Generate a credentials file using the following command:
98+
```
99+
aws configure
100+
```
101+
102+
4. Open the `~/.aws/credentials` file you just created, and add the access key and secret key you saved when you generated your [credentials](/queues/how-to/create-credentials/):
103+
```
104+
[queues]
105+
aws_access_key_id=<ACCESS_KEY_FOR_SQS>
106+
aws_secret_access_key=<SECRET_KEY_FOR_SQS>
107+
```
108+
109+
If you have other profiles, you can add a block to indicate their credentials too:
110+
```
111+
[topics_events]
112+
aws_access_key_id=<ACCESS_KEY_FOR_SNS>
113+
aws_secret_access_key=<SECRET_KEY_FOR_SNS>
114+
115+
[aws]
116+
aws_access_key_id=<ACCESS_KEY>
117+
aws_secret_access_key=<SECRET_KEY>
118+
```
119+
120+
5. Test that everything is set up correctly with the following command:
121+
```
122+
aws queues list-queues
123+
```
124+
125+
Use the `--profile` option if you want to test it using a different profile.
126+
127+
<Message type="tip">
128+
Check out our dedicated documentation to find more common commands for getting started with the AWS CLI. The [Queues guide](/queues/api-cli/sqs-sns-aws-cli/#getting-started-with-scaleway-queues) walks you through creating and listing queues, sending messages to queues, and more.
129+
</Message>

pages/queues/api-cli/index.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
meta:
3+
title: Queues - API/CLI Documentation
4+
description: Queues API/CLI Documentation
5+
content:
6+
h1: Queues - API/CLI Documentation
7+
paragraph: Queues API/CLI Documentation
8+
---

0 commit comments

Comments
 (0)