Skip to content

Commit

Permalink
Updated folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
mkelly committed Oct 18, 2023
1 parent 6e91ef7 commit 6461d4c
Show file tree
Hide file tree
Showing 28 changed files with 1,099 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
run: bindplane version

- name: Deploy Resources
run: bindplane apply -f resources.yaml
run: bindplane apply -f gitops_workflow_basic/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:

- name: Create Profile
run: |
bindplane profile set mk \
bindplane profile set gitflow \
--remote-url https://app.bindplane.com \
--api-key ${{ secrets.BINDPLANE_API_KEY }}
bindplane profile use mk
bindplane profile use gitflow
- name: Test CLI
run: bindplane version
Expand All @@ -43,18 +43,14 @@ jobs:
- name: Run merge script
run: |
bash ./merge_yaml.sh
bash ./gitops_workflow_raw_otel/merge_yaml.sh
- name: List output directory contents
run: ls -R ./output/
run: ls -R ./gitops_workflow_raw_otel/output/

- name: Deploy Resources using Bindplane CLI
run: |
for file in output/*.yaml; do
for file in gitops_workflow_raw_otel/output/*.yaml; do
bindplane apply -f $file
done
- name: Get Raw OTEL using Bindplane CLI
run: |
bash ./get_bindplane_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
run: bindplane version

- name: Deploy Resources
run: bash ./apply_bindplane_configs.sh
run: bash ./gitops_workflow_standard/apply_bindplane_configs.sh

- name: Export and checkin otel
run: bash ./get_bindplane_otel_configs.sh
run: bash ./gitops_workflow_standard/get_bindplane_otel_configs.sh

- name: Commit and Push Changes
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add bindplane_otel/
git add -A
git commit -m "Automated changes"
git push
34 changes: 34 additions & 0 deletions bindplane/configuration/apache-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: bindplane.observiq.com/v1
kind: Configuration
metadata:
id: apache-dev
name: apache-dev
labels:
platform: macos
hash: bbd3bca172747dd5e2e807a70e96ea54a91c9a59e2c12a061c45812414467f5a
version: 2
dateModified: 2023-10-16T10:03:22.069452-04:00
spec:
contentType: ""
measurementInterval: ""
sources:
- id: 01HCT27YV536QM2SCAPYN5FR0G
type: apache_common:1
parameters:
- name: file_path
value:
- /var/log/apache2/access.log
- name: start_at
value: end
destinations:
- id: 01HCT27YV536QM2SCAQ3J2T61J
name: grafana-cloud-west:1
- id: 01HCWCRT2NHEWJWW59RD2HP6E3
name: gmp-cloud-north:1
selector:
matchLabels:
configuration: apache-dev
status:
currentVersion: 1
pendingVersion: 1
latest: true
39 changes: 39 additions & 0 deletions bindplane/configuration/my_otel_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: bindplane.observiq.com/v1
kind: Configuration
metadata:
id: 01HCZK16Z9QBWEP6XC7E1RC99Z
name: my_otel_config
hash: f1436bafa90fc1668d6877916d30ef5874f3dd84668380f549d82eee09dc1581
version: 1
dateModified: 2023-10-17T15:50:32.169361-04:00
spec:
contentType: ""
measurementInterval: ""
raw: |-
receivers:
hostmetrics:
collection_interval: 1m
scrapers:
load:
filesystem:
memory:
network:
processors:
batch:
exporters:
logging:
loglevel: debug
service:
pipelines:
metrics:
receivers: [hostmetrics]
processors: [batch]
exporters: [logging]
selector:
matchLabels:
configuration: my_otel_config
status:
latest: true
133 changes: 133 additions & 0 deletions bindplane/configuration/postgres-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
apiVersion: bindplane.observiq.com/v1
kind: Configuration
metadata:
id: d4fa4e01-52f7-49a0-8ef3-8ea2bdf24383
name: postgres-dev
labels:
platform: macos
hash: 30a006b1d991926d2f68bd73a9d74e55b7e9eda104e4d00c83a3fb883a14bca6
version: 1
dateModified: 2023-10-15T13:06:51.045578-04:00
spec:
contentType: ""
measurementInterval: ""
sources:
- id: 01HCQJ8448HVANVPAGDASPGZ7T
type: postgresql:1
parameters:
- name: enable_metrics
value: true
- name: endpoint
value: localhost:5432
- name: transport
value: tcp
- name: username
value: asdfa
- name: password
value: (sensitive)
sensitive: true
- name: databases
value: []
- name: collection_interval
value: 60
- name: enable_tls
value: false
- name: ca_file
value: ""
- name: cert_file
value: ""
- name: key_file
value: ""
- name: insecure_skip_verify
value: false
- name: disable_metrics
value: []
- name: enable_logs
value: true
- name: postgresql_log_path
value:
- /var/log/postgresql/postgresql*.log
- /var/lib/pgsql/data/log/postgresql*.log
- /var/lib/pgsql/*/data/log/postgresql*.log
- name: start_at
value: end
- id: 01HCQJ8448HVANVPAGDGSDWHVA
type: host:1
parameters:
- name: metric_filtering
value:
- system.network.connections
- system.network.conntrack.count
- system.network.conntrack.max
- system.network.dropped
- system.network.errors
- system.network.io
- system.network.packets
- system.memory.usage
- system.memory.utilization
- system.cpu.load_average.15m
- system.cpu.load_average.1m
- system.cpu.load_average.5m
- system.disk.io
- system.disk.io_time
- system.disk.merged
- system.disk.operation_time
- system.disk.operations
- system.disk.pending_operations
- system.disk.weighted_io_time
- system.processes.count
- system.processes.created
- system.cpu.time
- system.cpu.utilization
- name: enable_process
value: true
- name: process_metrics_filtering
value:
- process.context_switches
- process.cpu.utilization
- process.disk.operations
- process.memory.utilization
- process.open_file_descriptors
- process.paging.faults
- process.signals_pending
- process.threads
- process.handles
- name: enable_process_filter
value: false
- name: process_include
value: []
- name: process_exclude
value: []
- name: process_filter_match_strategy
value: regexp
- name: collection_interval
value: 60
destinations:
- id: 01HCQJ8448HVANVPAGDK34F680
name: elastic-cluster-1:1
selector:
matchLabels:
configuration: postgres-dev
status:
rollout:
name: ""
status: 4
options:
startAutomatically: false
rollbackOnFailure: true
phaseAgentCount:
initial: 1
multiplier: 1
maximum: 1
maxErrors: 0
phase: 1
progress:
completed: 0
errors: 0
pending: 0
waiting: 0
currentVersion: 1
pendingVersion: 1
latest: true
pending: true
current: true
112 changes: 112 additions & 0 deletions bindplane/configuration/postgres-stage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
apiVersion: bindplane.observiq.com/v1
kind: Configuration
metadata:
id: postgres-stage
name: postgres-stage
labels:
platform: macos
hash: 407bae770ea15222a1dc868d06ad3a34065936693db73bf4d11360f39935e7e7
version: 1
dateModified: 2023-10-14T13:02:54.611041-04:00
spec:
contentType: ""
measurementInterval: ""
sources:
- id: 01HCQJ8448HVANVPAGDASPGZ7T
type: postgresql:1
parameters:
- name: enable_metrics
value: true
- name: endpoint
value: localhost:5432
- name: transport
value: tcp
- name: username
value: asdfa
- name: password
value: (sensitive)
sensitive: true
- name: databases
value: []
- name: collection_interval
value: 60
- name: enable_tls
value: false
- name: ca_file
value: ""
- name: cert_file
value: ""
- name: key_file
value: ""
- name: insecure_skip_verify
value: false
- name: disable_metrics
value: []
- name: enable_logs
value: true
- name: postgresql_log_path
value:
- /var/log/postgresql/postgresql*.log
- /var/lib/pgsql/data/log/postgresql*.log
- /var/lib/pgsql/*/data/log/postgresql*.log
- name: start_at
value: end
- id: 01HCQJ8448HVANVPAGDGSDWHVA
type: host:1
parameters:
- name: metric_filtering
value:
- system.network.connections
- system.network.conntrack.count
- system.network.conntrack.max
- system.network.dropped
- system.network.errors
- system.network.io
- system.network.packets
- system.memory.usage
- system.memory.utilization
- system.cpu.load_average.15m
- system.cpu.load_average.1m
- system.cpu.load_average.5m
- system.disk.io
- system.disk.io_time
- system.disk.merged
- system.disk.operation_time
- system.disk.operations
- system.disk.pending_operations
- system.disk.weighted_io_time
- system.processes.count
- system.processes.created
- system.cpu.time
- system.cpu.utilization
- name: enable_process
value: true
- name: process_metrics_filtering
value:
- process.context_switches
- process.cpu.utilization
- process.disk.operations
- process.memory.utilization
- process.open_file_descriptors
- process.paging.faults
- process.signals_pending
- process.threads
- process.handles
- name: enable_process_filter
value: false
- name: process_include
value: []
- name: process_exclude
value: []
- name: process_filter_match_strategy
value: regexp
- name: collection_interval
value: 60
destinations:
- id: 01HCQJ8448HVANVPAGDK34F680
name: elastic-cluster-1:1
selector:
matchLabels:
configuration: postgres-stage
status:
latest: true
Loading

0 comments on commit 6461d4c

Please sign in to comment.