-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Reference to sample cassandra-preprocessor-configMap & wf-prox…
…y deployment with preprocessor rules (#54) * Adding sample reference file with cassandra preprocessor config map and wf-proxy configuration with preprocessor rules. * Updating proxy docker image tag to latest
- Loading branch information
1 parent
53dd76a
commit 1ed520d
Showing
2 changed files
with
83 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: wavefront-proxy-preprocessor | ||
namespace: default | ||
data: | ||
rules.yaml: | | ||
'2878': | ||
- rule : cassandra-metrics-allow | ||
action : allow | ||
scope : metricName | ||
match : "cassandra.(mcac|stargate|jvm).*" |
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,71 @@ | ||
# Need to change YOUR_CLUSTER and YOUR_API_TOKEN accordingly | ||
|
||
apiVersion: apps/v1 | ||
# Kubernetes versions after 1.9.0 should use apps/v1 | ||
# Kubernetes version 1.8.x should use apps/v1beta2 | ||
# Kubernetes versions before 1.8.0 should use apps/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: wavefront-proxy | ||
name: wavefront-proxy | ||
name: wavefront-proxy | ||
namespace: default | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: wavefront-proxy | ||
template: | ||
metadata: | ||
labels: | ||
app: wavefront-proxy | ||
spec: | ||
containers: | ||
- name: wavefront-proxy | ||
image: projects.registry.vmware.com/tanzu_observability/proxy:latest | ||
imagePullPolicy: IfNotPresent | ||
env: | ||
- name: WAVEFRONT_URL | ||
value: https://<YOUR_CLUSTER_NAME>.wavefront.com/api/ | ||
- name: WAVEFRONT_TOKEN | ||
value: <WAVEFRONT_TOKEN> | ||
- name: WAVEFRONT_PROXY_ARGS | ||
value: --preprocessorConfigFile /etc/wavefront/wavefront-proxy/rules.yaml | ||
ports: | ||
- containerPort: 2878 | ||
protocol: TCP | ||
# Uncomment the below lines to consume Zipkin/Istio traces | ||
#- containerPort: 9411 | ||
# protocol: TCP | ||
securityContext: | ||
privileged: false | ||
# Mount the preprocessor rules | ||
volumeMounts: | ||
- name: preprocessor | ||
mountPath: /etc/wavefront/wavefront-proxy/rules.yaml | ||
subPath: rules.yaml | ||
volumes: | ||
- name: preprocessor | ||
configMap: | ||
name: wavefront-proxy-preprocessor | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: wavefront-proxy | ||
labels: | ||
app: wavefront-proxy | ||
namespace: default | ||
spec: | ||
ports: | ||
- name: wavefront | ||
port: 2878 | ||
protocol: TCP | ||
# Uncomment the below lines to consume Zipkin/Istio traces | ||
#- name: http | ||
# port: 9411 | ||
# targetPort: 9411 | ||
# protocol: TCP | ||
selector: | ||
app: wavefront-proxy |