flexmetric 0.4.1__py3-none-any.whl → 0.4.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flexmetric
3
- Version: 0.4.1
3
+ Version: 0.4.2
4
4
  Summary: A secure flexible Prometheus exporter for commands, databases, functions, and scripts.
5
5
  Home-page: https://github.com/nikhillingadhal1999/flexmetric
6
6
  Author: Nikhil Lingadhal
@@ -118,9 +118,13 @@ curl -X POST http://localhost:5000/update_metric \
118
118
  -H "Content-Type: application/json" \
119
119
  -d '{
120
120
  "result": [
121
- { "label": "cpu_usage", "value": 42.5 }
121
+ {
122
+ "label": ["cpu", "core_1"],
123
+ "value": 42.5
124
+ }
122
125
  ],
123
- "labels": ["cpu"]
126
+ "labels": ["metric_type", "core"],
127
+ "main_label": "cpu_usage_metric"
124
128
  }'
125
129
 
126
130
  ```
@@ -138,7 +142,7 @@ https://localhost:5000/update_metric
138
142
 
139
143
  ### Submitting a Metric to the Flask API
140
144
  ```bash
141
- curl -X POST http://localhost:5000/update_metric \
145
+ curl -k -X POST https://localhost:5000/update_metric \
142
146
  -H "Content-Type: application/json" \
143
147
  -d '{
144
148
  "result": [
@@ -11,8 +11,8 @@ flexmetric/metric_process/expiring_queue.py,sha256=1oC0MjloitPiRo7yDgVarz81ETEQa
11
11
  flexmetric/metric_process/process_commands.py,sha256=clGMQhLNcuJUO1gElpAS9Dyk0KU5w41DIguczjo7ceA,4089
12
12
  flexmetric/metric_process/prometheus_agent.py,sha256=rZ9pQrqA3J_-sJtl48qkFIHIUH01iert05u4SmGN4Yc,7714
13
13
  flexmetric/metric_process/views.py,sha256=BY695dCpTkJRc1KLC9RNpFTieFdHeHvyqyefmHhMauE,3297
14
- flexmetric-0.4.1.dist-info/METADATA,sha256=kHQheeo9qUgtJD6Zyb8O7q6eZR8RTCs7DJXHDJ8Yfrc,10570
15
- flexmetric-0.4.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
- flexmetric-0.4.1.dist-info/entry_points.txt,sha256=urVePn5EWr3JqNvkYP7OsB_h2_Bqvv-Wq1MJRBexm8A,79
17
- flexmetric-0.4.1.dist-info/top_level.txt,sha256=zBlrNwKhXUNhgu9RRZnXxYwYnmE-eocRe6wKSmQROA4,11
18
- flexmetric-0.4.1.dist-info/RECORD,,
14
+ flexmetric-0.4.2.dist-info/METADATA,sha256=qu-Y5W68ysqbjGsw-6NtQUC8D166f78-ivkUcdzvLls,10651
15
+ flexmetric-0.4.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
+ flexmetric-0.4.2.dist-info/entry_points.txt,sha256=urVePn5EWr3JqNvkYP7OsB_h2_Bqvv-Wq1MJRBexm8A,79
17
+ flexmetric-0.4.2.dist-info/top_level.txt,sha256=zBlrNwKhXUNhgu9RRZnXxYwYnmE-eocRe6wKSmQROA4,11
18
+ flexmetric-0.4.2.dist-info/RECORD,,