Skip to content

Commit e043e04

Browse files
committed
[blog] Archive version 4.7 into v4
1 parent fd817c1 commit e043e04

18 files changed

+85
-69
lines changed

docs/gethue/content/en/posts/2020-01-28-ten-years-data-querying-ux-evolution.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ sf_remove_promo_bar:
3939
ampforwp-amp-on-off:
4040
- default
4141
categories:
42-
- Version 4.7
42+
- Version 4
43+
# - Version 4.7
4344
- Querying
4445

4546
---

docs/gethue/content/en/posts/2020-02-10-sql-editor-user-experience.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ sf_remove_promo_bar:
3939
ampforwp-amp-on-off:
4040
- default
4141
categories:
42-
- Version 4.7
42+
- Version 4
43+
# - Version 4.7
4344
- Querying
4445

4546
---

docs/gethue/content/en/posts/2020-02-27-using-sql-parser-module.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ sf_remove_promo_bar:
3939
ampforwp-amp-on-off:
4040
- default
4141
categories:
42-
- Version 4.7
42+
- Version 4
43+
# - Version 4.7
4344
- Querying
4445
- Development
4546

docs/gethue/content/en/posts/2020-03-04-collaboration-with-link-and-gist.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ sf_remove_promo_bar:
3939
ampforwp-amp-on-off:
4040
- default
4141
categories:
42-
- Version 4.7
42+
- Version 4
43+
# - Version 4.7
4344
- Querying
4445

4546

docs/gethue/content/en/posts/2020-03-11-checking-dead-link-automatically-continuous-integration.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ ampforwp-amp-on-off:
3838
- default
3939
categories:
4040
- Administration
41-
- Version 4.7
41+
- Version 4
42+
# - Version 4.7
4243

4344
---
4445

docs/gethue/content/en/posts/2020-04-01-hue-active-users-metric.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,18 @@ ampforwp-amp-on-off:
3838
- default
3939
categories:
4040
- Administration
41-
- Version 4.7
41+
- Version 4
42+
# - Version 4.7
4243

4344
---
4445

4546

46-
To understand the performance of Hue, we want to know how many active users in Hue--and more specifically--how many on each host. An active user is who sends requests from his/her browser to the Hue server in the last one hour. Recently, Hue got some improvements for providing and displaying better metrics.
47+
To understand the performance of Hue, we want to know how many active users in Hue--and more specifically--how many on each host. An active user is who sends requests from his/her browser to the Hue server in the last one hour. Recently, Hue got some improvements for providing and displaying better metrics.
4748

