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
apiVersion sunpike.platform9.com/v1alpha2
kind ClusterAddon
metadata
labels
sunpike.pf9.io/cluster'<clsuuid>'
type monitoring
name <clsuuid>-monitoring
namespace default
spec
clusterID'<clsuuid>'
override
params
# storageClassName and pvcSize are optional params, if storage backend
# is not configured the prometheus pod will remain in Pending state
name storageClassName
value default
name pvcSize
value"1Gi"
name retentionTime
value"7d"
type monitoring
version0.46.0
watchtrue
The corresponding Addon
object created on the cluster will look similar to this.
apiVersion agent.pf9.io/v1
kind Addon
metadata
name <clsuuid>-monitoring
namespace pf9-addons
spec
clusterID <clsuuid>
type monitoring
version0.46.0
watchtrue
override
params
name storageClassName
value default
name pvcSize
value"1Gi"
name retentionTime
value"7d"
Prometheus YAML
When the Prometheus
object is deployed by the addon operator, it introduces the following templatized yaml.
apiVersion monitoring.coreos.com/v1
kind Prometheus
metadata
name system
namespace pf9-monitoring
spec
image .QuayRegistry /prometheus/prometheus
additionalScrapeConfigs
key additional-scrape-config.yaml
name scrapeconfig
alerting
alertmanagers
name sys-alertmanager
namespace pf9-monitoring
port web
replicas1
resources
requests
cpu 500m
memory 512Mi
retention .retentionTime
ruleSelector
matchLabels
prometheus system
role alert-rules
scrapeInterval 2m
serviceAccountName system-prometheus
- if .storageClassName
storage
volumeClaimTemplate
spec
accessModes
ReadWriteOnce
resources
requests
storage .pvcSize
storageClassName .storageClassName
- end
serviceMonitorSelector
matchLabels
prometheus system
role service-monitor
It 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