Skip to content

Commit

Permalink
Port DTR monitor topics to template (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Galasyn committed Apr 16, 2018
1 parent a026828 commit bbebeae
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@
title: Monitor Docker Trusted Registry
description: Learn how to monitor your DTR installation.
keywords: registry, monitor, troubleshoot
ui_tabs:
- version: dtr-2.5
orlower: true
next_steps:
- path: troubleshoot-with-logs/
title: Troubleshoot with logs
---

{% if include.version=="dtr-2.5" %}

Docker Trusted Registry is a Dockerized application. To monitor it, you can
use the same tools and techniques you're already using to monitor other
containerized applications running on your cluster. One way to monitor
Expand Down Expand Up @@ -70,6 +78,4 @@ You can find health status on the `current_issues` and `replica_health` arrays.
If this endpoint doesn't provide meaningful information when trying to
troubleshoot, try [troubleshooting using logs](troubleshoot-with-logs.md).

## Where to go next

* [Troubleshoot with logs](troubleshoot-with-logs.md)
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ title: Check Notary audit logs
description: When you push signed images, Docker Trusted Registry keeps audit
logs for the changes made to the image metadata. Learn how to view these logs.
keywords: registry, monitor, troubleshoot
ui_tabs:
- version: dtr-2.5
orlower: true
---

{% if include.version=="dtr-2.5" %}

Docker Content Trust (DCT) keeps audit logs of changes made to trusted repositories.
Every time you push a signed image to a repository, or delete trust data for a
repository, DCT logs that information.
Expand Down Expand Up @@ -264,3 +269,5 @@ curl --insecure --silent \
--header "Authorization: Bearer $TOKEN" \
"https://<dtr-url>/v2/<dtr-url>/<dtr-repo>/_trust/changefeed?records=10&change_id=0" | jq .
```

{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
title: Troubleshoot batch jobs
description: Learn how Docker Trusted Registry run batch jobs, so that you can troubleshoot when something goes wrong
keywords: dtr, troubleshoot
ui_tabs:
- version: dtr-2.5
orlower: true
---

{% if include.version=="dtr-2.5" %}

DTR uses a job queue to schedule batch jobs. A job is placed on this work queue,
and a job runner component of DTR consumes work from this cluster-wide job
queue and executes it.
Expand Down Expand Up @@ -230,3 +235,5 @@ see those jobs using the `GET /api/v0/crons` endpoint:
```

The `schedule` uses a Unix crontab syntax.

{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
title: Troubleshoot Docker Trusted Registry
description: Learn how to troubleshoot your DTR installation.
keywords: registry, monitor, troubleshoot
ui_tabs:
- version: dtr-2.5
orlower: true
---

{% if include.version=="dtr-2.5" %}

This guide contains tips and tricks for troubleshooting DTR problems.

## Troubleshoot overlay networks
Expand All @@ -15,15 +20,15 @@ and see if they can ping one another.

Use SSH to log into a UCP node, and run:

```none
```bash
docker run -it --rm \
--net dtr-ol --name overlay-test1 \
--entrypoint sh {{ page.dtr_org }}/{{ page.dtr_repo }}
```

Then use SSH to log into another UCP node and run:

```none
```bash
docker run -it --rm \
--net dtr-ol --name overlay-test2 \
--entrypoint ping {{ page.dtr_org }}/{{ page.dtr_repo }} -c 3 overlay-test1
Expand Down Expand Up @@ -119,17 +124,19 @@ Warning: The following replicas are unhealthy: 59e4e9b0a254; Reasons: Replica re
To fix this, you should remove the unhealthy replica from the DTR cluster,
and join a new one. Start by running:

```none
```bash
docker run -it --rm \
{{ page.dtr_org }}/{{ page.dtr_repo }}:{{ page.dtr_version }} remove \
--ucp-insecure-tls
```

And then:

```none
```bash
docker run -it --rm \
{{ page.dtr_org }}/{{ page.dtr_repo }}:{{ page.dtr_version }} join \
--ucp-node <ucp-node-name> \
--ucp-insecure-tls
```

{% endif %}

0 comments on commit bbebeae

Please sign in to comment.