Skip to content

Commit

Permalink
resolve issue #56
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Apr 27, 2023
1 parent 82e4048 commit 7e5fdf6
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ This will return metrics for all nodes. A query parameter to filter by host can
- To use the SignalFx client, please configure environment variables `METRICS_PROVIDER_NAME`, `METRICS_PROVIDER_ADDRESS` and `METRICS_PROVIDER_TOKEN` to `SignalFx`, SignalFx address and auth token respectively. Default value of address set is `https://api.signalfx.com` for SignalFx client.

## Deploy `load-watcher` as a service
To deploy `load-watcher` as a monitoring service in your Kubernetes cluster, you can run the following.
To deploy `load-watcher` as a monitoring service in your Kubernetes cluster, you should replace the values in the `[]` with your own cluster monitoring stack and then you can run the following.
```bash
> kubectl create -f manifests/load-watcher-deployment.yaml
```
Expand Down
46 changes: 46 additions & 0 deletions manifests/load-watcher-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: load-watcher-deployment
namespace: loadwatcher
labels:
app: load-watcher
spec:
replicas: 1
selector:
matchLabels:
app: load-watcher
template:
metadata:
labels:
app: load-watcher
spec:
containers:
- name: load-watcher
image: [load-watcher image]
env:
- name: METRICS_PROVIDER_NAME
value: [Prometheus/SignalFx]
- name: METRICS_PROVIDER_ADDRESS
value: [metrics_provider_endpoint]
- name: METRICS_PROVIDER_TOKEN
value: [token]
ports:
- containerPort: 2020
---
apiVersion: v1
kind: Service
metadata:
namespace: loadwatcher
name: load-watcher
labels:
app: load-watcher
spec:
type: ClusterIP
ports:
- name: http
port: 2020
targetPort: 2020
protocol: TCP
selector:
app: load-watcher

0 comments on commit 7e5fdf6

Please sign in to comment.