github.com/grafana/synthetic-monitoring-agent@v0.64.2/examples/kubernetes/README.md (about)

     1  # Kubernetes
     2  
     3  Steps:
     4  - Get an Authentication Token for your private probe, [see here for steps](https://grafana.com/docs/grafana-cloud/synthetic-monitoring/private-probes/)
     5  - Get Probe API Server URL from [Private Probe docs](https://grafana.com/docs/grafana-cloud/synthetic-monitoring/private-probes/)
     6  - Replace `YOUR_TOKEN_HERE` in [secret.yaml](secret.yaml) with your Authentication Token
     7  - Replace `PROBE_API_SERVER_URL` in [deployment.yaml](deployment.yaml) with your API server URL
     8  - Apply [namespace.yaml](namespace.yaml) to create the `synthetic-monitoring` namespace
     9  - Apply [secret.yaml](secret.yaml) to create the `sm-agent-1` secret
    10  - Apply [deployment.yaml](deployment.yaml) to deploy your agent
    11  
    12  Here are these steps as commands:
    13  
    14  ```bash
    15  kubectl apply -f namespace.yaml
    16  kubectl apply -f secret.yaml
    17  kubectl apply -f deployment.yaml
    18  ```
    19  
    20  Now you should have the agent reporting as private probe.
    21  
    22  ### Production Deployment
    23  
    24  If you are running it in production, you should pin the image to an specific version instead of `latest`,
    25  see all tags on [docker hub](https://hub.docker.com/r/grafana/synthetic-monitoring-agent)
    26  
    27  The process exposes Prometheus-style metrics on an HTTP server running on port 4050 (/metrics endpoint).
    28  You can scrape and monitor your private probe in this way using either Prometheus or the [Grafana Cloud Agent](https://github.com/grafana/agent).
    29  
    30  Checkout [Private Probe docs](https://grafana.com/docs/grafana-cloud/synthetic-monitoring/private-probes/) for more details.