Just testing https://github.com/pryorda/vmware_exporter/ out probably not the best method or locations for configurations
#!/bin/bash
oc label namespaces openshift-vsphere-infra openshift.io/cluster-monitoring=true
Just testing https://github.com/pryorda/vmware_exporter/ out probably not the best method or locations for configurations
#!/bin/bash
oc label namespaces openshift-vsphere-infra openshift.io/cluster-monitoring=true
kind: Role | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: prometheus-k8s | |
namespace: openshift-vsphere-infra | |
rules: | |
- verbs: | |
- get | |
- list | |
- watch | |
apiGroups: | |
- '' | |
resources: | |
- services | |
- endpoints | |
- pods | |
--- | |
kind: RoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: prometheus-k8s | |
namespace: openshift-vsphere-infra | |
subjects: | |
- kind: ServiceAccount | |
name: prometheus-k8s | |
namespace: openshift-monitoring | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: Role | |
name: prometheus-k8s |
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
k8s-app: vmware-exporter | |
name: metrics | |
namespace: openshift-vsphere-infra | |
spec: | |
ports: | |
- name: vmware-metrics | |
port: 9272 | |
protocol: TCP | |
targetPort: 9272 | |
selector: | |
k8s-app: vmware-exporter | |
sessionAffinity: None | |
type: ClusterIP |
apiVersion: monitoring.coreos.com/v1 | |
kind: ServiceMonitor | |
metadata: | |
labels: | |
k8s-app: vmware-exporter | |
name: vmware-exporter-monitor | |
namespace: openshift-vsphere-infra | |
spec: | |
endpoints: | |
- interval: 30s | |
port: vmware-metrics | |
scheme: http | |
jobLabel: app | |
namespaceSelector: | |
matchNames: | |
- openshift-vsphere-infra | |
selector: | |
matchLabels: | |
k8s-app: vmware-exporter |