Deploy to Docker
Deploy to Docker
Generate a fpd
API Token in the Studio
fpd
API Token in the StudioIn order for the fpd
to talk to the Fiberplane Studio successfully it needs to be successfully authorized. This step will generate a fpd
API Token that will be needed later.
- Go to your Fiberplane Settings page.
- Click
+ New
to register a proxy with a name that identifies the cluster you will install it into (for example, "Production"). This will generate and display afpd
API Token that the proxy will use to authenticate with the Fiberplane Studio. - Copy the
fpd
API Token generated in Step 2 for the next step.
Deploy using Docker
- Make sure you have Docker installed: https://docs.docker.com/get-docker/
- Create a
data_sources.yaml
in the current directory in the following format:
# data_sources.yaml
#
# Replace the following line with the name of the data source
- name: prometheus-prod
description: Prometheus (Production)
providerType: prometheus
config:
# Replace the following line with your Prometheus URL
url: http://prometheus
- Run the following command replacing
<FPD_API_TOKEN>
with thefpd
API Token created earlier:
docker run \
-v "$PWD/data_sources.yaml:/app/data_sources.yaml" \
fiberplane/fpd:v2 \
--token=<FPD_API_TOKEN>
Once you complete your fpd
setup, your data sources linked in the fpd
configuration should be recognized by the Studio - you can verify this again by going to the Settings > Data Sources screen.👇
Updated 3 months ago