Back to Vector

The GraphQL API for Vector

website/content/en/highlights/2020-12-23-graphql-api.md

0.55.01.1 KB
Original Source

{{< grpc-migration-warning >}}

Vector now has a GraphQL API that you can use for a variety of purposes:

  • To view Vector's internal metrics
  • To view metadata about the Vector instance
  • To explore configured Vector topologies

We have plans to enhance the API in the coming releases by enabling you to, for example, re-configure Vector via the API.

How to use it

The GraphQL API for Vector is disabled by default. We want to keep Vector's behavior as predictable and secure as possible, so we chose to make the feature opt-in. To enable the API, add this to your Vector config:

yaml
api:
  enabled: true
  address: "127.0.0.1:8686" # optional. Change IP/port if required

Read more

For a more in-depth look at the API, check out: