Skip to content

Commit

Permalink
expose underlying promtail client (#2910)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfratto authored Nov 10, 2020
1 parent c14b443 commit ca311c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/promtail/promtail.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ func (p *Promtail) Run() error {
return p.server.Run()
}

// Client returns the underlying client Promtail uses to write to Loki.
func (p *Promtail) Client() client.Client {
return p.client
}

// Shutdown the promtail.
func (p *Promtail) Shutdown() {
p.mtx.Lock()
Expand Down

0 comments on commit ca311c4

Please sign in to comment.