Skip to content

Commit

Permalink
Add targets to test logs and metrics from receiver-mock (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasia-kujawa authored Nov 25, 2020
1 parent 2d24107 commit b5b448a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
6 changes: 6 additions & 0 deletions vagrant/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -246,3 +246,9 @@ application-metrics-jolokia-agent-run:

application-metrics-jolokia-agent-clean:
kubectl delete ns demo-jolokia-agent

test-receiver-mock-logs:
kubectl logs $(shell kubectl get pod -l app=receiver-mock -o jsonpath='{.items[0].metadata.name}' -n receiver-mock) -n receiver-mock

test-receiver-mock-metrics:
kubectl exec $(shell kubectl get pod -l app=receiver-mock -o jsonpath="{.items[0].metadata.name}" -n receiver-mock) -it -n receiver-mock -- curl http://localhost:3000/metrics
16 changes: 14 additions & 2 deletions vagrant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,24 @@ In order to quickly test whether sumo-kubernetes-collection works, one can use `

To check receiver-mock logs please use:

```bash
sumo-make test-receiver-mock-logs
```
kubectl logs $(kubectl get pod -l app=receiver-mock -o jsonpath="{.items[0].metadata.name}" -n receiver-mock) -n receiver-mock

or

```bash
/sumologic/vagrant/Makefile test-receiver-mock-logs
```

To check metrics exposed by receiver-mock please use:

```bash
sumo-make test-receiver-mock-metrics
```
kubectl exec $(kubectl get pod -l app=receiver-mock -o jsonpath="{.items[0].metadata.name}" -n receiver-mock) -it -n receiver-mock -- curl http://localhost:3000/metrics

or

```bash
/sumologic/vagrant/Makefile test-receiver-mock-metrics
```

0 comments on commit b5b448a

Please sign in to comment.