Prometheus component subscribes to Prometheus operator, which in turn issues an install of the Prometheus community operator in the namespace. This component also creates two types of instances:
- Prometheus instance. This creates a prometheus pod that looks for
ServiceMonitorswith label
labels:
team: opendatahub
- Service Monitor instances. This creates
ServiceMonitorinstances to monitor specific services that expose prometheus metric endpoints. At this time there are two Service Monitors, one for services with port nameweband one for kafka.
There are two main folders in the Prometheus component
- cluster: contains the subscription to the operator
- operator: contains the routes and instances of the operator
This installation creates a route to the Prometheus portal. To access the portal go to Routes and click on the `prometheus' route.
To install Prometheus add the following to the kfctl yaml file.
- kustomizeConfig:
parameters:
- name: namespace
value: opendatahub
repoRef:
name: manifests
path: prometheus/cluster
name: prometheus-cluster
- kustomizeConfig:
parameters:
- name: namespace
value: opendatahub
repoRef:
name: manifests
path: prometheus/operator
name: prometheus-operator