Skip to content

Commit dde69c4

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/azure-docs-pr into rolyon-rbac-classic-admin-retire-steps-prepare
2 parents 858bf5e + 73f6301 commit dde69c4

File tree

45 files changed

+719
-676
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+719
-676
lines changed

articles/azure-monitor/containers/prometheus-metrics-scrape-configuration.md

Lines changed: 28 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,34 @@ The following table has a list of all the default targets that the Azure Monitor
5757

5858
If you want to turn on the scraping of the default targets that aren't enabled by default, edit the [configmap](https://aka.ms/azureprometheus-addon-settings-configmap) `ama-metrics-settings-configmap` to update the targets listed under `default-scrape-settings-enabled` to `true`. Apply the configmap to your cluster.
5959

60+
### Enable pod annotation-based scraping
61+
To scrape application pods without needing to create a custom Prometheus config, annotations can be added to the pods. The annotation `prometheus.io/scrape: "true"` is required for the pod to be scraped. The annotations `prometheus.io/path` and `prometheus.io/port` indicate the path and port that the metrics are hosted at on the pod. The annotations for a pod that is hosting metrics at `<pod IP>:8080/metrics` would be:
62+
63+
```yaml
64+
metadata:
65+
annotations:
66+
prometheus.io/scrape: 'true'
67+
prometheus.io/path: '/metrics'
68+
prometheus.io/port: '8080'
69+
```
70+
71+
Scraping these pods with specific annotations is disabled by default. To enable, in the `ama-metrics-settings-configmap`, add the regex for the namespace(s) of the pods with annotations you wish to scrape as the value of the field `podannotationnamespaceregex`.
72+
73+
For example, the following setting scrapes pods with annotations only in the namespaces `kube-system` and `default`:
74+
75+
```yaml
76+
pod-annotation-based-scraping: |-
77+
podannotationnamespaceregex = "kube-system|my-namespace"
78+
```
79+
80+
To enable scraping for pods with annotations in all namespaces, use:
81+
82+
```yaml
83+
pod-annotation-based-scraping: |-
84+
podannotationnamespaceregex = ".*"
85+
```
86+
87+
6088
### Customize metrics collected by default targets
6189
By default, for all the default targets, only minimal metrics used in the default recording rules, alerts, and Grafana dashboards are ingested as described in [minimal-ingestion-profile](prometheus-metrics-scrape-configuration-minimal.md). To collect all metrics from default targets, update the keep-lists in the settings configmap under `default-targets-metrics-keep-list`, and set `minimalingestionprofile` to `false`.
6290

