Skip to content

v2.1.0

Compare
Choose a tag to compare
@eko eko released this 15 Nov 09:13
· 221 commits to master since this release

New Features

6ea6e4b Added monitoring example with Prometheus & Grafana

This can be done by configuring your monitoring applications, here is an example with Grafana & Prometheus.

You will also have to specify the port and URL for Prometheus to scrape the metrics of your apps by adding the following YAML section to your applications:

  monitoring:
    port: 8001
    url: /metrics

d53eeb1 Added file writer handlers: content with templating and copy

You can now specify some files to your local applications, this is great to copy .env.dist file to .env for instance or to prepare some configuration using Go's templating engine from the current project YAML configuration:

<: &graphql-local
  ...
  files: # Optional, you can also declare some files content with dynamic values coming from your project YAML or simply copy files
    - type: content
      to: $GOPATH/src/github.com/eko/graphql/my_file
      content: |
        This is my file content and here are the current project applications:
          {{- range $app := .Applications }}
          Name: {{ $app.Name }}
          {{- end }}
    - type: copy
      from: $GOPATH/src/github.com/eko/graphql/.env.dist
      to: $GOPATH/src/github.com/eko/graphql/.env

07d55d2 Added a way to declare global local apps & forwards

Sometimes (like for the monitoring tools) you want to run some local applications or forward everytime. To avoid re-declaring them in every project, you can now add the following global root section into your YAML configuration file:

local:
  - *grafana-global
  - *prometheus-global
forward:
  - *graylog-forward-kubernetes

Fixes

bf2ff57 Fixed README file and updated schema