Skip to content

Commit e8cbdfe

Browse files
authored
Merge pull request #176418 from nshankar13/nshankar/OSM_AKS_add_on_az_monitor
Remove unnecessary configmap
2 parents 9303883 + 838b4c9 commit e8cbdfe

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

articles/aks/open-service-mesh-azure-monitor.md

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ For metrics to be scraped from a particular namespace monitored by the mesh, the
3737
osm metrics enable --namespace <namespace>
3838
```
3939

40-
For instance, if you are running the [bookstore demo](https://docs.openservicemesh.io/docs/getting_started/quickstart/manual_demo/), you would run the `osm metrics enable` command on the following namespaces:
40+
For instance, if you are running the [bookstore demo](https://release-v0-11.docs.openservicemesh.io/docs/getting_started/quickstart/manual_demo/), you would run the `osm metrics enable` command on the following namespaces:
4141

4242
```sh
4343
osm metrics enable --namespace bookbuyer
4444
osm metrics enable --namespace bookstore
4545
osm metrics enable --namespace bookthief
4646
osm metrics enable --namespace bookwarehouse
4747
```
48-
## Apply ConfigMaps
48+
## Apply ConfigMap
4949

5050
Create the following ConfigMap in `kube-system`, which will tell AzMon what namespaces should be monitored. For instance, for the bookbuyer / bookstore demo, the ConfigMap would look as follows:
5151

@@ -67,23 +67,6 @@ metadata:
6767

6868
```
6969

70-
Next, a second ConfigMap needs to be created to set [monitor_kubernetes_pods to true](https://github.com/microsoft/Docker-Provider/blob/24b709f9e3c3b18779102b491fc98b87a99d1335/kubernetes/container-azm-ms-agentconfig.yaml#L72).
71-
72-
```yaml
73-
kind: ConfigMap
74-
apiVersion: v1
75-
metadata:
76-
name: container-azm-ms-agentconfig
77-
namespace: kube-system
78-
data:
79-
schema-version: v1
80-
config-version: ver1
81-
prometheus-data-collection-settings: |-
82-
[prometheus_data_collection_settings.cluster]
83-
interval = "30s"
84-
monitor_kubernetes_pods = true
85-
```
86-
8770
## View metrics in the Azure portal
8871

8972
In Azure portal, select the Kubernetes cluster and then the "Logs" tab under "Monitoring." You should be now able to query the `InsightsMetrics` table to view metrics in the enabled namespaces. For instance, if you wanted to see the envoy metrics for `bookbuyer`, you would use the following query:

0 commit comments

Comments
 (0)