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: metrics-examples/README.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,11 @@ The application provided in this example expose Prometheus metrics at `/metrics`
17
17
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:
18
18
19
19
```bash
20
+
REGION=<region-of-your-IBM-Cloud-Monitoring-instance; e.g. eu-es>
curl -X POST https://$REGION.monitoring.cloud.ibm.com/api/v3/dashboards \
@@ -86,12 +89,12 @@ Configuration options:
86
89
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:
87
90
88
91
```bash
89
-
ibmcloud ce application update \
92
+
ibmcloud ce app create \
90
93
--name httpbin \
91
94
--src https://github.com/mark-sivill/httpbin \
92
95
--memory 0.5G \
93
96
--cpu 0.25 \
94
-
--min-scale 1 \
97
+
--min-scale 0 \
95
98
--max-scale 3 \
96
99
--concurrency 100 \
97
100
--port 9000
@@ -103,12 +106,10 @@ After deployment, get the application URL:
103
106
ibmcloud ce application get --name httpbin --output url
104
107
```
105
108
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:
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