Skip to content

Instantly share code, notes, and snippets.

View pintohutch's full-sized avatar
🤘

Daniel Clark pintohutch

🤘
View GitHub Profile

Keybase proof

I hereby claim:

  • I am pintohutch on github.
  • I am pintohutch (https://keybase.io/pintohutch) on keybase.
  • I have a public key whose fingerprint is 0DBB 6AEC 4E2D CAC8 9717 2260 2E8B C6B6 305A 94E0

To claim this, I am signing this object:

@pintohutch
pintohutch / prom-graph.png
Last active January 13, 2022 17:46
Prometheus metadata missing issue
Screenshots to demonstrate issue
diff --git a/pkg/operator/target_status.go b/pkg/operator/target_status.go
index 1a83256e4..c01d92fcf 100644
--- a/pkg/operator/target_status.go
+++ b/pkg/operator/target_status.go
@@ -34,6 +34,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/types"
+ "k8s.io/utils/clock"
ctrl "sigs.k8s.io/controller-runtime"
@pintohutch
pintohutch / metrics
Created June 21, 2023 21:05
rule-evaluator exposed /metrics
# HELP prometheus_notifications_alertmanagers_discovered The number of alertmanagers discovered and active.
# TYPE prometheus_notifications_alertmanagers_discovered gauge
prometheus_notifications_alertmanagers_discovered 1
# HELP prometheus_notifications_dropped_total Total number of alerts dropped due to errors when sending to Alertmanager.
# TYPE prometheus_notifications_dropped_total counter
prometheus_notifications_dropped_total 0
# HELP prometheus_notifications_errors_total Total number of errors sending alert notifications.
# TYPE prometheus_notifications_errors_total counter
prometheus_notifications_errors_total{alertmanager="http://alertmanager.gmp-system:9093/api/v2/alerts"} 0
# HELP prometheus_notifications_latency_seconds Latency quantiles for sending alert notifications.
This file has been truncated, but you can view the full file.
diff --git a/third_party/prometheus_ui/base/web/ui/node_modules/.package-lock.json b/third_party/prometheus_ui/base/web/ui/node_modules/.package-lock.json
index 86c70bc9d..6359c76b0 100644
--- a/third_party/prometheus_ui/base/web/ui/node_modules/.package-lock.json
+++ b/third_party/prometheus_ui/base/web/ui/node_modules/.package-lock.json
@@ -1,105 +1,109 @@
{
- "name": "prometheus",
- "lockfileVersion": 2,
+ "name": "prometheus-io",
+ "lockfileVersion": 3,
@pintohutch
pintohutch / 0.7.4...0.8.0-rc.1.diff
Last active October 5, 2023 00:45
Generated via `git diff v0.8.0-rc.1..v0.7.4 -- . ':!*_test.go' '!:vendor/*' ':!*.md' ':!Makefile' ':!examples/*' ':!hack/*'` to target only production changes.
diff --git a/cmd/operator/deploy/crds/monitoring.googleapis.com_operatorconfigs.yaml b/cmd/operator/deploy/crds/monitoring.googleapis.com_operatorconfigs.yaml
index 585713d9e..d61478b72 100644
--- a/cmd/operator/deploy/crds/monitoring.googleapis.com_operatorconfigs.yaml
+++ b/cmd/operator/deploy/crds/monitoring.googleapis.com_operatorconfigs.yaml
@@ -93,6 +93,16 @@ spec:
type: object
description: Features holds configuration for optional managed-collection features.
properties:
+ config:
+ type: object
@pintohutch
pintohutch / vpa-operator.yaml
Created January 29, 2024 13:36
VPA for GMP operator
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: gmp-operator
namespace: gmp-system
spec:
resourcePolicy:
containerPolicies:
- containerName: operator
controlledResources:
@pintohutch
pintohutch / prometheus-filearg.yaml
Created January 31, 2024 19:34
prometheus-with-file-arg
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,