-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for free-standing loki rules and grafana dashboards #6
Conversation
3ee7b9d
to
6454472
Compare
description: URL to repo to sync against | ||
git-sync::branch: | ||
description: URL to repo to clone and sync against. | ||
git_branch: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git_reference
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git_branch and git_rev are both defined and both needed. git-sync has defaults for both so we're good. Can provide git_rev
and omit the branch. It's impossible to clone a revision - only after cloning a branch can checkout a revision.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments inline
@@ -0,0 +1,280 @@ | |||
# Copyright 2021 Canonical Ltd. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I do not think we care to fix the K8s service at all: this charm does not expose any web api we care to invoke from the outside, and this makes us need —trust. I’d say we just don’t fix this K8s service instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git-sync has http api for "health" and /metrics
Recent changes to prom and loki broke integration tests. |
both branch and rev are needed.
TODO:
Depends on:
GrafanaDashboardProvider
if the dashboard path cannot be resolved or is empty grafana-k8s-operator#53