Skip to content

Add support for viewing service logs when Grafana Loki logging driver is used #668

@dutts

Description

@dutts

FEATURE REQUEST

When services are configured to use the Grafana Loki logging driver the View log link on both the Task and Service pages is disabled.

From their documentation:

Note: The Loki logging driver still uses the json-log driver in combination with sending logs to Loki, this is mainly useful to keep the docker logs command working.

So we should be able to continue to use swarmpit to view logs.

Steps to reproduce the issue:

  1. Configure a service with a Loki logging driver.
  2. Deploy to the swarm.

What happens:
Open the service's Services and Task entries in swarmpit, note the View log options are disabled.

What should happen:
We should still be able to view logs when the Loki driver is used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions