Adding Pod Annotations
CCE allows you to add annotations to a YAML file to realize some advanced pod functions. The following table describes the annotations you can add.
Annotation |
Description |
Default Value |
---|---|---|
kubernetes.AOM.log.stdout |
Standard output parameter. If not specified, the standard log output of all containers is reported to AOM. You can collect stdout logs from certain containers or ignore them at all. Example: |
- |
metrics.alpha.kubernetes.io/custom-endpoints |
Parameter for reporting AOM monitoring metrics that you specify. For details, see Custom Monitoring. |
- |
prometheus.io/scrape |
Parameter for reporting Prometheus metrics. If the value is true, the current workload reports the monitoring metrics. For details, see Monitoring by Using the prometheus Add-on. |
- |
prometheus.io/path |
URL for Prometheus to collect data. For details, see Monitoring by Using the prometheus Add-on. |
/metrics |
prometheus.io/port |
Endpoint port number for Prometheus to collect data. For details, see Monitoring by Using the prometheus Add-on. |
- |
prometheus.io/scheme |
Protocol used by Prometheus to collect data. The value can be http or https. For details, see Monitoring by Using the prometheus Add-on. |
- |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.