Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
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
39 changes: 39 additions & 0 deletions Documentation/metrics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Metrics

**NOTE: The metrics feature is considered experimental. We may add/change/remove metrics without warning in future releases.**

fleet uses [Prometheus][prometheus] for metrics reporting in the server. The metrics can be used for real-time monitoring and debugging.

See the [etcd metrics.md][etcd-metrics] for more information about metrics used in etcd and Prometheus.

The naming of metrics follows the suggested best practice of Prometheus. A metric name has an fleet prefix as its namespace and a subsystem prefix (for example engine and registry).

To get metrics data you have to request data from fleetd Unix domain socket:

```sh
curl --unix-socket /var/run/fleet.sock http:/metrics
```

If you've configured fleetd to [listen TCP socket][tcp-api], please use this command:

```sh
curl http://127.0.0.1:49153/metrics
```

fleetd exposes the following metrics:

| Name | Description | Type |
|-----------------------------------------|--------------------------------------------------|-----------|
| engine_leader_start_time | Timestamp when this fleetd became leader | Gauge |
| engine_task_count_total | The total number of executed tasks | Counter |
| engine_task_failure_count_total | The total number of failed tasks | Counter |
| engine_reconcile_count_total | The total number of reconcile rounds | Counter |
| engine_reconcile_duration_second | The latency distribution of reconcile rounds | Histogram |
| engine_reconcile_failure_count_total | The total number of reconcile failures | Counter |
| registry_operation_count_total | The total number of registry operations | Counter |
| registry_operation_failed_count_total | The total number of failed registry operations | Counter |
| registry_operation_duration_second | The latency distribution of registry operations | Histogram |

[etcd-metrics]: https://github.com/coreos/etcd/blob/master/Documentation/metrics.md
[prometheus]: http://prometheus.io/
[tcp-api]: deployment-and-configuration.md#api
38 changes: 38 additions & 0 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions Godeps/_workspace/src/github.com/beorn7/perks/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading