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
### Configure Prometheus to scrape the Kubernetes API server
101
-
102
-
The metrics available via kubectl top / pod can now be scraped with Prometheus. OpenFaaS ships with Prometheus, and you could reconfigure that version to do this task, but for the tutorial we will install it again.
You will see that a number of pods have been created including "node-exporter" which fetches statistics about each node such as free disk space and CPU utilization.
You can also monitor the replicas of your function in the OpenFaaS UI or via the CLI:
259
227
260
-
```
228
+
```sh
261
229
watch -n 5 "faas-cli list"
262
230
```
263
231
264
-
Here is ane example of the replicas scaling up in response to the traffic created by `hey`:
232
+
Here is an example of the replicas scaling up in response to the traffic created by `hey`:
265
233
266
234
```sh
267
235
Name: nodeinfo
@@ -292,7 +260,7 @@ Note that whilst the scaling up was relatively quick, the scale-down may take si
292
260
293
261
## 3. Wrapping up
294
262
295
-
In this tutorial we disabled the auto-scaling built into OpenFaaS which uses Prometheus and Alertmanager, and added in Kubernetes' own HPAv2 mechanism, its metrics-server and another deployment of Prometheus.
263
+
In this tutorial we disabled the auto-scaling built into OpenFaaS which uses Prometheus and Alertmanager, and added in Kubernetes' own HPAv2 mechanism and its metrics-server.
0 commit comments