Skip to content

Instantly share code, notes, and snippets.

@icy
Created November 1, 2019 11:06
Show Gist options
  • Select an option

  • Save icy/8c3d0fc784e441ac1548240525c67a62 to your computer and use it in GitHub Desktop.

Select an option

Save icy/8c3d0fc784e441ac1548240525c67a62 to your computer and use it in GitHub Desktop.
prom-op-troubles.yaml
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: lauxanh-grpc
labels:
prometheus/server: default
namespace: metrics
spec:
selector:
matchLabels:
app: lauxanh-grpc
namespaceSelector:
matchNames:
- prod
- stress-test
endpoints:
- interval: 15s
targetPort: 31990
---
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: lauxanh-grpc
labels:
prometheus/server: default
namespace: metrics
spec:
selector:
matchLabels:
app: lauxanh-grpc
namespaceSelector:
matchNames:
- prod
- stress-test
podMetricsEndpoints:
- interval: 15s
targetPort: 31990
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment