Skip to content

Commit

Permalink
chore: Update observability.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
markphelps authored Jan 20, 2025
1 parent f3e855e commit 198f4fe
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions configuration/observability.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,30 @@ For production deployments, we recommend using the JSON format as it's easier to

We've prepared an [example](https://github.com/flipt-io/flipt/tree/main/examples/audit/log) showing how to set up Flipt with Grafana Loki and Promtail to ingest and query logs.

### Log Key Descriptions
### JSON

```json
{
"L": "INFO",
"T": "2024-01-20T21:59:49-05:00",
"M": "finished unary call with code OK",
"server": "grpc",
"grpc.start_time": "2024-01-20T21:59:49-05:00",
"system": "grpc",
"span.kind": "server",
"grpc.service": "flipt.evaluation.EvaluationService",
"grpc.method": "Boolean",
"peer.address": "127.0.0.1:52635",
"grpc.code": "OK",
"grpc.time_ms": 0.146
}
```

#### Log Key Descriptions

- `L`: Level (log level). Possible values include: debug, info, warn, error, fatal, panic.
- `T`: Timestamp. The timestamp is in ISO 8601 format, which is a widely used format for representing date and time. It includes the date, time, and time zone information. For example, "2024-01-20T21:59:49-05:00" represents the date and time in the Eastern Time Zone (UTC-5).
- `M`: Message. The message provides a description of the log event. It can include information about the operation being performed, any errors encountered, or other relevant details.
- `L`: Level (log level). Possible values include: debug, info, warn, error, fatal, and panic.
- `T`: Timestamp. The timestamp is in ISO 8601 format, widely used for representing date and time. It includes the date, time, and time zone information. For example, "2024-01-20T21:59:49-05:00" represents the date and time in the Eastern Time Zone (UTC-5).

Check warning on line 104 in configuration/observability.mdx

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [Openly.So] Don't start a sentence with 'SO ' Raw Output: {"message": "[Openly.So] Don't start a sentence with 'SO '", "location": {"path": "configuration/observability.mdx", "range": {"start": {"line": 104, "column": 40}}}, "severity": "WARNING"}
- `M`: Message. The message describes the log event. It can include information about the operation, errors encountered, or other relevant details.

More information about the available configuration options can be found in the [Logging configuration](/configuration/overview#logging) section.

Expand Down

0 comments on commit 198f4fe

Please sign in to comment.