@@ -280,66 +308,6 @@ metric_relabel_configs:
280308
regex: '.+'
281309
```
282310
283-
### Pod annotation-based scraping
284-
285-
The following scrape config uses the `__meta_*` labels added from the `kubernetes_sd_configs` for the `pod` role to filter for pods with certain annotations.
286-
287-
To scrape certain pods, specify the port, path, and scheme through annotations for the pod and the following job scrapes only the address specified by the annotation:
288-
289-
- `prometheus.io/scrape`: Enable scraping for this pod.
290-
- `prometheus.io/scheme`: If the metrics endpoint is secured, you need to set scheme to `https` and most likely set the TLS config.
291-
- `prometheus.io/path`: If the metrics path isn't /metrics, define it with this annotation.
292-
- `prometheus.io/port`: Specify a single port that you want to scrape.
293-
294-
```yaml
295-
scrape_configs:
296-
- job_name: 'kubernetespods-sample'
297-
298-
kubernetes_sd_configs:
299-
- role: pod
300-
301-
relabel_configs:
302-
# Scrape only pods with the annotation: prometheus.io/scrape = true
303-
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
304-
action: keep
305-
regex: true
306-
307-
# If prometheus.io/path is specified, scrape this path instead of /metrics
308-
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
309-
action: replace
310-
target_label: __metrics_path__
311-
regex: (.+)
312-
313-
# If prometheus.io/port is specified, scrape this port instead of the default
314-
- source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port]
315-
action: replace
316-
regex: ([^:]+)(?::\d+)?;(\d+)
317-
replacement: $1:$2
318-
target_label: __address__
319-
320-
# If prometheus.io/scheme is specified, scrape with this scheme instead of http
321-
- source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scheme]
322-
action: replace
323-
regex: (http|https)
324-
target_label: __scheme__
325-
326-
# Include the pod namespace as a label for each metric
327-
- source_labels: [__meta_kubernetes_namespace]
328-
action: replace
329-
target_label: kubernetes_namespace
330-
331-
# Include the pod name as a label for each metric
332-
- source_labels: [__meta_kubernetes_pod_name]
333-
action: replace
334-
target_label: kubernetes_pod_name
335-
336-
# [Optional] Include all pod labels as labels for each metric
337-
- action: labelmap
338-
regex: __meta_kubernetes_pod_label_(.+)
339-
```
340-
341-
See the [Apply config file](prometheus-metrics-scrape-validate.md#deploy-config-file-as-configmap) section to create a configmap from the Prometheus config.
342-
343311
## Next steps
344312
345313
[Setup Alerts on Prometheus metrics](./container-insights-metric-alerts.md)<br>

articles/azure-monitor/essentials/prometheus-api-promql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ The following limitations are in addition to those detailed in the Prometheus sp
207207

208208
For more information on Prometheus metrics limits, see [Prometheus metrics](../../azure-monitor/service-limits.md#prometheus-metrics)
209209

210-
[!INCLUDE [prometheus-case-sensitivity.md](..//includes/prometheus-case-sensitivity.md)]
210+
[!INCLUDE [prometheus-case-sensitivity.md](../includes/prometheus-case-sensitivity.md)]
211211

212212
## Frequently asked questions
213213

articles/communication-services/quickstarts/telephony/get-phone-number.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.topic: quickstart
1010
ms.service: azure-communication-services
1111
ms.subservice: pstn
1212
ms.custom: references_regions, mode-other, devx-track-extended-java, devx-track-js, devx-track-python
13-
zone_pivot_groups: acs-azcli-azp-java-net-python-csharp-js
13+
zone_pivot_groups: acs-azcli-azp-azpnew-java-net-python-csharp-js
1414
---
1515

1616
# Quickstart: Get and manage phone numbers
@@ -27,6 +27,10 @@ zone_pivot_groups: acs-azcli-azp-java-net-python-csharp-js
2727
[!INCLUDE [Azure portal](./includes/phone-numbers-portal.md)]
2828
::: zone-end
2929

30+
::: zone pivot="platform-azp-new"
31+
[!INCLUDE [Azure portal (new)](./includes/phone-numbers-portal-new.md)]
32+
::: zone-end
33+
3034
::: zone pivot="programming-language-csharp"
3135
[!INCLUDE [Azure portal](./includes/phone-numbers-net.md)]
3236
::: zone-end
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
[!INCLUDE [Public Preview Notice](../../../includes/public-preview-include.md)]
2+
3+
Azure Communication Services is introducing a new user experience for purchasing phone numbers. This experience is currently being flighted, and you might be introduced to this experience when purchasing a phone number in Azure portal. If you have feedback on this experience, don't hesitate to give it through the **Give feedback** button on Azure portal extension.
4+
5+
## Prerequisites
6+
7+
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
8+
- [An active Communication Services resource.](../../create-communication-resource.md)
9+
10+
## Purchase a phone number
11+
12+
1. Navigate to your Communication Service resource in the [Azure portal](https://portal.azure.com).
13+
14+
:::image type="content" source="../media/trial-phone-numbers/trial-overview.png" alt-text="Screenshot showing a Communication Services resource's main page." lightbox="../media/trial-phone-numbers/trial-overview.png":::
15+
16+
2. In the Communication Services resource overview, select on the "Phone numbers" option in the left-hand menu.
17+
18+
:::image type="content" source="../media/phone-numbers-portal/get-phone-number-start.png" alt-text="Screenshot showing a Communication Services resource's phone numbers page." lightbox="../media/phone-numbers-portal/get-phone-number-start.png":::
19+
20+
3. Select **Get** on the top left of the page to purchase your phone number. Selecting this launches our shopping wizard:
21+
22+
:::image type="content" source="../media/phone-numbers-portal/get-phone-number-search.png" alt-text="Screenshot showing phone number shopping cart search wizard." lightbox="../media/phone-numbers-portal/get-phone-number-search.png":::
23+
24+
4. Choose the **Country/region** where you would like to provision the phone number. Country availability is based on the billing location for your Azure subscription. More information on what numbers are available for each country can be found [here](../../../concepts/numbers/sub-eligibility-number-capability.md). Next you'll choose the [number type](../../../concepts/telephony/plan-solution.md#phone-number-types-in-azure-communication-services). You can select from two phone number types: **Local**, and **Toll-free**.
25+
26+
5. Select **Search** to pull up numbers that meet your selected criteria. You have various filters to search for the number that fits your needs, including:
27+
28+
- **Use case**: This is for whether you are using this number to call from an application (A2P) or from a human agent (P2P).
29+
- **Calling**: This is for determining the Calling capabilities you would like for your phone number: Making calls and/or receiving calls.
30+
- **SMS**: This is for determining the SMS capabilities you would like for your phone number: Sending and/or receiving SMS messages.
31+
- **Custom**: You can also add custom filters to get a certain prefix or set of digits in your phone number.
32+
33+
:::image type="content" source="../media/phone-numbers-portal/get-phone-number-cart.png" alt-text="Screenshot showing phone number purchase page with available phone numbers." lightbox="../media/phone-numbers-portal/get-phone-number-cart.png":::
34+
35+
6. Once you find the phone number or numbers to your choosing, select **Add to cart** to hold the numbers in the Telephony cart. These numbers are held for 16 minutes before your cart is automatically cleared.
36+
37+
:::image type="content" source="../media/phone-numbers-portal/get-phone-number-cart-2.png" alt-text="Screenshot showing phone number shopping cart with two phone numbers in the cart." lightbox="../media/phone-numbers-portal/get-phone-number-cart-2.png":::
38+
39+
> [!NOTE]
40+
> The prices shown are the **monthly recurring charges** which cover the cost of leasing the selected phone number to you. Not included in this view is the **Pay-as-you-go costs** which are incurred when you make or receive calls. The price lists are [available here](../../../concepts/pricing.md). These costs depend on number type and destinations called. For example, price-per-minute for a call from a Seattle regional number to a regional number in New York and a call from the same number to a UK mobile number may be different.
41+
42+
7. Select **Next** to review your purchase. To complete your purchase, select **Buy now**.
43+
44+
:::image type="content" source="../media/phone-numbers-portal/get-phone-number-review.png" alt-text="Screenshot showing 2 phone numbers to review and purchase." lightbox="../media/phone-numbers-portal/get-phone-number-review.png":::
45+
46+
8. You can find your purchased numbers back on the **Phone numbers** page. It might take a few minutes for the numbers to be provisioned.
47+
48+
:::image type="content" source="../media/phone-numbers-portal/get-phone-number-purchased.png" alt-text="Screenshot of the phone numbers page with the newly purchased phone numbers boxed with a red border." lightbox="../media/phone-numbers-portal/get-phone-number-purchased.png":::
49+
50+
51+
### Update Phone Number Capabilities
52+
53+
On the **Phone Numbers** page, you can select a phone number to configure it.
54+
55+
:::image type="content" source="../../media/manage-phone-azure-portal-capability-update.png" alt-text="Screenshot showing the update features page." lightbox="../../media/manage-phone-azure-portal-capability-update.png":::
56+
57+
Select the features from the available options, then select **Save** to apply your selection.
58+
59+
### Release Phone Number
60+
61+
On the **Numbers** page, you can release phone numbers.
62+
63+
:::image type="content" source="../../media/manage-phone-azure-portal-release-number.png" alt-text="Screenshot showing the release phone numbers page." lightbox="../../media/manage-phone-azure-portal-release-number.png":::
64+
65+
Select the phone number that you want to release and then select on the **Release** button.

articles/communication-services/quickstarts/telephony/includes/phone-numbers-portal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
To begin provisioning numbers, go to your Communication Services resource on the [Azure portal](https://portal.azure.com).
1010

11-
:::image type="content" source="../../media/manage-phone-azure-portal-start.png" alt-text="Screenshot showing a Communication Services resource's main page.":::
11+
:::image type="content" source="../media/trial-phone-numbers/trial-overview.png" alt-text="Screenshot showing a Communication Services resource's main page." lightbox="../media/trial-phone-numbers/trial-overview.png":::
1212

1313
### Search for Available Phone Numbers
1414

132 KB
Loading
82.2 KB
Loading
73.8 KB
Loading
53.2 KB
Loading
32 KB
Loading

0 commit comments

Comments
 (0)