You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/containers/prometheus-metrics-scrape-configuration.md
+28-60Lines changed: 28 additions & 60 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,34 @@ The following table has a list of all the default targets that the Azure Monitor
57
57
58
58
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.
59
59
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`:
To enable scraping for pods with annotations in all namespaces, use:
81
+
82
+
```yaml
83
+
pod-annotation-based-scraping: |-
84
+
podannotationnamespaceregex = ".*"
85
+
```
86
+
87
+
60
88
### Customize metrics collected by default targets
61
89
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`.
62
90
@@ -280,66 +308,6 @@ metric_relabel_configs:
280
308
regex: '.+'
281
309
```
282
310
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
# 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
-
343
311
## Next steps
344
312
345
313
[Setup Alerts on Prometheus metrics](./container-insights-metric-alerts.md)<br>
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:
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.
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/telephony/includes/phone-numbers-portal.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
To begin provisioning numbers, go to your Communication Services resource on the [Azure portal](https://portal.azure.com).
10
10
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":::
0 commit comments