Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions book/src/framework/observability/observability_stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ Change compose files under `framework/cmd/observability` and restart the stack (
just reload-cli && ctf obs r
```

## Local Dashboards (Docker)

You can create a dashboard using [UI](http://localhost:3000) and put them under `$pwd/dashboards` folder then commit, they'll be loaded automatically on start and you can find them [here](http://localhost:3000/dashboards) under `local` directory.

`$pwd` is you current working directory from which you call `ctf obs u`

## Troubleshooting

### `cadvisor` is not working
Expand Down
2 changes: 2 additions & 0 deletions framework/.changeset/v0.10.6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Allow config overrides (caching) for Anvil network
- Load local Grafana dashboards
3 changes: 3 additions & 0 deletions framework/components/blockchain/anvil.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ func defaultAnvil(in *Input) {

// newAnvil deploy foundry anvil node
func newAnvil(in *Input) (*Output, error) {
if in.Out != nil && in.Out.UseCache {
return in.Out, nil
}
defaultAnvil(in)
req := baseRequest(in, WithoutWsEndpoint)

Expand Down
2 changes: 0 additions & 2 deletions framework/observability.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
var EmbeddedObservabilityFiles embed.FS

const (
LocalDFSoak = "http://localhost:3000/d/f8a04cef-653f-46d3-86df-87c532300672/df-soak?orgId=1&from=now-5m&to=now&refresh=5s"
LocalCLNodeErrorsURL = "http://localhost:3000/d/a7de535b-3e0f-4066-bed7-d505b6ec9ef1/cl-node-errors?orgId=1&refresh=5s"
LocalWorkflowEngineURL = "http://localhost:3000/d/ce589a98-b4be-4f80-bed1-bc62f3e4414a/workflow-engine?orgId=1&refresh=5s&from=now-15m&to=now"
LocalLogsURL = "http://localhost:3000/explore?panes=%7B%22qZw%22:%7B%22datasource%22:%22P8E80F9AEF21F6940%22,%22queries%22:%5B%7B%22refId%22:%22A%22,%22expr%22:%22%7Bjob%3D%5C%22ctf%5C%22%7D%22,%22queryType%22:%22range%22,%22datasource%22:%7B%22type%22:%22loki%22,%22uid%22:%22P8E80F9AEF21F6940%22%7D,%22editorMode%22:%22code%22%7D%5D,%22range%22:%7B%22from%22:%22now-15m%22,%22to%22:%22now%22%7D%7D%7D&schemaVersion=1&orgId=1"
Expand Down Expand Up @@ -136,7 +135,6 @@ func ObservabilityUp() error {
L.Info().Msgf("Pyroscope: %s", LocalPyroScopeURL)
L.Info().Msgf("CL Node Errors: %s", LocalCLNodeErrorsURL)
L.Info().Msgf("Workflow Engine: %s", LocalWorkflowEngineURL)
L.Info().Msgf("DF Soak: %s", LocalDFSoak)
return nil
}

Expand Down
Loading
Loading