Skip to content
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

Upgrade/promtail #62

Merged
merged 6 commits into from
Oct 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ jobs:
- name: check
run: echo "${{ steps.changes.outputs.NOMAD_FILES_CHANGED }}"
- name: Setup Tailscale
uses: tailscale/github-action@main
uses: tailscale/github-action@v2
with:
authkey: ${{ secrets.TAILSCALE_AUTHKEY }}
oauth-client-id: ${{ secrets.TAILSCALE_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TAILSCALE_OAUTH_KEY }}
tags: tag:ci
- name: check connectivity
run: ifconfig ; host sense.orca-ordinal.ts.net
- name: Checkout change
Expand Down
2 changes: 1 addition & 1 deletion monitoring/promtail.nomad
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
variable "promtail_version" {
description = "Version of Promtail to deploy"
type = string
default = "2.7.3"
default = "2.9.1"
}

job "promtail" {
Expand Down
56 changes: 30 additions & 26 deletions monitoring/templates/promtail.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,33 @@ clients:
- url: http://localhost:9999/loki/loki/api/v1/push

scrape_configs:
- job_name: consul
static_configs:
- targets:
- localhost
labels:
job: consul
__path__: /home/consul/*.log
- job_name: nomad
static_configs:
- targets:
- localhost
labels:
job: nomad
__path__: /var/log/nomad*.log
- job_name: journal
journal:
max_age: 12h
path: /var/log/journal
matches: _TRANSPORT
labels:
job: systemd-journal
relabel_configs:
- source_labels: ['__journal__systemd_unit']
target_label: 'unit'
- source_labels: ['__journal_syslog_identifier']
target_label: 'syslog_identifier'
- job_name: consul
static_configs:
- targets:
- localhost
labels:
job: consul
__path__: /home/consul/*.log
- job_name: nomad
static_configs:
- targets:
- localhost
labels:
job: nomad
__path__: /var/log/nomad*.log
- job_name: journal
journal:
json: false
max_age: 12h
path: /var/log/journal
matches: _TRANSPORT=kernel
labels:
job: systemd-journal
relabel_configs:
- source_labels: ['__journal__systemd_unit']
target_label: 'unit'
- source_labels: ['__journal_syslog_identifier']
target_label: 'syslog_identifier'
- source_labels:
- __journal__hostname
target_label: nodename