Skip to content

Commit 9ca2f89

Browse files
committed
Update README.md
1 parent cbd6af0 commit 9ca2f89

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

metrics-examples/README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ The application provided in this example expose Prometheus metrics at `/metrics`
1717
Once custom metrics scraping is enabled (see asset [metrics-collector](../metrics-collector/README.md)), the following command can be used to import the "My custom Code Engine Metrics" dashboard into IBM Cloud Monitoring:
1818

1919
```bash
20+
REGION=<region-of-your-IBM-Cloud-Monitoring-instance; e.g. eu-es>
21+
MONITORING_INSTANCE_GUID=<guid-of-your-IBM-Cloud-Monitoring-instance>
22+
2023
# Load the custom metric dashboard configuration
21-
CE_CUSTOM_METRICS_DASHBOARD=$(curl -sL https://raw.githubusercontent.com/IBM/CodeEngine/main/metrics-examples/my-custom-code-engine-metrics-dashboard.json)
24+
CE_CUSTOM_METRICS_DASHBOARD=$(curl -sL https://raw.githubusercontent.com/IBM/CodeEngine/metric-collector-v2/metrics-examples/my-custom-code-engine-metrics-dashboard.json)
2225

2326
# Import the dashboard
2427
curl -X POST https://$REGION.monitoring.cloud.ibm.com/api/v3/dashboards \
@@ -86,12 +89,12 @@ Configuration options:
8689
To deploy your own httpbin instance on IBM Cloud Code Engine instead of using the public service, use the following command with an image from a registry other than docker.io:
8790

8891
```bash
89-
ibmcloud ce application update \
92+
ibmcloud ce app create \
9093
--name httpbin \
9194
--src https://github.com/mark-sivill/httpbin \
9295
--memory 0.5G \
9396
--cpu 0.25 \
94-
--min-scale 1 \
97+
--min-scale 0 \
9598
--max-scale 3 \
9699
--concurrency 100 \
97100
--port 9000
@@ -103,12 +106,10 @@ After deployment, get the application URL:
103106
ibmcloud ce application get --name httpbin --output url
104107
```
105108

106-
Then configure the network-test-app to use your httpbin instance:
109+
Then configure the metrics-example-app-node to use your httpbin instance:
107110

108111
```bash
109112
ibmcloud ce application update \
110-
--name network-test-app \
113+
--name metrics-example-app-node \
111114
--env HTTPBIN_BASE_URL=https://httpbin.your-project.us-south.codeengine.appdomain.cloud
112115
```
113-
114-
The httpbin image from GitHub Container Registry (ghcr.io) is the official Postman-maintained implementation that works well in Code Engine environments.

0 commit comments

Comments
 (0)