Skip to content

Commit

Permalink
HHT-669: using prometheus as metric store
Browse files Browse the repository at this point in the history
  • Loading branch information
ktatarnikov committed Jul 10, 2024
1 parent 8c3a186 commit c32e412
Show file tree
Hide file tree
Showing 25 changed files with 133 additions and 260 deletions.
Empty file removed app/clients/influxdb/__init__.py
Empty file.
40 changes: 0 additions & 40 deletions app/clients/influxdb/influxdb_client_impl.py

This file was deleted.

8 changes: 0 additions & 8 deletions app/clients/influxdb/influxdb_settings.py

This file was deleted.

18 changes: 0 additions & 18 deletions app/clients/influxdb/mock_infuxdbclient.py

This file was deleted.

21 changes: 0 additions & 21 deletions app/clients/influxdb/simple_result_parser.py

This file was deleted.

50 changes: 0 additions & 50 deletions app/clients/influxdb/test_simple_result_parser.py

This file was deleted.

8 changes: 4 additions & 4 deletions app/core/__fixture__/snapshot/minimal/metric_nodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
unit: coreseconds
property: CPU.Usage
query: test1
result_parser: SimpleResultParser
result_parser: PROMETHEUS_PARSER
value:
metric_id: cpu_usage
resource_id: glaciation-test-master01
Expand All @@ -18,7 +18,7 @@
unit: bytes
property: RAM.Usage
query: test2
result_parser: SimpleResultParser
result_parser: PROMETHEUS_PARSER
value:
metric_id: ram_usage
resource_id: glaciation-test-master01
Expand All @@ -31,7 +31,7 @@
unit: bytes
property: Storage.Usage
query: test3
result_parser: SimpleResultParser
result_parser: PROMETHEUS_PARSER
value:
metric_id: eph_usage
resource_id: glaciation-test-master01
Expand All @@ -44,7 +44,7 @@
unit: bytes
property: Network.Usage
query: test4
result_parser: SimpleResultParser
result_parser: PROMETHEUS_PARSER
value:
metric_id: net_usage
resource_id: glaciation-test-master01
Expand Down
8 changes: 4 additions & 4 deletions app/core/__fixture__/snapshot/minimal/metric_pods.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
unit: coreseconds
property: CPU.Usage
query: test5
result_parser: SimpleResultParser
result_parser: PROMETHEUS_PARSER
value:
metric_id: pod_cpu_usage
resource_id: kube-system.coredns-787d4945fb-l85r5
Expand All @@ -18,7 +18,7 @@
unit: bytes
property: RAM.Usage
query: test6
result_parser: SimpleResultParser
result_parser: PROMETHEUS_PARSER
value:
metric_id: pod_ram_usage
resource_id: kube-system.coredns-787d4945fb-l85r5
Expand All @@ -31,7 +31,7 @@
unit: bytes
property: Storage.Usage
query: test7
result_parser: SimpleResultParser
result_parser: PROMETHEUS_PARSER
value:
metric_id: pod_eph_usage
resource_id: kube-system.coredns-787d4945fb-l85r5
Expand All @@ -44,7 +44,7 @@
unit: bytes
property: Network.Usage
query: test8
result_parser: SimpleResultParser
result_parser: PROMETHEUS_PARSER
value:
metric_id: pod_net_usage
resource_id: kube-system.coredns-787d4945fb-l85r5
Expand Down
18 changes: 9 additions & 9 deletions app/core/__fixture__/snapshot/multinode/metric_nodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
unit: coreseconds
property: CPU.Usage
query: test1
result_parser: SimpleResultParser
result_parser: PROMETHEUS_PARSER
value:
metric_id: cpu_usage
resource_id: glaciation-test-master01
Expand All @@ -18,7 +18,7 @@
unit: coreseconds
property: GPU.Usage
query: test2
result_parser: SimpleResultParser
result_parser: PROMETHEUS_PARSER
value:
metric_id: gpu_usage
resource_id: glaciation-test-master01
Expand All @@ -31,7 +31,7 @@
unit: bytes
property: RAM.Usage
query: test3
result_parser: SimpleResultParser
result_parser: PROMETHEUS_PARSER
value:
metric_id: ram_usage
resource_id: glaciation-test-master01
Expand All @@ -44,7 +44,7 @@
unit: bytes
property: Storage.Usage
query: test4
result_parser: SimpleResultParser
result_parser: PROMETHEUS_PARSER
value:
metric_id: eph_usage
resource_id: glaciation-test-master01
Expand All @@ -57,7 +57,7 @@
unit: bytes5
property: Network.Usage
query: test
result_parser: SimpleResultParser
result_parser: PROMETHEUS_PARSER
value:
metric_id: net_usage
resource_id: glaciation-test-master01
Expand All @@ -70,7 +70,7 @@
unit: coreseconds
property: CPU.Usage
query: test6
result_parser: SimpleResultParser
result_parser: PROMETHEUS_PARSER
value:
metric_id: cpu_usage
resource_id: glaciation-test-worker01
Expand All @@ -83,7 +83,7 @@
unit: bytes
property: RAM.Usage
query: test7
result_parser: SimpleResultParser
result_parser: PROMETHEUS_PARSER
value:
metric_id: ram_usage
resource_id: glaciation-test-worker01
Expand All @@ -96,7 +96,7 @@
unit: bytes
property: Storage.Usage
query: test8
result_parser: SimpleResultParser
result_parser: PROMETHEUS_PARSER
value:
metric_id: eph_usage
resource_id: glaciation-test-worker01
Expand All @@ -109,7 +109,7 @@
unit: bytes9
property: Network.Usage
query: test
result_parser: SimpleResultParser
result_parser: PROMETHEUS_PARSER
value:
metric_id: net_usage
resource_id: glaciation-test-worker01
Expand Down
Loading

0 comments on commit c32e412

Please sign in to comment.