Monitoring Addons
The monitoring addon provides the ability for clients to add monitoring solutions like Grafana, Prometheus, or Alertmanager. This ensure that concerns are accurately identified, reasons are exposed and mainly, that repairs are implemented in a timely manner which improves overall product quality. For a full accounting of monitoring options and how to enable them, visit our monitoring pages.
YAML Specifications
apiVersionsunpike.platform9.com/v1alpha2kindClusterAddonmetadata labels sunpike.pf9.io/cluster'<clsuuid>' typemonitoring name<clsuuid>-monitoring namespacedefaultspec clusterID'<clsuuid>' override params # storageClassName and pvcSize are optional params, if storage backend # is not configured the prometheus pod will remain in Pending statenamestorageClassName valuedefaultnamepvcSize value"1Gi"nameretentionTime value"7d" typemonitoring version0.46.0 watchtrueThe corresponding Addon object created on the cluster will look similar to this.
apiVersionagent.pf9.io/v1kindAddonmetadata name<clsuuid>-monitoring namespacepf9-addonsspec clusterID<clsuuid> typemonitoring version0.46.0 watchtrue override paramsnamestorageClassName valuedefaultnamepvcSize value"1Gi"nameretentionTime value"7d"Prometheus YAML
When the Prometheus object is deployed by the addon operator, it introduces the following templatized yaml.
apiVersionmonitoring.coreos.com/v1kindPrometheusmetadata namesystem namespacepf9-monitoringspec image .QuayRegistry /prometheus/prometheus additionalScrapeConfigs keyadditional-scrape-config.yaml namescrapeconfig alerting alertmanagersnamesys-alertmanager namespacepf9-monitoring portweb replicas1 resources requests cpu500m memory512Mi retention .retentionTime ruleSelector matchLabels prometheussystem rolealert-rules scrapeInterval2m serviceAccountNamesystem-prometheus- if .storageClassName storage volumeClaimTemplate spec accessModesReadWriteOnce resources requests storage .pvcSize storageClassName .storageClassName - end serviceMonitorSelector matchLabels prometheussystem roleservice-monitorIt should be noted that these addons are updated along with the pf9-kube version and can be referenced in the Support Matrix article. For additional assistance, please contact our support team