-
Notifications
You must be signed in to change notification settings - Fork 692
Add statefulset for metrics generator #2533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
6145e39
Add statefulset for metrics generator
zalegrala 7b3229e
Use proper volume method
zalegrala a67d606
Keep the data emptyDir on the generator deployment
zalegrala 605f393
Fix config references
zalegrala 87fe98d
Fix config default error
zalegrala 84842e3
Move readme file
zalegrala 220d04d
Zero replicas for the deployment
zalegrala 9347522
Update changelog
zalegrala 60d844e
Update config example
zalegrala e7352e5
Compile jsonnet
zalegrala f933c1a
Update test config for microservices
zalegrala 571fe0c
Include metrics-generator statefulset compiled manifest
zalegrala deddf03
Drop termination grace grace period to rely on defaults
zalegrala 001fc10
Compile jsonnet
zalegrala File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
84 changes: 84 additions & 0 deletions
84
operations/jsonnet-compiled/StatefulSet-metrics-generator.yaml
This file contains hidden or 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,84 @@ | ||
| apiVersion: apps/v1 | ||
| kind: StatefulSet | ||
| metadata: | ||
| name: metrics-generator | ||
| namespace: tracing | ||
| spec: | ||
| podManagementPolicy: Parallel | ||
| replicas: 0 | ||
| selector: | ||
| matchLabels: | ||
| app: metrics-generator | ||
| name: metrics-generator | ||
| tempo-gossip-member: "true" | ||
| serviceName: metrics-generator | ||
| template: | ||
| metadata: | ||
| annotations: | ||
| config_hash: 5067569ac65e5c3c0d79d48abd17c511 | ||
| labels: | ||
| app: metrics-generator | ||
| name: metrics-generator | ||
| tempo-gossip-member: "true" | ||
| spec: | ||
| affinity: | ||
| podAntiAffinity: | ||
| requiredDuringSchedulingIgnoredDuringExecution: | ||
| - labelSelector: | ||
| matchLabels: | ||
| name: metrics-generator | ||
| topologyKey: kubernetes.io/hostname | ||
| containers: | ||
| - args: | ||
| - -config.file=/conf/tempo.yaml | ||
| - -mem-ballast-size-mbs=1024 | ||
| - -target=metrics-generator | ||
| image: grafana/tempo:latest | ||
| name: metrics-generator | ||
| ports: | ||
| - containerPort: 3200 | ||
| name: prom-metrics | ||
| readinessProbe: | ||
| httpGet: | ||
| path: /ready | ||
| port: 3200 | ||
| initialDelaySeconds: 15 | ||
| timeoutSeconds: 1 | ||
| resources: | ||
| limits: | ||
| cpu: "1" | ||
| ephemeral-storage: 11Gi | ||
| memory: 2Gi | ||
| requests: | ||
| cpu: 500m | ||
| ephemeral-storage: 10Gi | ||
| memory: 1Gi | ||
| volumeMounts: | ||
| - mountPath: /conf | ||
| name: tempo-conf | ||
| - mountPath: /var/tempo | ||
| name: metrics-generator-data | ||
| - mountPath: /overrides | ||
| name: overrides | ||
| volumes: | ||
| - configMap: | ||
| name: tempo-metrics-generator | ||
| name: tempo-conf | ||
| - configMap: | ||
| name: tempo-overrides | ||
| name: overrides | ||
| volumeClaimTemplates: | ||
| - apiVersion: v1 | ||
| kind: PersistentVolumeClaim | ||
| metadata: | ||
| labels: | ||
| app: metrics-generator | ||
| name: metrics-generator-data | ||
| namespace: tracing | ||
| spec: | ||
| accessModes: | ||
| - ReadWriteOnce | ||
| resources: | ||
| requests: | ||
| storage: 10Gi | ||
| storageClassName: fast |
This file contains hidden or 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 hidden or 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
16 changes: 10 additions & 6 deletions
16
...sonnet-compiled/util/vendor/github.com/grafana/jsonnet-libs/memcached/memcached.libsonnet
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.