-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from grafana/staging
Chore: Staging to Prod
- Loading branch information
Showing
11 changed files
with
118 additions
and
10 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
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
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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Trigger the alert rule | ||
|
||
Since the alert rule that you have created has been configured to always fire, once the evaluation interval has concluded, you should receive an alert notification in the Webhook endpoint. | ||
Since the Python script will continue to generate log data that matches the alert rule condition, once the evaluation interval has concluded, you should receive an alert notification in the Webhook endpoint. | ||
|
||
![Firing alert notification details](https://grafana.com/media/docs/alerting/alerting-webhook-firing-alert.png) |
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,18 @@ | ||
# Next steps | ||
|
||
You have successfully set up Tempo and Grafana to explore traces generated by the k6-tracing service. Wondering what to do next? Here are some ideas: | ||
|
||
## Alternative: Complete MLTP example | ||
|
||
If you would like to use a demo with Tempo, Mimir, Loki, and Grafana, then try the [Introduction to Metrics, Logs, Traces, and Profiling in Grafana](https://github.com/grafana/intro-to-mlt). | ||
`Intro-to-mltp`{{copy}} provides a self-contained environment for learning about Mimir, Loki, Tempo, and Grafana. | ||
The project includes detailed explanations of each component and annotated configurations for a single-instance deployment. | ||
Data from `intro-to-mltp`{{copy}} can also be pushed to Grafana Cloud. | ||
|
||
## Further reading | ||
|
||
Here are some resources to help you learn more about Tempo: | ||
|
||
- [Instrumenting your application](https://grafana.com/docs/tempo/latest/getting-started/instrumentation) | ||
|
||
- [Setup Guides for Tempo](https://grafana.com/docs/tempo/latest/setup) |
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,23 @@ | ||
{ | ||
"title": "Quick start for Tempo", | ||
"description": "Use Docker to quickly view traces using K-6 and Tempo", | ||
"details": { | ||
"intro": { | ||
"text": "intro.md" | ||
}, | ||
"steps": [ | ||
{ | ||
"text": "step1.md" | ||
}, | ||
{ | ||
"text": "step2.md" | ||
} | ||
], | ||
"finish": { | ||
"text": "finish.md" | ||
} | ||
}, | ||
"backend": { | ||
"imageid": "ubuntu" | ||
} | ||
} |
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,10 @@ | ||
# Quick start for Tempo | ||
|
||
The Tempo repository provides [multiple examples](https://github.com/grafana/tempo/tree/main/example/docker-compose) to help you quickly get started using Tempo and distributed tracing data. | ||
|
||
Every example has a `docker-compose.yaml`{{copy}} manifest that includes all of the options needed to explore trace data in Grafana, including resource configuration and trace data generation. | ||
|
||
The Tempo examples running with Docker using docker-compose include a version of Tempo and a storage configuration suitable for testing or development. | ||
|
||
This quick start guide uses the `local`{{copy}} example running Tempo as a single binary (monolithic). Any data is stored locally in the `tempo-data`{{copy}} folder. | ||
To learn more, read the [local storage example README](https://github.com/grafana/tempo/blob/main/example/docker-compose/local). |
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,30 @@ | ||
# Clone the Tempo repository and start Docker | ||
|
||
1. Clone the Tempo repository: | ||
|
||
```bash | ||
git clone https://github.com/grafana/tempo.git | ||
```{{exec}} | ||
1. Go into the examples directory: | ||
```bash | ||
cd tempo/example/docker-compose/local | ||
```{{exec}} | ||
1. Start the services defined in the docker-compose file: | ||
```bash | ||
docker-compose up -d | ||
```{{exec}} | ||
1. Verify that the services are running using `docker-compose ps`{{copy}}. You should see something like: | ||
```console | ||
docker-compose ps | ||
NAME COMMAND SERVICE STATUS PORTS | ||
local-grafana-1 "/run.sh" grafana running 0.0.0.0:3000->3000/tcp | ||
local-k6-tracing-1 "/k6-tracing run /ex…" k6-tracing running | ||
local-prometheus-1 "/bin/prometheus --c…" prometheus running 0.0.0.0:9090->9090/tcp | ||
local-tempo-1 "/tempo -config.file…" tempo running 0.0.0.0:3200->3200/tcp, 0.0.0.0:4317-4318->4317-4318/tcp, 0.0.0.0:9411->9411/tcp, 0.0.0.0:14268->14268/tcp | ||
```{{copy}} |
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,19 @@ | ||
# Explore the traces in Grafana | ||
|
||
As part of the docker-compose manifest, Grafana is now accessible on port 3000. We can use Grafana to explore the traces generated by the k6-tracing service. | ||
|
||
1. Open a browser and navigate to [http://localhost:3000]({{TRAFFIC_HOST1_3000}}). | ||
|
||
1. Once logged in, navigate to the **Explore** page, select the **Tempo** data source and select the **Search** tab. Select **Run query** to list the recent traces stored in Tempo. Select one to view the trace diagram: | ||
|
||
![Query example](https://grafana.com/docs/tempo/latest/setup/assets/setup-linux-run-query.png) | ||
|
||
1. A couple of minutes after Tempo has started up successfully, select the **Service graph** tab for the Tempo data source in the **Explore** page. Select **Run query** to view a service graph, generated by Tempo’s metrics-generator. | ||
|
||
![Service graph sample](https://grafana.com/docs/tempo/latest/setup/assets/setup-linux-node-graph.png) | ||
|
||
1. To stop the services: | ||
|
||
``` | ||
docker-compose down -v | ||
```{{copy}} |
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,5 @@ | ||
{ | ||
"items": [ | ||
{ "path": "quick-start", "title": "Quick start for Tempo"} | ||
] | ||
} |