-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: MohammedAbdi <[email protected]> update metrics Signed-off-by: MohammedAbdi <[email protected]> nit Signed-off-by: MohammedAbdi <[email protected]> update metrics Signed-off-by: MohammedAbdi <[email protected]> update Signed-off-by: MohammedAbdi <[email protected]> update deployed pod total and total processed slices metrics Signed-off-by: MohammedAbdi <[email protected]> updateMetricsAllSlotsFree Signed-off-by: MohammedAbdi <[email protected]> nits Signed-off-by: MohammedAbdi <[email protected]> update promethues Signed-off-by: MohammedAbdi <[email protected]> update deployed pod total metrics call Signed-off-by: MohammedAbdi <[email protected]> remove fake capacity file Signed-off-by: MohammedAbdi <[email protected]> update profile map extraction automation Signed-off-by: MohammedAbdi <[email protected]> update Signed-off-by: MohammedAbdi <[email protected]> Track total fit across all GPUs correctly Signed-off-by: MohammedAbdi <[email protected]> add unit tests Signed-off-by: MohammedAbdi <[email protected]> update metrics url Signed-off-by: MohammedAbdi <[email protected]> nit Signed-off-by: MohammedAbdi <[email protected]> nit Signed-off-by: MohammedAbdi <[email protected]> adjust unit tests Signed-off-by: MohammedAbdi <[email protected]> nit Signed-off-by: MohammedAbdi <[email protected]> update Signed-off-by: MohammedAbdi <[email protected]> update manifests Signed-off-by: MohammedAbdi <[email protected]> update test file Signed-off-by: MohammedAbdi <[email protected]> update compatible profiles Signed-off-by: MohammedAbdi <[email protected]> nit Signed-off-by: MohammedAbdi <[email protected]> address reviews Signed-off-by: MohammedAbdi <[email protected]> address comments Signed-off-by: MohammedAbdi <[email protected]> nit Signed-off-by: MohammedAbdi <[email protected]>
- Loading branch information
Showing
16 changed files
with
918 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: instaslice-metrics | ||
namespace: instaslice-system | ||
labels: | ||
control-plane: controller-manager | ||
spec: | ||
ports: | ||
- name: metrics | ||
port: 8443 | ||
protocol: TCP | ||
targetPort: 8443 | ||
selector: | ||
control-plane: controller-manager # Use the correct label here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: instaslice-monitor | ||
namespace: instaslice-monitoring | ||
labels: | ||
release: prometheus # Label to match Prometheus serviceMonitorSelector | ||
spec: | ||
selector: | ||
matchLabels: | ||
control-plane: controller-manager # Match labels of the Service exposing metrics | ||
namespaceSelector: | ||
matchNames: | ||
- instaslice-system # Namespace where the Service resides | ||
endpoints: | ||
- port: metrics # Port name exposed in the Service for kube-rbac-proxy | ||
interval: 15s | ||
path: /metrics | ||
scheme: https | ||
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token # Prometheus authentication | ||
honorLabels: true | ||
tlsConfig: | ||
insecureSkipVerify: true # Set to false if using a valid CA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: prometheus-metrics-reader | ||
namespace: instaslice-system | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["services", "endpoints", "pods"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["metrics.k8s.io"] | ||
resources: ["pods", "nodes"] | ||
verbs: ["get", "list"] | ||
- apiGroups: ["authorization.k8s.io"] | ||
resources: ["subjectaccessreviews"] | ||
verbs: ["create"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: prometheus-metrics-binding | ||
namespace: instaslice-system | ||
subjects: | ||
- kind: ServiceAccount | ||
name: prometheus-kube-prometheus-prometheus # Change this to your Prometheus ServiceAccount | ||
namespace: instaslice-monitoring # Change to Prometheus namespace | ||
roleRef: | ||
kind: Role | ||
name: prometheus-metrics-reader | ||
apiGroup: rbac.authorization.k8s.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: prometheus | ||
namespace: instaslice-monitoring # namespace where Prometheus is running |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
alertmanager: | ||
enabled: false | ||
kube-state-metrics: | ||
enabled: false | ||
prometheus-node-exporter: | ||
enabled: false | ||
prometheus-pushgateway: | ||
enabled: false | ||
server: | ||
name: instaslice | ||
service: | ||
enabled: true | ||
type: NodePort | ||
servicePort: 9090 | ||
persistentVolume: | ||
existingClaim: prometheus-instaslice | ||
enabled: false | ||
securityContext: | ||
runAsUser: | ||
runAsNonRoot: | ||
runAsGroup: | ||
fsGroup: | ||
extraScrapeConfigs: | | ||
- job_name: instaslice-metrics | ||
honor_labels: true | ||
metrics_path: /metrics | ||
scheme: https | ||
scrape_interval: 15s | ||
static_configs: | ||
- targets: | ||
- instaslice-metrics.instaslice-system.svc.cluster.local:8443 | ||
tls_config: | ||
insecure_skip_verify: true | ||
serviceMonitorSelector: | ||
matchLabels: | ||
release: prometheus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.