-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix-trends-line-mock
- Loading branch information
Showing
208 changed files
with
5,392 additions
and
3,348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,5 @@ | |
!share/GeoLite2-City.mmdb | ||
!hogvm/python | ||
!unit.json | ||
!plugin-transpiler/src | ||
!plugin-transpiler/*.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,3 +55,4 @@ gen/ | |
upgrade/ | ||
hogvm/typescript/dist | ||
.wokeignore | ||
plugin-transpiler/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
import http.client | ||
import json | ||
from prometheus_client import CollectorRegistry, Gauge, multiprocess, generate_latest | ||
|
||
UNIT_CONNECTIONS_ACCEPTED_TOTAL = Gauge( | ||
"unit_connections_accepted_total", | ||
"", | ||
multiprocess_mode="livesum", | ||
) | ||
UNIT_CONNECTIONS_ACTIVE = Gauge( | ||
"unit_connections_active", | ||
"", | ||
multiprocess_mode="livesum", | ||
) | ||
UNIT_CONNECTIONS_CLOSED = Gauge( | ||
"unit_connections_closed", | ||
"", | ||
multiprocess_mode="livesum", | ||
) | ||
UNIT_CONNECTIONS_IDLE = Gauge( | ||
"unit_connections_idle", | ||
"", | ||
multiprocess_mode="livesum", | ||
) | ||
UNIT_CONNECTIONS_TOTAL = Gauge( | ||
"unit_requests_total", | ||
"", | ||
multiprocess_mode="livesum", | ||
) | ||
UNIT_PROCESSES_RUNNING_GAUGE = Gauge( | ||
"unit_application_processes_running", "", multiprocess_mode="livesum", labelnames=["application"] | ||
) | ||
UNIT_PROCESSES_STARTING_GAUGE = Gauge( | ||
"unit_application_processes_starting", "", multiprocess_mode="livesum", labelnames=["application"] | ||
) | ||
UNIT_PROCESSES_IDLE_GAUGE = Gauge( | ||
"unit_application_processes_idle", "", multiprocess_mode="livesum", labelnames=["application"] | ||
) | ||
UNIT_REQUESTS_ACTIVE_GAUGE = Gauge( | ||
"unit_application_requests_active", "", multiprocess_mode="livesum", labelnames=["application"] | ||
) | ||
|
||
|
||
def application(environ, start_response): | ||
connection = http.client.HTTPConnection("localhost:8081") | ||
connection.request("GET", "/status") | ||
response = connection.getresponse() | ||
|
||
statj = json.loads(response.read()) | ||
connection.close() | ||
|
||
UNIT_CONNECTIONS_ACCEPTED_TOTAL.set(statj["connections"]["accepted"]) | ||
UNIT_CONNECTIONS_ACTIVE.set(statj["connections"]["active"]) | ||
UNIT_CONNECTIONS_IDLE.set(statj["connections"]["idle"]) | ||
UNIT_CONNECTIONS_CLOSED.set(statj["connections"]["closed"]) | ||
UNIT_CONNECTIONS_TOTAL.set(statj["requests"]["total"]) | ||
|
||
for application in statj["applications"].keys(): | ||
UNIT_PROCESSES_RUNNING_GAUGE.labels(application=application).set( | ||
statj["applications"][application]["processes"]["running"] | ||
) | ||
UNIT_PROCESSES_STARTING_GAUGE.labels(application=application).set( | ||
statj["applications"][application]["processes"]["starting"] | ||
) | ||
UNIT_PROCESSES_IDLE_GAUGE.labels(application=application).set( | ||
statj["applications"][application]["processes"]["idle"] | ||
) | ||
UNIT_REQUESTS_ACTIVE_GAUGE.labels(application=application).set( | ||
statj["applications"][application]["requests"]["active"] | ||
) | ||
|
||
start_response("200 OK", [("Content-Type", "text/plain")]) | ||
# Create the prometheus multi-process metric registry here | ||
# This will aggregate metrics we send from the Django app | ||
# We prepend our unit metrics here. | ||
registry = CollectorRegistry() | ||
multiprocess.MultiProcessCollector(registry) | ||
yield generate_latest(registry) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+3.81 KB
(200%)
frontend/__snapshots__/filters-propertyfilters--with-no-close-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+21.8 KB
(130%)
...tend/__snapshots__/scenes-app-insights--funnel-time-to-convert-edit--webkit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+168 Bytes
(100%)
...tend/__snapshots__/scenes-app-insights--funnel-top-to-bottom-breakdown-edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+12.5 KB
(130%)
frontend/__snapshots__/scenes-app-insights--lifecycle-edit--webkit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-807 Bytes
(99%)
frontend/__snapshots__/scenes-app-notebooks--recordings-playlist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.