48-
1. On premise, Hue is using [PyFormance](https://gethue.com/easier-administration-of-hue-with-the-new-threads-and-metrics-pages/) implements /desktop/metrics endpoint. Cloudera Manager collects data via the endpoint and displays the metric “Active Users” in the Charts Library, but all hosts show the same number of active users. With [HUE-9210](https://issues.cloudera.org/browse/HUE-9210), the active users metric on each host is collected based on its hostname (see screenshot).
49+
1. On premise, Hue is using [PyFormance](https://gethue.com/easier-administration-of-hue-with-the-new-threads-and-metrics-pages/) implements /desktop/metrics endpoint. Cloudera Manager collects data via the endpoint and displays the metric “Active Users” in the Charts Library, but all hosts show the same number of active users. With [HUE-9210](https://issues.cloudera.org/browse/HUE-9210), the active users metric on each host is collected based on its hostname (see screenshot).
4950

5051
![cm_active_users.png](https://cdn.gethue.com/uploads/2020/04/cm_active_users.png)
51-
52+
5253
Here we can see three users on the blue Hue API server role and one on the green
5354

5455
2. In Kubernetes, Hue is using [django-prometheus](https://gethue.com/collecting-hue-metrics-with-prometheus-in-kubernetes/) to implement endpoint /metrics. With [HUE-9194](https://issues.cloudera.org/browse/HUE-9194), we added two new active users metrics to display in Prometheus server. You may [set up your Prometheus server](https://gethue.com/set-up-prometheus-server-without-kubernetes/) without Kubernetes. Once setup is done and the server is started, open your browser at localhost:9090. From the drop down menu of metrics, you may find hue_active_users and hue_local_active_users.

docs/gethue/content/en/posts/2020-04-01-set-up-prometheus-server-without-kubernetes.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ ampforwp-amp-on-off:
3838
- default
3939
categories:
4040
- Administration
41-
- Version 4.7
41+
- Version 4
42+
# - Version 4.7
4243

4344
---
4445

@@ -47,102 +48,102 @@ To taste Hue prometheus metrics, you may set up a Prometheus server to scrape th
4748
**Prerequisites**: a Hue server running at localhost:8000.
4849

4950
1. Create a service user
50-
51+
5152
```console
5253
$ sudo useradd --no-create-home --shell /bin/false prometheus
5354
```
5455
2. Create a directory in /etc for Prometheus’ configuration files and a directory in /var/lib for its data
55-
56+
5657
```console
5758
$ sudo mkdir /etc/prometheus
5859
$ sudo mkdir /var/lib/prometheus
5960
```
6061
3. Set the user and group ownership on the new directories to the prometheus user
61-
62+
6263
```console
6364
$ sudo chown prometheus:prometheus /etc/prometheus
6465
$ sudo chown prometheus:prometheus /var/lib/prometheus
6566
```
6667
4. Download Prometheus binary from [https://prometheus.io/download/](https://prometheus.io/download/)
67-
68+
6869
```console
6970
$ cd ~/Downloads
7071
$ curl -LO https://github.com/prometheus/prometheus/releases/download/v2.16.0/prometheus-2.16.0.linux-amd64.tar.gz
7172
```
7273
5. Validate checksum value with download
73-
74+
7475
```console
75-
$ Sha256sum prometheus-2.16.0.linux-amd64.tar.gz
76+
$ Sha256sum prometheus-2.16.0.linux-amd64.tar.gz
7677
```
77-
6. Unpack the downloaded archive
78-
78+
6. Unpack the downloaded archive
79+
7980
```console
8081
$ tar xvf prometheus-2.16.0.linux-amd64.tar.gz
8182
```
8283
7. Copy the two binaries to the /usr/local/bin directory
83-
84+
8485
```console
8586
$ sudo cp prometheus-2.16.0.linux-amd64/prometheus /usr/local/bin/
8687
$ sudo cp prometheus-2.16.0.linux-amd64/promtool /usr/local/bin/
8788
```
8889
8. Copy the consoles and console_libraries directories to /etc/prometheus.
89-
90+
9091
```console
9192
$ sudo cp -r prometheus-2.16.0.linux-amd64/consoles /etc/prometheus
9293
$ sudo cp -r prometheus-2.16.0.linux-amd64/console_libraries /etc/prometheus
9394
```
9495
9. Set the user and group ownership on the directories to the prometheus user. Using the -R flag will ensure that ownership is set on the files inside the directory as well.
95-
96+
9697
```console
9798
$ sudo chown -R prometheus:prometheus /etc/prometheus/consoles
9899
$ sudo chown -R prometheus:prometheus /etc/prometheus/console_libraries
99100
```
100101
10. Remove the leftover files from your downloads folder
101-
102+
102103
```console
103104
$ rm -rf prometheus-2.16.0.linux-amd64.tar.gz prometheus-2.16.0.linux-amd64
104105
```
105106
11. Create a configuration file named prometheus.yml
106-
107+
107108
```console
108109
$ vi /etc/prometheus/prometheus.yml
109110
```
110111

111112
Content of prometheus.yml, port 8000 is your Hue server port, and change it if needed.
112-
113+
113114
```console
114115
global:
115116
scrape_interval: 15s
116-
117+
117118
scrape_configs:
118119
- job_name: 'prometheus'
119120
scrape_interval: 5s
120121
static_configs:
121122
- targets: ['localhost:9090']
122-
123+
123124
- job_name: 'hue'
124125
scrape_interval: 5s
125126
static_configs:
126127
- targets: ['localhost:8000']
127128
```
128129
12. Set the user and group ownership on the configuration file to the prometheus user
129-
130+
130131
```console
131132
$ sudo chown prometheus:prometheus /etc/prometheus/prometheus.yml
132133
```
133134
13. Create a new systemd service file.
134-
135+
135136
```console
136137
$ vi /etc/systemd/system/prometheus.service
137138
```
138139
Content of service file
139-
140+
140141
```console
141142
[Unit]
142143
Description=Prometheus
143144
Wants=network-online.target
144145
After=network-online.target
145-
146+
146147
[Service]
147148
User=prometheus
148149
Group=prometheus
@@ -152,12 +153,12 @@ To taste Hue prometheus metrics, you may set up a Prometheus server to scrape th
152153
--storage.tsdb.path /var/lib/prometheus/ \
153154
--web.console.templates=/etc/prometheus/consoles \
154155
--web.console.libraries=/etc/prometheus/console_libraries
155-
156+
156157
[Install]
157158
WantedBy=multi-user.target
158159
```
159160
14. To use the newly created service, reload and start systemd.
160-
161+
161162
```console
162163
$ sudo systemctl daemon-reload
163164
$ sudo systemctl start prometheus
@@ -170,4 +171,3 @@ Any feedback or questions? Feel free to comment here or on the [Forum](https://d
170171

171172

172173
Ying Chen from the Hue Team
173-

docs/gethue/content/en/posts/2020-04-07-some-4-7-admin-improvements.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ sf_remove_promo_bar:
3939
ampforwp-amp-on-off:
4040
- default
4141
categories:
42-
- Version 4.7
42+
- Version 4
43+
# - Version 4.7
4344
- Administration
4445

4546
---

docs/gethue/content/en/posts/2020-04-10-release-hue-4-7.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ sf_remove_promo_bar:
3939
ampforwp-amp-on-off:
4040
- default
4141
categories:
42-
- Version 4.7
42+
- Version 4
43+
# - Version 4.7
4344
- Release
4445

4546
---

docs/gethue/content/jp/posts/2020-01-28-ten-years-data-querying-ux-evolution.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ sf_remove_promo_bar:
3939
ampforwp-amp-on-off:
4040
- default
4141
categories:
42-
- Version 4.7
42+
- Version 4
43+
# - Version 4.7
4344
- Querying
4445

4546
---

0 commit comments

Comments
 (0)